View Full Version : UserParameter problems
i have a lot of default items that wont work on freebsd4.3 so i am trying to make up some userParameter entrys do do some..
I have added UserParameter=process[all],ps -eax|grep http|wc -w to get total processes`s.
The output is from comand line
ps -eax | grep http | wc -w
47
is there something im missing.
Any help would be appeciated.
What problems you're talking about? :)
I have several things i can get to work.
The first is that im trying to get total current processes to work
UserParameter=process[all],ps -eax|wc -w
i get this output from the command line
ps -eax|grep http|wc -w
40
the problem is that i keep getting this back
Not supported by ZABBIX agent
Im new at all this type of stuff and from what i have read this should work
and it does allways get a output..
I am trying to get this type of thing to work so i can do similar with some others..
I hope this is a bit clearer on the problem
Assistance appreciated.
first of all, use wc -l, and not wc -w
wc -l count the number of lines
wc -w count the number of words
but one line = one process with ps eax
so use wc -l
and after you modified zabbix_agentd.conf
you must restart the agent.
Once you restarted, if you still have the error,
try connecting to the zabbix agent with telnet :
telnet 192.168.0.1 10050
and type "process[all]", you have to be quick,
the timeout is one second, just copy it, then you
will just have to paste it.
and see what the agent send you back.
if it sends a value, the error is not in the agent.