Hi
I use a lot of user parameters for the AIX agent because up to now it
was necessary to even receive the simplest data.
Up to and including ZABBIX agent version 1.6 the syntax I used was:
This worked fine for the 1.4.4 and the 1.6 agents.
Starting from 1.6.2 - using the same zabbix_agentd.conf file - new error
messages appear in the logfile of the agent and the agent does no longer start up.
Error messages:
Obviously, the syntax changed, i.e. I had to quote the statement like:
Problem: If you have to use quotes inside the statement. You have to use """" (that are four ") for every single " in the statement instead.
Example:
You have be warned !
Regards
Norbert.
I use a lot of user parameters for the AIX agent because up to now it
was necessary to even receive the simplest data.
Up to and including ZABBIX agent version 1.6 the syntax I used was:
Code:
UserParameter=usr.loadavg1,uptime | sed 's/,//'g | awk '{printf $(NF-2)}'
Starting from 1.6.2 - using the same zabbix_agentd.conf file - new error
messages appear in the logfile of the agent and the agent does no longer start up.
Error messages:
Code:
1765384:20090123:155215 UserParameter "usr.loadavg1,uptime | sed 's/,//'g | awk
'{printf $(NF-2)}'" FAILED: Invalid format.
Code:
UserParameter=usr.loadavg1,"uptime | sed 's/,//'g | awk '{printf $(NF-2)}'"
Example:
Code:
" ... | awk '{printf """"%d"""", $ 2}'"
Regards
Norbert.
Comment