Skip to content

Instantly share code, notes, and snippets.

@themainframe
Created June 2, 2020 13:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themainframe/a07d7496fe40f2e1324b901c81393969 to your computer and use it in GitHub Desktop.
Save themainframe/a07d7496fe40f2e1324b901c81393969 to your computer and use it in GitHub Desktop.
Telegraf configuration for APC Smart-UPS UPS SNMP
[[inputs.snmp]]
agents = ["udp://10.10.0.49:161"]
version = 1
community = "public"
[[inputs.snmp.field]]
name = "battery_capacity_percent"
oid = ".1.3.6.1.4.1.318.1.1.1.2.2.1.0"
[[inputs.snmp.field]]
name = "battery_temperature"
oid = ".1.3.6.1.4.1.318.1.1.1.2.2.2.0"
[[inputs.snmp.field]]
name = "battery_runtime_left"
oid = ".1.3.6.1.4.1.318.1.1.1.2.2.3.0"
[[inputs.snmp.field]]
name = "battery_replace_required_if_2"
oid = ".1.3.6.1.4.1.318.1.1.1.2.2.4.0"
[[inputs.snmp.field]]
name = "input_voltage"
oid = ".1.3.6.1.4.1.318.1.1.1.3.2.1.0"
[[inputs.snmp.field]]
name = "input_frequency"
oid = ".1.3.6.1.4.1.318.1.1.1.3.2.4.0"
[[inputs.snmp.field]]
name = "output_voltage"
oid = ".1.3.6.1.4.1.318.1.1.1.4.2.1.0"
[[inputs.snmp.field]]
name = "output_frequency"
oid = ".1.3.6.1.4.1.318.1.1.1.4.2.2.0"
[[inputs.snmp.field]]
name = "output_load_percentage"
oid = ".1.3.6.1.4.1.318.1.1.1.4.2.3.0"
[[inputs.snmp.field]]
name = "output_load_amps"
oid = ".1.3.6.1.4.1.318.1.1.1.4.2.4.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment