PDA

View Full Version : Number of running processes (proc.num)


cosmo
15-02-2008, 17:57
Hi,

I want to monitor a ruby daemon (e.g. ruby script/server production) but this not seems to work with proc.num. I guess, that sth. like proc.num[server] fails, because the value were not found within the known environment paths?!

So I created a new UserParameter in zabbix-agentd.conf that uses pgrep:

UserParameter=ruby.running,pgrep -f server|wc -l

When I test it with 'zabbix_agentd -t ruby.running' it results in [t|2]. But I have __only one__ process! When I run 'pgrep -f server|wc -l' from commandline, I get the correct 1.

What happend here and how can my problem be solved?

Thanks an best regards
Holger