Ad Widget

Collapse

UserParameter Weirdness

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dcrandall
    Member
    • Apr 2006
    • 59

    #1

    UserParameter Weirdness

    Hi,

    I'm have serveral webservers running on a host and I want to know how many processes for each one, so that I'll know if I'm getting close to my limit of 512.

    I have this user parameter define on in the zabbix_agentd file on the host i'm monitoring:
    UserParameter=www.my.server,ps ax | grep httpd.conf-www.my.server | wc -l

    Here is the problem: If I run the command on the command line, I get something like 46.
    In the zabbix web interface, it reports 2.

    Sometimes if I restart the zabbix_agentd and/or the zabbix_server, it will give me accurate results for a few minutes, then it drops back to single digits. It's almost like there is a multiplier, though i'm positive none are defined.

    Help!

    Daniel
  • dcrandall
    Member
    • Apr 2006
    • 59

    #2
    Well, I've discovered that zabbix_agentd thinks the output of the scriptlet is a string rather than a number. Changing the "Type of information" field for the Item doesn't change anything though. (except that now I have "..." after the bad number.)

    Anybody have any insight?

    d

    Originally posted by dcrandall
    Hi,

    I'm have serveral webservers running on a host and I want to know how many processes for each one, so that I'll know if I'm getting close to my limit of 512.

    I have this user parameter define on in the zabbix_agentd file on the host i'm monitoring:
    UserParameter=www.my.server,ps ax | grep httpd.conf-www.my.server | wc -l

    Here is the problem: If I run the command on the command line, I get something like 46.
    In the zabbix web interface, it reports 2.

    Sometimes if I restart the zabbix_agentd and/or the zabbix_server, it will give me accurate results for a few minutes, then it drops back to single digits. It's almost like there is a multiplier, though i'm positive none are defined.

    Help!

    Daniel

    Comment

    Working...