Ad Widget

Collapse

Overriding Legend Strings in Graph widgets to make them shorter?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • timg11
    Junior Member
    • Jun 2026
    • 2

    #1

    Overriding Legend Strings in Graph widgets to make them shorter?

    I'm using Zabbix 7.0.22 to graph SNMP data from a Cisco SG200 26 port switch.

    I'm only interested in the data throughput for some of the ports, so I used the graph widget, I added a data set for each port I want to have on the graph.

    The host is Cisco SG-200-26. I use wildcard strings like Interface gi1(* Bits* in Item Patterns to match both sent and received bit/sec for a specific port.

    The problem is the legend displays long strings like "Cisco-SG200-26: Interface gi5(Server Room E Shelf Switch): Bits received"
    They take too much room, displaying the redundant part and truncating the relevant parts.
    I'd like to override the legends and have a custom name like "gi5(Server Room E Shelf Switch): received"

    I wasted several hours with AI trying numerous approaches, none of which worked.
    Is there a human around here who knows how to do this?
  • timg11
    Junior Member
    • Jun 2026
    • 2

    #2
    Crickets.... so maybe I'm approaching this wrong. Is there a different way to control legend text in a graph widget?
    PS - my Zabbix 7.0.22 is running in a Docker container under Unraid 7.2.2 on a Dell T440 server, if that makes any difference.
    Last edited by timg11; 17-06-2026, 18:36.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4945

      #3
      There is a data set label in graph config... But I doubt it will resolve all the issues..

      Comment

      • irontmp
        Member
        • Sep 2023
        • 69

        #4
        Originally posted by timg11
        I'm using Zabbix 7.0.22 to graph SNMP data from a Cisco SG200 26 port switch.

        I'm only interested in the data throughput for some of the ports, so I used the graph widget, I added a data set for each port I want to have on the graph.

        The host is Cisco SG-200-26. I use wildcard strings like Interface gi1(* Bits* in Item Patterns to match both sent and received bit/sec for a specific port.

        The problem is the legend displays long strings like "Cisco-SG200-26: Interface gi5(Server Room E Shelf Switch): Bits received"
        They take too much room, deck builder displaying the redundant part and truncating the relevant parts.
        I'd like to override the legends and have a custom name like "gi5(Server Room E Shelf Switch): received"

        I wasted several hours with AI trying numerous approaches, none of which worked.
        Is there a human around here who knows how to do this?
        The classic Monitoring / Hosts / Graphs editor lets you set a custom label per item directly in the graph configuration.The classic Monitoring / Hosts / Graphs editor lets you set a custom label per item directly in the graph configuration. The dashboard graph widget does not have this field, which is why nothing worked there. Build your graph there instead and your legend names will be whatever you type.

        Comment

        Working...