ups.status contains TEST even after ups-selftest is finished (SNMP) #2416
Labels
Incorrect or missing readings
On some devices driver-reported values are systemically off (e.g. x10, x0.1, const+Value, etc.)
SNMP
My setup:
I have recently set up the connection between a UPS and a Debian system. The network card supports the snmp OIDs from RFC1682, so I configured NUT to use the ietf MIB profile. That seems to work, the driver starts and I get correct data displayed from upsc.
But one thing that looks off is that the "ups.status" is constantly showing "OL TEST", even tough no test is running.
From what I gathered, NUT requests all relevant fields and receives correct answers from the network card (correct as in confirming to the RFC and the UPS status as reported in its webinterface). It even displays "ups.test.result" as "done and passed", so it knows that the test was finished successful.
The RFC defines that a read operation against "upsTestId" returns the value of the name of a test in progress, the last test performed if no one is in progress, or a predefined value if no test has been run.
A read operation against "upsTestResultsSummary" returns the status of the test with the id from the above operation. The status indicates if the test is currently running, or the result of the last test if no test is currently in progress.
But in the ietf mapping file for NUT, the return value of "upsTestId" gets mapped straight into "ups.status", no matter what "upsTestResultsSummary" shows :
nut/drivers/ietf-mib.c
Line 249 in 389b970
My questions here:
The text was updated successfully, but these errors were encountered: