Skip to content

Instantly share code, notes, and snippets.

@szukalski
Last active January 4, 2017 16:07
Show Gist options
  • Save szukalski/119fd70481f8d4c8e68b17ca657171f4 to your computer and use it in GitHub Desktop.
Save szukalski/119fd70481f8d4c8e68b17ca657171f4 to your computer and use it in GitHub Desktop.
telegraf snmp_esxi.conf
[[inputs.snmp]]
agents = [ "XXX.YYY.ZZZ" ]
version = 2
community = "public"
name = "esxiSystem"
[[inputs.snmp.field]]
name = "hostname"
oid = "RFC1213-MIB::sysName.0"
is_tag = true
[[inputs.snmp.field]]
name = "physicalDescr"
oid = "ENTITY-MIB::entPhysicalDescr.1"
[[inputs.snmp.table]]
name = "esxiStorage"
inherit_tags = [ "hostname" ]
oid = "HOST-RESOURCES-MIB::hrStorageTable"
[[inputs.snmp.table.field]]
name = "storageIndex"
oid = "HOST-RESOURCES-MIB::hrStorageIndex"
is_tag = true
[[inputs.snmp.table]]
name = "esxiInterface"
inherit_tags = [ "hostname" ]
oid = "IF-MIB::ifXTable"
[[inputs.snmp.table.field]]
name = "ifName"
oid = "IF-MIB::ifName"
is_tag = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment