To monitor Varnish performance, LogicMonitor collector uses SNMP extensions to trigger a script, which runs ‘varnishstat -1’ command on the server.
To enable data collection, please do the following on each of your Varnish servers:
1. Create a script “varnishparse” in /usr/local/bin:
2. Put all of the following into the /etc/snmp/snmpd.conf file (after you’ve configured SNMP):
3. Restart snmpd (service snmpd restart).
After you complete the steps above, the Varnish Performance datasource will be associated with proper hosts, and the monitoring will start automatically.