Cisco NXOS/ACI IfAlias

Dashboard

No.1 Troubleshooting Dashboard - Filter Interface Statistics based on IfAlias/Description
Last updated: 4 months ago

Downloads: 50

Reviews: 0

  • IFAliasQuery_Dashboard.png
    IFAliasQuery_Dashboard.png

Cisco NX-OS and ACI - IfAlias Dashboard

So this one has the potential to become your most popular dashboard ... ever.

Data gathering

Telegraf polls configured devices (agents) via SNMPv3 and stores all metrics as a measurement IF in the InfluxDB. You might like to adjust the [inputs.snmp.tagpass] section if you want to poll portchannel or loopback Interfaces as well.

Dashboard usage

When you open the dashboard nothing is displayed, because the ad hoc query at the top of the screen is set to an unused default value. Just enter a (part of a) searchstring of your connected device, be it a server, Firewall, WAN Edge,... and the Dashboards provides full interfaces statistics of all Switches with this IfAlias, as well as three graph panels with Interface status, Traffic and Errors over time. Remember: The query uses regex, so it has to begin and end with an slash, like /-253/ in the example to find the Server with -253 in the name.

Share this dashboard with your serverteam, service desk, basically everyone connecting straight to your network and your ticket count will drop significantly. Because now everybody can self evaluate the network side of their devices.

Collector Configuration Details

[[inputs.snmp]]
agents = [ "1.1.1.1" ]
timeout = "5s"
retries = 3
version = 3
sec_name = "telegraf"
auth_protocol = "SHA"
auth_password = "<SECRET>"
sec_level = "authPriv"
priv_protocol = "AES"
priv_password = "<SECRET>"

[[inputs.snmp.field]]
    oid = "RFC1213-MIB::sysName.0"
    name = "source"
    is_tag = true
[[inputs.snmp.table]]
  name = "IF"
  inherit_tags = [ "source" ]
  # oid = "IF-MIB::ifXTable" # Don't walk the whole table, just single metrics specified
  # Interface tag - used to identify interface in metrics database [[inputs.snmp.table.field]]
[[inputs.snmp.table.field]]
   name = "ifName"
   oid = "IF-MIB::ifName"
   is_tag = true
[[inputs.snmp.table.field]]
   name = "ifAlias"
   oid = "IF-MIB::ifAlias"
   is_tag = true
[[inputs.snmp.table.field]]
   name = "ifOperStatusCause"
   oid = "1.3.6.1.4.1.9.9.276.1.1.2.1.10"
   is_tag = true
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifHighSpeed"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifAdminStatus"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifOperStatus"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifHCInOctets"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifHCOutOctets"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifInDiscards"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifOutDiscards"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifInErrors"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifOutErrors"
[[inputs.snmp.table.field]]
   oid = "IF-MIB::ifInUnknownProtos"

[inputs.snmp.tagpass]
     ifName = [ "Ethernet*" ] # Only Metrics starting with "Ethernet", no VLAN, portchannel, ...

[[outputs.influxdb]]
  database = "telegraf"
  username = "<username>"
  password = "<password>"
Dependencies: