Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26858

Unknown Metric for UserParameters in Zabbix 7.0.9

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Commercial support required
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

       
      I have created userparameters for zabbix-agent and zabbix-agent2. For each one I've made I'm getting "Unknown Metric" in the Zabbix Server Web UI. No matter what the command is.

      I'm running the Server in openshift deployed with the zabbix community helm chart: https://github.com/zabbix-community/helm-zabbix

      I'm tried testing these user parameters with zabbix_agent and zabbix_agent2 on two different servers

      I've tried defining the parameter in /etc/zabbix/zabbix_agentd.conf and a sub config file /etc/zabbix/zabbix_agentd.d/proc_list.conf

      UserParameter=proclist,ps -eo pid,user,stat,comm,cmd --no-headers | head -n 200
      UserParameter=ping,echo 1

      I can run zabbix_agentd -t proclist and get my item back:

      [user@server zabbix_agent_testing]$ zabbix_agentd -t proclist
      proclist                                      [t|      1 root     Ss   systemd         /usr/lib/systemd/systemd --switched-root --system --deserialize 30
            2 root     S    kthreadd        [kthreadd]
            3 root     S    pool_workqueue_ [pool_workqueue_]
            4 root     I<   kworker/R-rcu_g [kworker/R-rcu_g]
            5 root     I<   kworker/R-sync_ [kworker/R-sync_]
            6 root     I<   kworker/R-slub_ [kworker/R-slub_]
            7 root     I<   kworker/R-netns [kworker/R-netns]
           10 root     I    kworker/u512:0- [kworker/u512:0-events_unbound]
           11 root     I<   kworker/R-mm_pe [kworker/R-mm_pe]
           12 root     I    kworker/u512:1- [kworker/u512:1-netns]
           13 root     I    rcu_tasks_kthre [rcu_tasks_kthre]
           14 root     I    rcu_tasks_rude_ [rcu_tasks_rude_]
           15 root     I    rcu_tasks_trace [rcu_tasks_trace]
           16 root     S    ksoftirqd/0     [ksoftirqd/0]
           17 root     I    rcu_preempt     [rcu_preempt]
           18 root     S    rcu_exp_par_gp_ [rcu_exp_par_gp_]
           19 root     S    rcu_exp_gp_kthr [rcu_exp_gp_kthr]
           20 root     S    migration/0     [migration/0]
           21 root     S    idle_inject/0   [idle_inject/0]
           23 root     S    cpuhp/0         [cpuhp/0]
           24 root     S    cpuhp/1         [cpuhp/1]
           25 root     S    idle_inject/1   [idle_inject/1]
      

      I can also run zabbix_get from the server to get the same item. Its only defined on our 02 server and not 03 so I verified its not unknown

      $ zabbix_get -s server03 -p 10050 -k proclist
      ZBX_NOTSUPPORTED: Unknown metric proclist
      $ zabbix_get -s server02 -p 10050 -k proclist
            1 root     Ss   systemd         /usr/lib/systemd/systemd --switched-root --system --deserialize 30
            2 root     S    kthreadd        [kthreadd]
            3 root     S    pool_workqueue_ [pool_workqueue_]
            4 root     I<   kworker/R-rcu_g [kworker/R-rcu_g]
            5 root     I<   kworker/R-sync_ [kworker/R-sync_]
            6 root     I<   kworker/R-slub_ [kworker/R-slub_]
            7 root     I<   kworker/R-netns [kworker/R-netns]
           10 root     I    kworker/u512:0- [kworker/u512:0-events_unbound]
           11 root     I<   kworker/R-mm_pe [kworker/R-mm_pe]
           12 root     I    kworker/u512:1- [kworker/u512:1-netns]
           13 root     I    rcu_tasks_kthre [rcu_tasks_kthre]
           14 root     I    rcu_tasks_rude_ [rcu_tasks_rude_]
           15 root     I    rcu_tasks_trace [rcu_tasks_trace]
           16 root     S    ksoftirqd/0     [ksoftirqd/0]
           17 root     I    rcu_preempt     [rcu_preempt]
           18 root     S    rcu_exp_par_gp_ [rcu_exp_par_gp_]

      Lastly I can test the item from zabbix web ui and get this same data: 

       

       

      But from the web ui when I go to look at the data in the latest data tab, it still shows "Unknown Metric proclist"

       

       

       

       

       

      I've done this with around 6 other userparameters and all of them show "Unknown Metric".

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

              Created:
              Updated:
              Resolved: