Comment 2 for bug 224791

Revision history for this message
Arnaud Quette (aquette) wrote : Re: [Bug 224791] [NEW] nut upsmon not observing it's config file

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

--
Linux / Unix Expert R&D - MGE Office Protection Systems - http://www.mgeops.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
Free Software Developer - http://arnaud.quette.free.fr/