Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2599

proc.num on linux includes OS threads in process count

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      Linux zabbix-agent

      Description

      On Linux, if the process being counted has spawned an OS-level thread, that appears as a process in /proc and is included in the proc.num output. This makes proc.num[<daemon>] return a number >1 occasionally for daemon's that periodically spawn a thread.

      The attached patch compares the thread group ID from /proc/<pid>/status to the pid and if they do not match ignores the thread.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            vitroth David Nolan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: