Skip to content

Instantly share code, notes, and snippets.

@samm-git
Created June 19, 2023 10:28
Show Gist options
  • Save samm-git/1c2f1a7cae3e247242778da111d74174 to your computer and use it in GitHub Desktop.
Save samm-git/1c2f1a7cae3e247242778da111d74174 to your computer and use it in GitHub Desktop.
Telegraf PSU configuration for the EP-54V-150W
[[inputs.snmp]]
## Agent addresses to retrieve values from.
agents = ["udp://psu.local:161"]
version = 1
path = ["/usr/local/share/snmp/mibs"]
name_override = "psu"
[[inputs.snmp.field]]
oid = "RFC1213-MIB::sysUpTime.0"
name = "uptime"
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntThermTemperature.1"
name = "temp.board1"
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntThermTemperature.2"
name = "temp.board2"
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntThermTemperature.3"
name = "temp.board3"
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntThermTemperature.4"
name = "temp.psu2"
# Output voltage in mV
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntPowerOutVoltage.1"
name = "ubntPowerOutVoltage.1"
# Output current in mA.
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntPowerOutCurrent.1"
name = "ubntPowerOutCurrent.1"
# Output power in mW
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntPowerOutPower.1"
name = "ubntPowerOutPower.1"
# Battery voltage
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntPsuVoltage.2"
name = "batteryvoltage"
# Charging status
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntPsuCharging.2"
name = "charging_status"
# AC status
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntPsuOperStatus.1"
name = "ac_status"
# Battery replacement date
[[inputs.snmp.field]]
oid = "UBNT-EdgeMAX-MIB::ubntPsuBatteryLastReplaceDate.2"
name = "battery_date"
# battery current
[[inputs.exec]]
commands = ["/usr/local/etc/telegraf.d/get_current.sh"]
timeout = "5s"
data_format = "influx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment