# # Retrieves SNMP values from remote agents [[inputs.snmp]] agents = [ "192.168.99.138" ] ## Timeout for each SNMP query. timeout = "30s" ## Number of retries to attempt within timeout. retries = 3 ## SNMP version, values can be 1, 2, or 3 version = 2 # hostname ovveride name_override = "ups" # ## SNMP community string. community = "public" [[inputs.snmp.field]] name = "hostname" oid = "RFC1213-MIB::sysName.0" is_tag = true [[inputs.snmp.field]] name = "uptime" oid = "DISMAN-EXPRESSION-MIB::sysUpTimeInstance" [[inputs.snmp.field]] name = "model" oid = "PowerNet-MIB::upsBasicIdentModel.0" [[inputs.snmp.field]] name = "name" oid = "PowerNet-MIB::upsBasicIdentName.0" [[inputs.snmp.field]] name = "upsBasicBatteryTimeOnBattery" oid = "PowerNet-MIB::upsBasicBatteryTimeOnBattery.0" [[inputs.snmp.field]] name = "upsAdvBatteryRunTimeRemaining" oid = "PowerNet-MIB::upsAdvBatteryRunTimeRemaining.0" [[inputs.snmp.field]] name = "upsAdvBatteryReplaceIndicator" oid = "PowerNet-MIB::upsAdvBatteryReplaceIndicator.0" [[inputs.snmp.field]] name = "upsHighPrecBatteryCapacity" oid = "PowerNet-MIB::upsHighPrecBatteryCapacity.0" conversion = "float(1)" [[inputs.snmp.field]] name = "upsHighPrecBatteryTemperature" oid = "PowerNet-MIB::upsHighPrecBatteryTemperature.0" conversion = "float(1)" [[inputs.snmp.field]] name = "upsBasicOutputStatus" oid = "PowerNet-MIB::upsBasicOutputStatus.0" [[inputs.snmp.field]] name = "upsHighPrecOutputLoad" oid = "PowerNet-MIB::upsHighPrecOutputLoad.0" conversion = "float(1)" [[inputs.snmp.field]] name = "upsHighPrecOutputEfficiency" oid = "PowerNet-MIB::upsHighPrecOutputEfficiency.0" conversion = "float(1)" [[inputs.snmp.field]] name = "upsHighPrecOutputVoltage" oid = "PowerNet-MIB::upsHighPrecOutputVoltage.0" conversion = "float(1)" [[inputs.snmp.field]] name = "upsHighPrecInputLineVoltage" oid = "PowerNet-MIB::upsHighPrecInputLineVoltage.0" conversion = "float(1)" [[inputs.snmp.field]] name = "upsHighPrecOutputCurrent" oid = "PowerNet-MIB::upsHighPrecOutputCurrent.0" conversion = "float(1)" [[inputs.snmp.field]] name = "upsHighPrecOutputEnergyUsage" oid = "PowerNet-MIB::upsHighPrecOutputEnergyUsage.0" conversion = "float(1)" # IF-MIB::ifTable contains counters on input and output traffic as well as errors and discards. [[inputs.snmp.table]] name = "interface" inherit_tags = [ "hostname" ] oid = "IF-MIB::ifTable" # Interface tag - used to identify interface in metrics database [[inputs.snmp.table.field]] name = "ifDescr" oid = "IF-MIB::ifDescr" is_tag = true # IF-MIB::ifXTable contains newer High Capacity (HC) counters that do not overflow as fast for a few of the ifTable counters [[inputs.snmp.table]] name = "interface" inherit_tags = [ "hostname" ] oid = "IF-MIB::ifXTable" # Interface tag - used to identify interface in metrics database [[inputs.snmp.table.field]] name = "ifDescr" oid = "IF-MIB::ifDescr" is_tag = true # EtherLike-MIB::dot3StatsTable contains detailed ethernet-level information about what kind of errors have been logged on an interface (such as FCS error, frame too long, etc) [[inputs.snmp.table]] name = "interface" inherit_tags = [ "hostname" ] oid = "EtherLike-MIB::dot3StatsTable" # Interface tag - used to identify interface in metrics database [[inputs.snmp.table.field]] name = "ifDescr" oid = "IF-MIB::ifDescr" is_tag = true