2017-04-04 14:18 GMT+02:00 Jon Bendtsen <[email protected]>: > On 04/04/17 14.10, Roger Price wrote: > >> On Tue, 4 Apr 2017, Arnaud Quette wrote: >> >> > [cuuuuut] > > Hi Arnaud, It seems to me that, looking out into the future, there are >> three >> things upsmon needs: >> >> 1. A fall-through <notify type> of "UNKNOWN" so that all status changes, >> no >> 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 >> already >> 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@localhost ONBATT "%s: local UPS on battery" >> NOTIFYMSG bigups@server ONBATT "%s: Server room alert: UPS on >> battery" >> >> NOTIFYFLAG myups@localhost ONBATT SYSLOG+EXEC+WALL >> NOTIFYFLAG heartbeat@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: https://github.com/networkupstools/nut/tree/upsmon_alarm For now: - upsmon can react on the ALARM notify type, as with other events, and WALL+SYSLOG+EXEC... - 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, Arno -- Eaton Data Center Automation Solutions - Opensource Leader - http://42ity.org NUT (Network UPS Tools) Project Leader - http://www.networkupstools.org Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.fr
_______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

