Ad Widget

Collapse

How can I change name of "Network interfaces discovery graphs"?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baalchina
    Junior Member
    • Jan 2020
    • 24

    #1

    How can I change name of "Network interfaces discovery graphs"?

    Hi, I have a switch with discovery rules, all interface have been discovered, and graphs had been created.

    But I found the graphs is like "Interface ethernet0/4: Network traffic", not a meaningfulname such as "Internet Access", and also I can not change the name of the graph.

    So, can I make a meaningful name of this graphs?

    Thanks.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Hi, please copy the SNMP OID field from the interface discovery rule here, and I'll show you how you can modify the discovery rule and/or graph prototypes to include the interface description in the graphs.

    Markku

    Comment

    • baalchina
      Junior Member
      • Jan 2020
      • 24

      #3
      Originally posted by Markku
      Hi, please copy the SNMP OID field from the interface discovery rule here, and I'll show you how you can modify the discovery rule and/or graph prototypes to include the interface description in the graphs.

      Markku
      thanks markku,
      the interface discovery odi like this
      Code:
      discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATUS},1.3.6.1.2.1.2.2.1.7,{#IFNAME},1.3.6.1.2.1.2.2.1.2,{#IFDESCR},1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1.3]

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        Thanks, I see {#IFDESCR} LLD macro is already set, so you should be able to include it in the graph title. Go to the template you are using, go to the interface discovery rule, go to Graph prototypes, and edit the graph name. You can use {#IFDESCR} there, like "Interface {#IFNAME} statistics ({#IFDESCR})", or how you like it formatted.

        I believe the changes are applied to the discovered graphs only with the discovery intervals, so you can temporarily lower the discovery rule interval to like 1 minute to get the graphs updated, and then set it back to the recommended 1 hour again after finishing the changes.

        Note that all this assumes that your switch is already configured with the suitable interface descriptions.

        Markku

        Comment

        • baalchina
          Junior Member
          • Jan 2020
          • 24

          #5
          Originally posted by Markku
          Thanks, I see {#IFDESCR} LLD macro is already set, so you should be able to include it in the graph title. Go to the template you are using, go to the interface discovery rule, go to Graph prototypes, and edit the graph name. You can use {#IFDESCR} there, like "Interface {#IFNAME} statistics ({#IFDESCR})", or how you like it formatted.

          I believe the changes are applied to the discovered graphs only with the discovery intervals, so you can temporarily lower the discovery rule interval to like 1 minute to get the graphs updated, and then set it back to the recommended 1 hour again after finishing the changes.

          Note that all this assumes that your switch is already configured with the suitable interface descriptions.

          Markku
          thanks.

          So where the {#IFDESCR} from? is it from the config in my network device's description part?

          I only want to change the name of graph in zabbix, for example, the config in my switch is 'to building1', I want the graph in zabbix is 'The interface to Building One'.

          So how to change the graphs name?

          This is auto discovery interface, I can not change the name:

          Click image for larger version

Name:	snipaste_20200113_160110.jpg
Views:	3770
Size:	18.9 KB
ID:	393192


          I cloned a graphs, The name can be changed.

          Click image for larger version

Name:	snipaste_20200113_160102.jpg
Views:	3723
Size:	16.5 KB
ID:	393193


          So, Is there any way to modify the autodiscovery interface name?


          Comment

          • Markku
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Sep 2018
            • 1781

            #6
            {#IFDESCR} is populated every hour (or whatever is the configured interval for the interface discovery) to contain the switch interface description fetched with SNMP.

            If you use it in the graph prototype (inside the discovery rule), you can have the interface description included in the graph titles.

            For example, in my interface discovery rule I have a graph prototype named "Interface statistics: {#IFNAME} ({#IFALIAS})", and here are the automatically created graphs in a list:

            Click image for larger version

Name:	graphlist.png
Views:	3709
Size:	8.0 KB
ID:	393196

            The descriptions "xxxxxsw6B" etc. are configured in the actual switch Te2/1/x interfaces, not in Zabbix configurations.

            Markku

            Comment

            Working...