Item proc.get[] only returning zabbix_agent2 process

XMLWordPrintable

    • Type: Problem report
    • Resolution: Commercial support required
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

       
      I have setup a template with the item proc.get[,,,process] in zabbix 7.0.9.

      I get a json blob back, but it is only for the zabbix_agent2 process. I need to get back a list of all the processes on the machine.

      I have zabbix server deployed with the community helm chart in openshift, which I believe comes with the zabbix_agent2 agent. So it looks like the data I'm getting back is from this agent alone when it should be all processes running on the server.

      Example of what is returned:

      [{"pid":1,"ppid":0,"name":"zabbix_agent2","cmdline":"/usr/sbin/zabbix_agent2 --foreground -c /etc/zabbix/zabbix_agent2.conf","user":"1019850000","group":"root","uid":1019850000,"gid":0,"vsize":2795458560,"pmem":0.014884652055003464,"rss":40226816,"data":228114432,"exe":8933376,"hwm":43794432,"lck":0,"lib":6590464,"peak":2862567424,"pin":0,"pte":348160,"size":237182976,"stk":135168,"swap":0,"cputime_user":88.73,"cputime_system":100.74,"state":"sleeping","ctx_switches":75739,"threads":21,"page_faults":15,"pss":38415872}]

      I've tried running the command with zabbix_agent on one of our test servers and I get "Unsupported Item Key"

      [user@server02 zabbix_api]$ zabbix_agentd -t proc.get[]
      proc.get[]                                    [m|ZBX_NOTSUPPORTED] [Unsupported item key.]
      [user@server02 zabbix_api]$ zabbix_agentd -t proc.get[,,,process]
      proc.get[,,,process]                          [m|ZBX_NOTSUPPORTED] [Unsupported item key.]
      [user@server02 zabbix_api]$ zabbix_agentd -t proc.get[,,,thread]
      proc.get[,,,thread]                           [m|ZBX_NOTSUPPORTED] [Unsupported item key.]
      [user@server02 zabbix_api]$
      

      Also with zabbix_agent2 on a different server

      [user@server03 ~]$ zabbix_agent2 -t proc.get[,,,process]
      proc.get[,,,process]                          [m|ZBX_NOTSUPPORTED] [Unknown metric proc.get]
      [user@server03 ~]$ zabbix_agent2 -t proc.get[,,,thread]
      proc.get[,,,thread]                           [m|ZBX_NOTSUPPORTED] [Unknown metric proc.get]
      [user@server03 ~]$ zabbix_agent2 -t proc.get[]
      proc.get[]                                    [m|ZBX_NOTSUPPORTED] [Unknown metric proc.get]
      [user@server03 ~]$
      

      In the interface when I test the command, I get the same error back: 


      But if I go to latest data there is data coming back for all my servers I have agents on. It's just the same zabbix_agent2 information each time:
       

      Ideally with the proc.get[] item I would get back a list of all the processes running on the machine like is detailed in the documentation. https://www.zabbix.com/documentation/7.0/en/manual/appendix/items/proc_get

       

       

            Assignee:
            Unassigned
            Reporter:
            Matthew Vandenberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: