Ad Widget

Collapse

proc.num retun diff value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cool_camel
    Junior Member
    • Mar 2005
    • 9

    #1

    proc.num retun diff value

    Hi all,

    I have zabbix agent on server running Oracle IAS to check the number of processes on RH3 with ps -ef |wc -l returnning 265 but with
    zabbix_get -sxxx.xxx.32.50 -p10050 -k"proc.num"
    909

    i tried same proc.num on rh4 reurned same value than ps -ef |wc -l ( no problem on RH4 and fedora 3/4).

    I am not sure how is proc.num returning the number of processes.

    also i tested the followgin on the rh3 returned
    proc.num[java]
    543

    on same machine i tried ps returned the following
    ps -ef |grep java |wc -l

    29

    I not sure if there is bug on the agent the agent version i using is 1.1beta6( same problem i had with 1.1beta5).

    Regard.
  • kempkep
    Junior Member
    • Feb 2006
    • 18

    #2
    agent counts the threads with command name

    I noted the same 'problem', but have decided the difference is that the zabbix agent counts the number of threads with the required command name.

    Try issuing ps -efm | wc -l

    The numbers are surprisingly similar

    Now, what would be real handy would be for proc.num to be able to also search the command parameters.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Originally posted by kempkep
      Now, what would be real handy would be for proc.num to be able to also search the command parameters.
      It is already supported for Linux, but not documented yet. Fourth parameter to proc.num accepts command line
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...