Roger Price
2017-Apr-04 12:10 UTC
[Nut-upsuser] battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
On Tue, 4 Apr 2017, Arnaud Quette wrote:> Hi Jon, Stuart and the list > > 2017-04-04 1:09 GMT+02:00 Stuart Gathman <stuart at gathman.org>: > Which NOTIFYCMD is run when there is an ALARM? > Have you specified that in your upsmon.conf? > > And that is the question of the hour.? How do you specify that?? Note > that this is not the REPLBATT status we are talking about. > > It's true that upsmon doesn't deal with ALARM, and that's definitely something missing. > > What about adding a <notify type> "ALARM" to upsmon (and its .conf), and have it processing like other notifications? > That would mean to you can have WALL / SYSLOG notifications, along with EXEC reaction if NOTIFYCMD is set.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 at localhost ONBATT "%s: local UPS on battery" NOTIFYMSG bigups at server ONBATT "%s: Server room alert: UPS on battery" NOTIFYFLAG myups at localhost ONBATT SYSLOG+EXEC+WALL NOTIFYFLAG heartbeat at localhost ONBATT SYSLOG+EXEC 3. A <notify type> "ALARM" as you propose. Best Regards, Roger
Jon Bendtsen
2017-Apr-04 12:18 UTC
[Nut-upsuser] battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
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 at localhost ONBATT "%s: local UPS on battery" > NOTIFYMSG bigups at server ONBATT "%s: Server room alert: UPS on battery" > > 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 JonB
Arnaud Quette
2017-Apr-04 13:19 UTC
[Nut-upsuser] battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
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: >> >> > [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 at localhost ONBATT "%s: local UPS on battery" >> NOTIFYMSG bigups at server ONBATT "%s: Server room alert: UPS on >> battery" >> >> 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: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170404/2f7939e5/attachment.html>
Maybe Matching Threads
- battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
- battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
- battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
- battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error
- battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error