[Nut-upsuser] battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
arnaud.quette at gmail.com
Tue Apr 4 13:19:54 UTC 2017
2017-04-04 14:18 GMT+02:00 Jon Bendtsen <jon.bendtsen at jonix.dk>:
> On 04/04/17 14.10, Roger Price wrote:
>> On Tue, 4 Apr 2017, Arnaud Quette wrote:
> Hi Arnaud, It seems to me that, looking out into the future, there are
>> things upsmon needs:
>> 1. A fall-through <notify type> of "UNKNOWN" so that all status changes,
>> matter how wierd, can be caught. Such a catch-all <notify type> would
>> also have
>> caught the "ALARM" from the old battery.
>> 2. A UPS specific option in the NOTIFYFLAG and NOTIFYMSG declarations as
>> provided by the AT declaration in upssched.conf. This would make it
>> possible to
>> have messages and action specific to a UPS, in a multi-UPS configuration.
>> I would like to be able to specify
>> NOTIFYMSG myups at localhost ONBATT "%s: local UPS on battery"
>> NOTIFYMSG bigups at server ONBATT "%s: Server room alert: UPS on
>> NOTIFYFLAG myups at localhost ONBATT SYSLOG+EXEC+WALL
>> NOTIFYFLAG heartbeat at localhost ONBATT SYSLOG+EXEC
>> 3. A <notify type> "ALARM" as you propose.
> good ideas
there is a Github issue: https://github.com/networkupstools/nut/issues/415
+ a branch with the implementation:
- upsmon can react on the ALARM notify type, as with other events, and
- I've also fixed the CGI to expose the ALARM flag, which was not done.
A possible improvement would be to send the content of ups.alarm, but that
requires more thinking and time.
And the current implementation already points at this data.
@Jon: would you be able to test this branch and ack? (including the "covers
(or not) my needs...)
thanks and cheers,
Eaton Data Center Automation Solutions - Opensource Leader -
NUT (Network UPS Tools) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser