PDA

View Full Version : User Parameter issue on debian linux


tagsense
30-11-2007, 00:06
hello,
i am running Zabbix server (version 1.4.2) on a debian stable machine (2.6.18-5 kernel) and running the client (version 1.4.2) on a debian test machine (2.6.15-1).

i defined the following userparameter in the zabbix_agentd.conf:

UserParamater=rs.meminfo,vmstat -s | grep -i 'free memory' | awk '{print $1}'

when i activate it on the server side, i get ZBX_NOTSUPPORTED return code from the client.

i have verified the following:
1. 'zabbix' user has rights to execute all the commands (vmstat, free and awk) included in the definition.
2. server side data type is correct - number 64-bit integer
3. server and client can talk to each other - two system parameters (system.swap.out and system.swap.in) are getting reported correctly.

this parameter doesn't work even if i simplify the definition to the following:
UserParamater=rs.meminfo,echo 1


could anyone pls. help me resolve this?

thanks in advance
dave

martin.marcher
01-12-2007, 15:21
hello,

UserParamater=rs.meminfo,vmstat -s | grep -i 'free memory' | awk '{print $1}'

dave

The $1 is replaced by ZABBIX. I think your best options is to create a wrapper script that does what you defined.

Try this to see what I mean:

UserParamater=echotest ,echo $1


whatever you give will be echoed back to you....

tagsense
01-12-2007, 22:34
my apologies.

i had misspelt userparameter as userparamAter. thats what was causing the problem.

martin.marcher
01-12-2007, 22:36
my apologies.

i had misspelt userparameter as userparamAter. thats what was causing the problem.


Hehe, better I read what I copy next time too - the typos are in my post too :)