Cisco IOS by SNMP template modification for bits sent/received on interface

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.0, 7.0.16
    • Component/s: Templates (T)
    • None
    • Environment:
      Zabbix 7 Cisco IOS by SNMP template

      Steps to reproduce:

      1. Apply "Cisco IOS by SNMP" template to network equipement. 
      2. Let "Network interfaces discovery" do its thing. 

      Result:

      Network interfaces that are down do not report bits received/sent and therefore OIDs does not exist. For example:

       

      snmpwalk -v 2c -c public <host> ifHCInOctets.32
      IF-MIB::ifHCInOctets.32 = No Such Instance currently exists at this OID

       

      Therefore item becomes unsupported.

      Fix:

      Add preprocessing "check for error using regular expression" step on item prototype for "Interface {#IFNAME}({#IFALIAS}): Bits received" and "Interface {#IFNAME}({#IFALIAS}): Bits sent" using expression "(no data was found)" and setting value to 0. 

            Assignee:
            Zabbix Development Team
            Reporter:
            Julien Lacasse-Roger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: