mars/monitoring/zabbix/mars.conf

7 lines
224 B
Plaintext
Raw Normal View History

2014-02-05 13:37:35 +00:00
# mars config
# v002
2014-02-05 13:37:35 +00:00
UserParameter=system.mars[*], ( grep $1 /tmp/zabbix.mars || echo '0 0' ) | awk '{print $$2}'
UserParameter=system.marsstatus[*], grep $1 /tmp/zabbix.mars | grep ' $2 ' | awk '{print $$4}' | head -n 1