# zabbix_get -s 127.0.0.1 -k
"voice.exist[10.88.5.8,Voice]"
1
# zabbix_agentd -t
voice.exist[10.88.5.8,Voice]
voice.exist[10.88.5.8,Voice]
[t|1]
UserParameter=Nginx.active[*],/usr/bin/curl
-s "http://$1:$2/status" | awk
‘/^Active/{print $NF}‘
UserParameter=Nginx.accepted[*], /usr/bin/curl -s "http://$1:$2/status"
| awk ‘/^ /{print
$$1}‘
UserParameter=Nginx.handld[*], /usr/bin/curl -s "http://$1:$2/status"
| awk ‘/^ /{print
$$2}‘
UserParameter=Nginx.request[*], /usr/bin/curl -s "http://$1:$2/status"
| awk ‘/^ /{print
$$3}‘
UserParameter=Nginx.read[*], /usr/bin/curl -s "http://$1:$2/status"
| awk ‘/^Read/{print
$$2}‘
UserParameter=Nginx.write[*], /usr/bin/curl -s "http://$1:$2/status"
| awk ‘/^Read/{print
$$4}‘
UserParameter=Nginx.wait[*], /usr/bin/curl -s "http://$1:$2/status"
| awk ‘/^Read/{print
$$6}‘
#!/bin/bash
#/usr/local/zabbix/share/zabbix/externalscripts/win_process_exist.sh
process=`snmpwalk -v 2c -c jzzz $1
.1.3.6.1.2.1.25.4.2.1.2 | awk ‘/‘$2‘/{print $NF}‘`
if [[
$process == ‘‘
]];then
echo
0;
else
echo 1;
fi
# cat
/etc/zabbix/zabbix_agentd.conf.d/win_process.conf
UserParameter=voice.exist[*],/usr/local/zabbix/share/zabbix/externalscripts/win_process_exist.sh $1
$2
zabbix之3触发器/action及模板,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/aaa103439/p/1a9fea269af0d4a50f6ee1d11964d06f.html