Solaris proc.num[] state filtering does not work

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 5.0.3
    • Component/s: Agent (G)
    • None
    • Environment:
      OmniOS r151034 (illumos distribution), zabbix compiled from source

      Steps to reproduce:

      Use zabbix_get to retrieve proc.num with run, sleep or zomb in the third argument.

      Result:

      The total number of processes is always returned and not filtered by the state.

      reaper% zabbix_get -s localhost -k 'proc.num[,af,,sshd]'
      5
      reaper% zabbix_get -s localhost -k 'proc.num[,af,run,sshd]'
      5
      reaper% zabbix_get -s localhost -k 'proc.num[,af,sleep,sshd]'

       

      Expected:

      With this patch, processes are appropriately filtered by state

      procstate.patch.txt

       

      reaper% zabbix_get -s localhost -k 'proc.num[,af,,sshd]'
      5
      reaper% zabbix_get -s localhost -k 'proc.num[,af,run,sshd]'
      0
      reaper% zabbix_get -s localhost -k 'proc.num[,af,sleep,sshd]'

       

            Assignee:
            Zabbix Development Team
            Reporter:
            Andy Fiddaman
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: