[Nut-upsuser] battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error

Jon Bendtsen jon.bendtsen at jonix.dk
Mon Apr 3 16:29:55 UTC 2017


On 03/04/17 18.05, Tim Dawson wrote:
> NUT can only report what the UPS tells it. IE, if no battery/load test is runs
> on the UPS, it has no way to know the battery croaked . . . it just sees normal
> voltage, and says "100% charge" . . . .


yeah, but the UPS does also tell NUT:

root at dkfitlet:/etc/nut# upslog -s apc1500 -l -
Network UPS Tools upslog 2.7.2
logging status of apc1500 to - (30s intervals)
Init SSL without certificate database
20170403 154055 100 230.4 21.4 [ALARM OL] NA NA
20170403 154125 100 230.4 20.8 [ALARM OL] NA NA
20170403 154155 100 230.4 21.4 [ALARM OL] NA NA


root at dkfitlet:/etc/nut# upsmon -DDD
Network UPS Tools upsmon 2.7.2
kill: No such process
    0.000000    UPS: apc1500 at localhost (monitoring only)
    0.000214    UPS: Smart-UPS_3000 at localhost (monitoring only)
    0.000328    UPS: R3000XR at localhost (monitoring only)
    0.001278    Using power down flag file /etc/killpower
    0.002126    debug level is '3'
    0.005831    Init SSL without certificate database
    0.011754    Trying to connect to UPS [apc1500 at localhost]
    0.013150    Can not connect to localhost in SSL, continue uncrypted
    0.013909    Logged into UPS apc1500 at localhost
    0.014384    pollups: apc1500 at localhost
    0.014501    get_var: apc1500 at localhost / status
    0.014889    parse_status: [ALARM OL]
    0.015012    parsing: [ALARM]
    0.015100    parsing: [OL]
    0.015181    ups_on_line: apc1500 at localhost (first time)



however, I have to go into debug level 2 to see that.



root at dkfitlet:/home/jonbendtsen# upsmon -DD
Network UPS Tools upsmon 2.7.2
kill: No such process
    0.000000	UPS: apc1500 at localhost (monitoring only)
    0.000166	UPS: Smart-UPS_3000 at localhost (monitoring only)
    0.000257	UPS: R3000XR at localhost (monitoring only)
    0.000884	Using power down flag file /etc/killpower
    0.001629	debug level is '2'
    0.005681	Init SSL without certificate database
    0.011154	Trying to connect to UPS [apc1500 at localhost]
    0.013431	Logged into UPS apc1500 at localhost
    0.013955	pollups: apc1500 at localhost
    0.014318	parse_status: [ALARM OL]


level 1 is not enough to see the ALARM in the output




More information about the Nut-upsuser mailing list