[nycbug-talk] zabbix agentd question

Steve Rieger riegersteve at gmail.com
Fri Sep 1 14:09:46 EDT 2006


i know we have at least one person here that uses zabbix

can i use awk and $ in agentd.conf, or do you know a way around the 
error below.


UserParameter=descriptors.available,awk '{print $3-$1+$2}' 
/proc/sys/fs/file-nr
UserParameter=descriptors.error,awk '($1-$2)>(.9*$3) {exit 1}' 
/proc/sys/fs/file-nr

[root at stg2 log]# zabbix_agentd -t descriptors.available
awk: cmd. line:1: {print -+}
awk: cmd. line:1: ^ syntax error
descriptors.available [m|ZBX_NOTSUPPORTED]
[root at stg2 log]# zabbix_agentd -t descriptors.error
awk: cmd. line:1: (-)>(.9*) {exit 1}
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: (-)>(.9*) {exit 1}
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: (-)>(.9*) {exit 1}
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: (-)>(.9*) {exit 1}
awk: cmd. line:1: ^ syntax error
descriptors.error [m|ZBX_NOTSUPPORTED]

-- 
--
eats the blues for breakfast,
does unix for rent,
plays harp for food,
will play the flute for kicks
rides for the freedom
scrapes for thechallenge




More information about the talk mailing list