Skip to content

Instantly share code, notes, and snippets.

@fliiiix
Created March 27, 2018 17:09
Show Gist options
  • Save fliiiix/2921c168182b27b27d8aca2bdb5f83b0 to your computer and use it in GitHub Desktop.
Save fliiiix/2921c168182b27b27d8aca2bdb5f83b0 to your computer and use it in GitHub Desktop.
HP 1810-24G Switch (J9450A) telegraf snmp config
[[inputs.snmp]]
agents = [ "atlas.l33t.network:161" ]
community = "l33tsnmp"
[[inputs.snmp.field]]
name = "hostname"
oid = "SNMPv2-MIB::sysName.0"
is_tag = true
# Port 01
[[inputs.snmp.field]]
name = "if_01_name"
oid = "IF-MIB::ifName.1"
[[inputs.snmp.field]]
name = "if_01_speed"
oid = "IF-MIB::ifSpeed.1"
[[inputs.snmp.field]]
name = "if_01_in_octets"
oid = "IF-MIB::ifInOctets.1"
[[inputs.snmp.field]]
name = "if_01_out_octets"
oid = "IF-MIB::ifOutOctets.1"
[[inputs.snmp.field]]
name = "if_01_in_error"
oid = "IF-MIB::ifInErrors.1"
[[inputs.snmp.field]]
name = "if_01_out_error"
oid = "IF-MIB::ifOutErrors.1"
# Port 02
[[inputs.snmp.field]]
name = "if_02_name"
oid = "IF-MIB::ifName.2"
[[inputs.snmp.field]]
name = "if_02_speed"
oid = "IF-MIB::ifSpeed.2"
[[inputs.snmp.field]]
name = "if_02_in_octets"
oid = "IF-MIB::ifInOctets.2"
[[inputs.snmp.field]]
name = "if_02_out_octets"
oid = "IF-MIB::ifOutOctets.2"
[[inputs.snmp.field]]
name = "if_02_in_error"
oid = "IF-MIB::ifInErrors.2"
[[inputs.snmp.field]]
name = "if_02_out_error"
oid = "IF-MIB::ifOutErrors.2"
# Port 03
[[inputs.snmp.field]]
name = "if_03_name"
oid = "IF-MIB::ifName.3"
[[inputs.snmp.field]]
name = "if_03_speed"
oid = "IF-MIB::ifSpeed.3"
[[inputs.snmp.field]]
name = "if_03_in_octets"
oid = "IF-MIB::ifInOctets.3"
[[inputs.snmp.field]]
name = "if_03_out_octets"
oid = "IF-MIB::ifOutOctets.3"
[[inputs.snmp.field]]
name = "if_03_in_error"
oid = "IF-MIB::ifInErrors.3"
[[inputs.snmp.field]]
name = "if_03_out_error"
oid = "IF-MIB::ifOutErrors.3"
# Port 04
[[inputs.snmp.field]]
name = "if_04_name"
oid = "IF-MIB::ifName.4"
[[inputs.snmp.field]]
name = "if_04_speed"
oid = "IF-MIB::ifSpeed.4"
[[inputs.snmp.field]]
name = "if_04_in_octets"
oid = "IF-MIB::ifInOctets.4"
[[inputs.snmp.field]]
name = "if_04_out_octets"
oid = "IF-MIB::ifOutOctets.4"
[[inputs.snmp.field]]
name = "if_04_in_error"
oid = "IF-MIB::ifInErrors.4"
[[inputs.snmp.field]]
name = "if_04_out_error"
oid = "IF-MIB::ifOutErrors.4"
# Port 05
[[inputs.snmp.field]]
name = "if_05_name"
oid = "IF-MIB::ifName.5"
[[inputs.snmp.field]]
name = "if_05_speed"
oid = "IF-MIB::ifSpeed.5"
[[inputs.snmp.field]]
name = "if_05_in_octets"
oid = "IF-MIB::ifInOctets.5"
[[inputs.snmp.field]]
name = "if_05_out_octets"
oid = "IF-MIB::ifOutOctets.5"
[[inputs.snmp.field]]
name = "if_05_in_error"
oid = "IF-MIB::ifInErrors.5"
[[inputs.snmp.field]]
name = "if_05_out_error"
oid = "IF-MIB::ifOutErrors.5"
# Port 06
[[inputs.snmp.field]]
name = "if_06_name"
oid = "IF-MIB::ifName.6"
[[inputs.snmp.field]]
name = "if_06_speed"
oid = "IF-MIB::ifSpeed.6"
[[inputs.snmp.field]]
name = "if_06_in_octets"
oid = "IF-MIB::ifInOctets.6"
[[inputs.snmp.field]]
name = "if_06_out_octets"
oid = "IF-MIB::ifOutOctets.6"
[[inputs.snmp.field]]
name = "if_06_in_error"
oid = "IF-MIB::ifInErrors.6"
[[inputs.snmp.field]]
name = "if_06_out_error"
oid = "IF-MIB::ifOutErrors.6"
# Port 07
[[inputs.snmp.field]]
name = "if_07_name"
oid = "IF-MIB::ifName.7"
[[inputs.snmp.field]]
name = "if_07_speed"
oid = "IF-MIB::ifSpeed.7"
[[inputs.snmp.field]]
name = "if_07_in_octets"
oid = "IF-MIB::ifInOctets.7"
[[inputs.snmp.field]]
name = "if_07_out_octets"
oid = "IF-MIB::ifOutOctets.7"
[[inputs.snmp.field]]
name = "if_07_in_error"
oid = "IF-MIB::ifInErrors.7"
[[inputs.snmp.field]]
name = "if_07_out_error"
oid = "IF-MIB::ifOutErrors.7"
# Port 08
[[inputs.snmp.field]]
name = "if_08_name"
oid = "IF-MIB::ifName.8"
[[inputs.snmp.field]]
name = "if_08_speed"
oid = "IF-MIB::ifSpeed.8"
[[inputs.snmp.field]]
name = "if_08_in_octets"
oid = "IF-MIB::ifInOctets.8"
[[inputs.snmp.field]]
name = "if_08_out_octets"
oid = "IF-MIB::ifOutOctets.8"
[[inputs.snmp.field]]
name = "if_08_in_error"
oid = "IF-MIB::ifInErrors.8"
[[inputs.snmp.field]]
name = "if_08_out_error"
oid = "IF-MIB::ifOutErrors.8"
# Port 09
[[inputs.snmp.field]]
name = "if_09_name"
oid = "IF-MIB::ifName.9"
[[inputs.snmp.field]]
name = "if_09_speed"
oid = "IF-MIB::ifSpeed.9"
[[inputs.snmp.field]]
name = "if_09_in_octets"
oid = "IF-MIB::ifInOctets.9"
[[inputs.snmp.field]]
name = "if_09_out_octets"
oid = "IF-MIB::ifOutOctets.9"
[[inputs.snmp.field]]
name = "if_09_in_error"
oid = "IF-MIB::ifInErrors.9"
[[inputs.snmp.field]]
name = "if_09_out_error"
oid = "IF-MIB::ifOutErrors.9"
# Port 10
[[inputs.snmp.field]]
name = "if_10_name"
oid = "IF-MIB::ifName.10"
[[inputs.snmp.field]]
name = "if_10_speed"
oid = "IF-MIB::ifSpeed.10"
[[inputs.snmp.field]]
name = "if_10_in_octets"
oid = "IF-MIB::ifInOctets.10"
[[inputs.snmp.field]]
name = "if_10_out_octets"
oid = "IF-MIB::ifOutOctets.10"
[[inputs.snmp.field]]
name = "if_10_in_error"
oid = "IF-MIB::ifInErrors.10"
[[inputs.snmp.field]]
name = "if_10_out_error"
oid = "IF-MIB::ifOutErrors.10"
# Port 11
[[inputs.snmp.field]]
name = "if_11_name"
oid = "IF-MIB::ifName.11"
[[inputs.snmp.field]]
name = "if_11_speed"
oid = "IF-MIB::ifSpeed.11"
[[inputs.snmp.field]]
name = "if_11_in_octets"
oid = "IF-MIB::ifInOctets.11"
[[inputs.snmp.field]]
name = "if_11_out_octets"
oid = "IF-MIB::ifOutOctets.11"
[[inputs.snmp.field]]
name = "if_11_in_error"
oid = "IF-MIB::ifInErrors.11"
[[inputs.snmp.field]]
name = "if_11_out_error"
oid = "IF-MIB::ifOutErrors.11"
# Port 12
[[inputs.snmp.field]]
name = "if_12_name"
oid = "IF-MIB::ifName.12"
[[inputs.snmp.field]]
name = "if_12_speed"
oid = "IF-MIB::ifSpeed.12"
[[inputs.snmp.field]]
name = "if_12_in_octets"
oid = "IF-MIB::ifInOctets.12"
[[inputs.snmp.field]]
name = "if_12_out_octets"
oid = "IF-MIB::ifOutOctets.12"
[[inputs.snmp.field]]
name = "if_12_in_error"
oid = "IF-MIB::ifInErrors.12"
[[inputs.snmp.field]]
name = "if_12_out_error"
oid = "IF-MIB::ifOutErrors.12"
# Port 13
[[inputs.snmp.field]]
name = "if_13_name"
oid = "IF-MIB::ifName.13"
[[inputs.snmp.field]]
name = "if_13_speed"
oid = "IF-MIB::ifSpeed.13"
[[inputs.snmp.field]]
name = "if_13_in_octets"
oid = "IF-MIB::ifInOctets.13"
[[inputs.snmp.field]]
name = "if_13_out_octets"
oid = "IF-MIB::ifOutOctets.13"
[[inputs.snmp.field]]
name = "if_13_in_error"
oid = "IF-MIB::ifInErrors.13"
[[inputs.snmp.field]]
name = "if_13_out_error"
oid = "IF-MIB::ifOutErrors.13"
# Port 14
[[inputs.snmp.field]]
name = "if_14_name"
oid = "IF-MIB::ifName.14"
[[inputs.snmp.field]]
name = "if_14_speed"
oid = "IF-MIB::ifSpeed.14"
[[inputs.snmp.field]]
name = "if_14_in_octets"
oid = "IF-MIB::ifInOctets.14"
[[inputs.snmp.field]]
name = "if_14_out_octets"
oid = "IF-MIB::ifOutOctets.14"
[[inputs.snmp.field]]
name = "if_14_in_error"
oid = "IF-MIB::ifInErrors.14"
[[inputs.snmp.field]]
name = "if_14_out_error"
oid = "IF-MIB::ifOutErrors.14"
# Port 15
[[inputs.snmp.field]]
name = "if_15_name"
oid = "IF-MIB::ifName.15"
[[inputs.snmp.field]]
name = "if_15_speed"
oid = "IF-MIB::ifSpeed.15"
[[inputs.snmp.field]]
name = "if_15_in_octets"
oid = "IF-MIB::ifInOctets.15"
[[inputs.snmp.field]]
name = "if_15_out_octets"
oid = "IF-MIB::ifOutOctets.15"
[[inputs.snmp.field]]
name = "if_15_in_error"
oid = "IF-MIB::ifInErrors.15"
[[inputs.snmp.field]]
name = "if_15_out_error"
oid = "IF-MIB::ifOutErrors.15"
# Port 16
[[inputs.snmp.field]]
name = "if_16_name"
oid = "IF-MIB::ifName.16"
[[inputs.snmp.field]]
name = "if_16_speed"
oid = "IF-MIB::ifSpeed.16"
[[inputs.snmp.field]]
name = "if_16_in_octets"
oid = "IF-MIB::ifInOctets.16"
[[inputs.snmp.field]]
name = "if_16_out_octets"
oid = "IF-MIB::ifOutOctets.16"
[[inputs.snmp.field]]
name = "if_16_in_error"
oid = "IF-MIB::ifInErrors.16"
[[inputs.snmp.field]]
name = "if_16_out_error"
oid = "IF-MIB::ifOutErrors.16"
# Port 17
[[inputs.snmp.field]]
name = "if_17_name"
oid = "IF-MIB::ifName.17"
[[inputs.snmp.field]]
name = "if_17_speed"
oid = "IF-MIB::ifSpeed.17"
[[inputs.snmp.field]]
name = "if_17_in_octets"
oid = "IF-MIB::ifInOctets.17"
[[inputs.snmp.field]]
name = "if_17_out_octets"
oid = "IF-MIB::ifOutOctets.17"
[[inputs.snmp.field]]
name = "if_17_in_error"
oid = "IF-MIB::ifInErrors.17"
[[inputs.snmp.field]]
name = "if_17_out_error"
oid = "IF-MIB::ifOutErrors.17"
# Port 18
[[inputs.snmp.field]]
name = "if_18_name"
oid = "IF-MIB::ifName.18"
[[inputs.snmp.field]]
name = "if_18_speed"
oid = "IF-MIB::ifSpeed.18"
[[inputs.snmp.field]]
name = "if_18_in_octets"
oid = "IF-MIB::ifInOctets.18"
[[inputs.snmp.field]]
name = "if_18_out_octets"
oid = "IF-MIB::ifOutOctets.18"
[[inputs.snmp.field]]
name = "if_18_in_error"
oid = "IF-MIB::ifInErrors.18"
[[inputs.snmp.field]]
name = "if_18_out_error"
oid = "IF-MIB::ifOutErrors.18"
# Port 19
[[inputs.snmp.field]]
name = "if_19_name"
oid = "IF-MIB::ifName.19"
[[inputs.snmp.field]]
name = "if_19_speed"
oid = "IF-MIB::ifSpeed.19"
[[inputs.snmp.field]]
name = "if_19_in_octets"
oid = "IF-MIB::ifInOctets.19"
[[inputs.snmp.field]]
name = "if_19_out_octets"
oid = "IF-MIB::ifOutOctets.19"
[[inputs.snmp.field]]
name = "if_19_in_error"
oid = "IF-MIB::ifInErrors.19"
[[inputs.snmp.field]]
name = "if_19_out_error"
oid = "IF-MIB::ifOutErrors.19"
# Port 20
[[inputs.snmp.field]]
name = "if_20_name"
oid = "IF-MIB::ifName.20"
[[inputs.snmp.field]]
name = "if_20_speed"
oid = "IF-MIB::ifSpeed.20"
[[inputs.snmp.field]]
name = "if_20_in_octets"
oid = "IF-MIB::ifInOctets.20"
[[inputs.snmp.field]]
name = "if_20_out_octets"
oid = "IF-MIB::ifOutOctets.20"
[[inputs.snmp.field]]
name = "if_20_in_error"
oid = "IF-MIB::ifInErrors.20"
[[inputs.snmp.field]]
name = "if_20_out_error"
oid = "IF-MIB::ifOutErrors.20"
# Port 21
[[inputs.snmp.field]]
name = "if_21_name"
oid = "IF-MIB::ifName.21"
[[inputs.snmp.field]]
name = "if_21_speed"
oid = "IF-MIB::ifSpeed.21"
[[inputs.snmp.field]]
name = "if_21_in_octets"
oid = "IF-MIB::ifInOctets.21"
[[inputs.snmp.field]]
name = "if_21_out_octets"
oid = "IF-MIB::ifOutOctets.21"
[[inputs.snmp.field]]
name = "if_21_in_error"
oid = "IF-MIB::ifInErrors.21"
[[inputs.snmp.field]]
name = "if_21_out_error"
oid = "IF-MIB::ifOutErrors.21"
# Port 22
[[inputs.snmp.field]]
name = "if_22_name"
oid = "IF-MIB::ifName.22"
[[inputs.snmp.field]]
name = "if_22_speed"
oid = "IF-MIB::ifSpeed.22"
[[inputs.snmp.field]]
name = "if_22_in_octets"
oid = "IF-MIB::ifInOctets.22"
[[inputs.snmp.field]]
name = "if_22_out_octets"
oid = "IF-MIB::ifOutOctets.22"
[[inputs.snmp.field]]
name = "if_22_in_error"
oid = "IF-MIB::ifInErrors.22"
[[inputs.snmp.field]]
name = "if_22_out_error"
oid = "IF-MIB::ifOutErrors.22"
# Port 23
[[inputs.snmp.field]]
name = "if_23_name"
oid = "IF-MIB::ifName.23"
[[inputs.snmp.field]]
name = "if_23_speed"
oid = "IF-MIB::ifSpeed.23"
[[inputs.snmp.field]]
name = "if_23_in_octets"
oid = "IF-MIB::ifInOctets.23"
[[inputs.snmp.field]]
name = "if_23_out_octets"
oid = "IF-MIB::ifOutOctets.23"
[[inputs.snmp.field]]
name = "if_23_in_error"
oid = "IF-MIB::ifInErrors.23"
[[inputs.snmp.field]]
name = "if_23_out_error"
oid = "IF-MIB::ifOutErrors.23"
# Port 24
[[inputs.snmp.field]]
name = "if_24_name"
oid = "IF-MIB::ifName.24"
[[inputs.snmp.field]]
name = "if_24_speed"
oid = "IF-MIB::ifSpeed.24"
[[inputs.snmp.field]]
name = "if_24_in_octets"
oid = "IF-MIB::ifInOctets.24"
[[inputs.snmp.field]]
name = "if_24_out_octets"
oid = "IF-MIB::ifOutOctets.24"
[[inputs.snmp.field]]
name = "if_24_in_error"
oid = "IF-MIB::ifInErrors.24"
[[inputs.snmp.field]]
name = "if_24_out_error"
oid = "IF-MIB::ifOutErrors.24"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment