Varnish cache usage monitoring
This template allows you to track the activity of your Varnish cache servers.
Varnish is an HTTP accelerator designed for content-heavy dynamic web sites as well as APIs.
You will be able to see the quantity of requests received and transmitted, and know how often the cache has been useful (so as not to overload your web servers).
Alerts let you know if the service has dropped, if the port has changed, or if the server is not operating normally.
This template doesn't need any password, it uses the varnish CLI, and python that is installed by default on most recent linux distros (so no additional package to install).
setting up procedure:
Template configuration zabbix-side
* Import zabbix template file zabbix_varnish_app_template.xml on zabbix server
* Select a varnish hosts and add "Template App Varnish"
Configuration on varnish server side
* Allow varnish to use netstat:
sudo echo "zabbix ALL = (ALL) NOPASSWD: / bin / netstat" >> / etc / sudoers
* Allow zabbix user to read varnish secret file:
chmod + r /etc/varnish/secret
* Add zabbix to varnish group to use varnish CLI:
sudo usermod -a -G varnish zabbix
* Copy userparameter_varnish.conf to /etc/zabbix/zabbix_agentd.d/userparameter_varnish.conf
* Copy varnish_metrics.py to /etc/zabbix/varnish_metrics.py
* Set execution right with :
sudo chmod + x /etc/zabbix/varnish_metrics.py
* restart agent:
sudo service zabbix-agent restart
If you have issues, please contact authors to help us to improve this template.
Listing Details
1 version, '2020-04-17 15:16' modified