Open johnkozan opened 3 months ago
I'll add support for parsing both date formats, thanks.
@johnkozan Would you be able to test the latest release? I've fixed this bug, and tried to add support for the additional metrics reported by your SmartUPS X 3000. I don't own this UPS myself, so I'm unable to test.
I'm getting this error now:
The configured Network Information Server is: 127.0.0.1:3551.
Resetting all metrics...
Starting background metrics collection...
Serving metrics page at http://127.0.0.1:5000/metrics...
Connected to the Network Information Server.
strconv.ParseFloat: parsing "OFF": invalid syntax
Heya, I've fixed this by incorporating more robust parsing of fields expected to be numeric. Values such as OFF
, No alarm
, NO
, etc. will now be discarded and fallback to a default (-1
in most cases).
Would you be able to test the latest release to see if it works for you now?
Sorry about this being a bit back and forth.
When I run
apc-ups-exporter
I get the following error.apcupsd is connected to the UPS (SmartUPS X 3000) via SNMP.
apcaccess
output: