Ad Widget

Collapse

Proccount returns crazy values!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmz
    Junior Member
    • Jun 2005
    • 26

    #1

    Proccount returns crazy values!

    Hello,
    I have been getting alerts on one of my systems recently about too many processes. I looked & a "ps xafw|wc -l" only returns 79 and a "ls -l /proc|wc -l" returns 120; however my zabbix proccount value is 529!

    I have been trying to figure out how the agent gathers the proccount value, but any suggestions are welcome!

    David
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    The problem is that the current system counts each PID entry two or more times. It does this because it counts the number of times that each process name appears in the status file. At present there is no fix for this, though.
    Unofficial Zabbix Developer

    Comment

    • dmz
      Junior Member
      • Jun 2005
      • 26

      #3
      Originally posted by James Wells
      Greetings,

      The problem is that the current system counts each PID entry two or more times. It does this because it counts the number of times that each process name appears in the status file. At present there is no fix for this, though.
      Interesting. Question, which status file is the agent reading to get this value?

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Originally posted by dmz
        Interesting. Question, which status file is the agent reading to get this value?
        IIRC it uses /proc/<PID>/status, /proc/<PID>/stat, and /proc/<PID>/cmdline

        I would have to crawl through the code again to figure out when it uses each one and why. All I remember from previous crawling was that it used all three and due to the way the 2.6 kernel works, it could double or tripple the actual number of proc count values because of it.
        Unofficial Zabbix Developer

        Comment

        Working...