Ad Widget

Collapse

Number of running processes (proc.num)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cosmo
    Junior Member
    • Feb 2008
    • 1

    #1

    Number of running processes (proc.num)

    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
Working...