I am attempting to add another inputs.snmp block to my config file to collect data from my UPS, however, when I run a test on the config I get the response
Error adding point [ups1]: Metric cannot be made without any fields
The other inputs.snmp block I have works fine and is sending data to my InfluxDB.
Here is the appropriate section of my config file
[[inputs.snmp]]
agents = [ "ups1.local" ]
timeout = "15s"
retries = 3
version = 1
community = "homelab"
max_repetitions = 10
name = "ups1"
[[inputs.snmp.field]]
name = "battery-status"
oid = ".1.3.6.1.4.1.3808.1.1.1.2.1.1"
[[inputs.snmp.field]]
name = "time-on-battery"
oid = ".1.3.6.1.4.1.3808.1.1.1.2.1.2"
[[inputs.snmp.field]]
name = "battery-capacity"
oid = ".1.3.6.1.4.1.3808.1.1.1.2.2.1"
[[inputs.snmp.field]]
name = "battery-runtime-remaining"
oid = ".1.3.6.1.4.1.3808.1.1.1.2.2.4"
[[inputs.snmp.field]]
name = "input-voltage"
oid = ".1.3.6.1.4.1.3808.1.1.1.3.2.1"