nut upsmon not observing it's config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nut (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nut
This bug concerns the ill-fated nut 2.2.1-2.1ubuntu7 in ubuntu 8.04.
The bug is that upsmon, which I've configured to write its warnings to tty sessions is frequently reporting spurious low-battery conditions. I immediately run upsc to check the battery and it's at 100%. Worst, I've tried to turn off low battery warnings in upsmon.conf without defeating the spurious warnings. The only relief has been to shut down nut entirely.
Here's an excerpt from upsmon.conf:
NOTIFYFLAG NOCOMM SYSLOG
NOTIFYFLAG COMMOK SYSLOG
NOTIFYFLAG COMMBAD SYSLOG
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
#NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG FSD SYSLOG+WALL+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC
#NOTIFYFLAG REPLBATT SYSLOG+
Here is the battery portion of the upsc report right after a spurious warning of "low battery":
battery.charge: 100.0
battery.
battery.date: 02/18/00
battery.runtime: 240
battery.
battery.voltage: 13.61
battery.
I'm attach the whole config file to the message. -- al
2008/4/30 Al Grimstad <email address hidden>:
> Public bug reported:
>
> Binary package hint: nut
>
> This bug concerns the ill-fated nut 2.2.1-2.1ubuntu7 in ubuntu 8.04.
>
> The bug is that upsmon, which I've configured to write its warnings to
> tty sessions is frequently reporting spurious low-battery conditions. I
> immediately run upsc to check the battery and it's at 100%. Worst, I've
> tried to turn off low battery warnings in upsmon.conf without defeating
> the spurious warnings. The only relief has been to shut down nut
> entirely.
> ...
2 things:
- upsmon only reports things it catches. This means that it won't
report a low battery status by itself, but only if it has been
reported by the driver and so upsd. And the low battery is reported
through "ups.status=LB".
So I would be in favor of a driver bug. To catch this, you'll have to
reproduce it while running the driver in debug mode (using -DDD).
- upsmon, as upsd, will only honor configuration changes if it has
either been restarted or reloaded.
so either using "upsmon -c reload" or "invoke-rc.d nut restart"
-- Arnaud
-- www.mgeops. com www.networkupst ools.org/ people. debian. org/~aquette/ arnaud. quette. free.fr/
Linux / Unix Expert R&D - MGE Office Protection Systems - http://
Network UPS Tools (NUT) Project Leader - http://
Debian Developer - http://
Free Software Developer - http://