Screenshot from 2019-12-12 23-31-22.png
Set the IP(s) of your catalyst switches in your telegraf config and you're all set.
Collector Configuration Details
[[inputs.snmp]]
agents = [ "SwitchIP" ]
version = 2
community = "public"
[[inputs.snmp.field]]
name = "sysName"
oid = "SNMPv2-MIB::sysName.0"
is_tag = true
[[inputs.snmp.field]]
name = "sysLocation"
oid = "SNMPv2-MIB::sysLocation.0"
is_tag = true
[[inputs.snmp.field]]
name = "uptime"
oid = "DISMAN-EVENT-MIB::sysUpTimeInstance"
[[inputs.snmp.field]]
name = "ciscoProduct"
oid = "iso.3.6.1.4.1.9.9.402.1.3.1.2.1"
[[inputs.snmp.field]]
name = "ciscoSoftware"
oid = "iso.3.6.1.4.1.9.9.500.1.2.1.1.8.1001"
#Temps
[[inputs.snmp.table]]
name = "ciscoEnvMonTemperatureStatusTable"
inherit_tags = ["sysName","sysLocation"]
[[inputs.snmp.table.field]]
name = "ciscoEnvMonTemperatureStatusDescr"
oid = "iso.3.6.1.4.1.9.9.13.1.3.1.2"
[[inputs.snmp.table.field]]
name = "ciscoEnvMonTemperatureStatusValue"
oid = "iso.3.6.1.4.1.9.9.13.1.3.1.3"
[[inputs.snmp.table.field]]
name = "ciscoEnvMonTemperatureThreshold"
oid = "iso.3.6.1.4.1.9.9.13.1.3.1.4"
[[inputs.snmp.table.field]]
name = "ciscoEnvMonTemperatureLastShutdown"
oid = "iso.3.6.1.4.1.9.9.13.1.3.1.5"
[[inputs.snmp.table.field]]
name = "ciscoEnvMonTemperatureState"
oid = "iso.3.6.1.4.1.9.9.13.1.3.1.6"
#Powersupply
[[inputs.snmp.table]]
name = "ciscoEnvMonSupplyStatusTable"
inherit_tags = ["sysName","sysLocation"]
[[inputs.snmp.table.field]]
name = "ciscoEnvMonSupplyStatusDescr"
oid = "iso.3.6.1.4.1.9.9.13.1.5.1.2"
[[inputs.snmp.table.field]]
name = "ciscoEnvMonSupplyState"
oid = "iso.3.6.1.4.1.9.9.13.1.5.1.3"
[[inputs.snmp.table.field]]
name = "RciscoEnvMonSupplySource"
oid = "iso.3.6.1.4.1.9.9.13.1.5.1.4"
[[inputs.snmp.table]]
name = "ciscoCPU"
inherit_tags = ["sysName","sysLocation"]
[[inputs.snmp.table.field]]
name = "cpmCPUTotal5secRev"
oid = ".1.3.6.1.4.1.9.9.109.1.1.1.1.6"
[[inputs.snmp.table.field]]
name = "cpmCPUTotal1minRev"
oid = ".1.3.6.1.4.1.9.9.109.1.1.1.1.7"
[[inputs.snmp.table.field]]
name = "cpmCPUTotal5minRev"
oid = ".1.3.6.1.4.1.9.9.109.1.1.1.1.8"
#Interface Stats
[[inputs.snmp.table]]
name = "ciscoInterface"
inherit_tags = [ "sysName","sysLocation" ]
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifHCInOctets"
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifHCOutOctets"
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifDescr"
is_tag = true
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifAlias"
is_tag = true
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifHighSpeed"
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifOperStatus"
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifLastChange"
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifInErrors"
[[inputs.snmp.table.field]]
oid = "IF-MIB::ifOutErrors"