proc.num is not giving back the correct number

XMLWordPrintable

    • Type: Incident report
    • Resolution: Incomplete
    • Priority: Trivial
    • None
    • Affects Version/s: 5.0.19
    • Component/s: Agent (G)
    • None

      I have a linux (18.04 LTS) running the zabbix-agent2 5.0.19, whenever I run it  in the foreground, i get the correct result back on our zabbix-proxy by testing with:


      /bin/zabbix_get -s IP.IP.IP.IP -p 10050 -k "proc.num[apache2]
      0
      while requesting the systemtime for example, that appeats to be working.

      When running  (with the agent running as daemon) the monitored machine itself, we get the following:

      /usr/sbin/zabbix_agent2 -t proc.num[apache2] -v
      proc.num[apache2]                             [s|11] 

      ------

      When we do the same with the zabbix-agent2 running in the foreground on the monitored server, i get the following result on the monitoring proxy:

      /bin/zabbix_get -s IP.IP.IP.IP -p 10050 -k "proc.num[apache2]"
      11

      -

      The only difference I see between both situations is that, when running in the foreground it runs as root, while running it on the background it uses the zabbix users...

            Assignee:
            Antons Sincovs
            Reporter:
            IT Services
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: