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

You can support me "User macros" for "custom graphs"?

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None
    • CENTOS 7.7
      ZABBIX 4.4.7

      Steps to reproduce:

      1. We collect network device parameters in the following format and upload to ZABBIX server (trapper):
         
        "200.200.5.32" FortyGigE1-7-1-13_state 1
        "200.200.5.32" FortyGigE1-7-1-14_state 1
        "200.200.5.32" FortyGigE1-7-1-15_state 1
        "200.200.5.32" FortyGigE1-7-1-16_state 1
        .......
         Corresponding to the host,item key and item value respectively.Then i can define the item key in the template

       
      Now there is a requirement. I want to write another script to pass the user macros:
       
      "200.200.5.32"  {$FortyGigE1-7-1-13}  FortyGigE1-7-1-13(describe xx13)
      "200.200.5.32"  {$FortyGigE1-7-1-14}  FortyGigE1-7-1-14(describe xx14)
      "200.200.5.32"  {$FortyGigE1-7-1-15}  FortyGigE1-7-1-15(describe xx15)
      Then I can use the user macros to define the item key(support already), and more importantly, I can define the graphs name(current not support):

       

      Result:

      But the problem is that I can't use macros to define graphic names:

      see:   20200416115016-1.jpg

      user macros can collect data in item items, but not in custom graphs。

      see:   20200416115016-2.jpg

      Expected:

      user macros support custom graphs

      thank you very much.

        1. 20200416115016-1.jpg
          34 kB
          武天宇
        2. 20200416115016-2.jpg
          39 kB
          武天宇

            zabbix.support Zabbix Support Team
            wutianyu 武天宇
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: