본문 바로가기

Monitoring Tools/Zabbix

7. [zabbix agent] varnish

반응형

1. zabbix_agent2.conf

UserParameter=varnishstat[*],/etc/zabbix/scripts/varnishstat.sh "$1"

 

2. varnishstat.sh

#!/bin/sh
if [ $1 ] ; then
	/usr/bin/varnishstat -1 | grep "$1 " | awk '{print $2}'
fi

3. zabbix server template

zbx_export_templates.xml
0.02MB

반응형