On Mon, 3 Apr 2017, Gene Heskett wrote:

Nut, IIRC, can do a periodic battery test by putting it offline,
using the battery, for a predetermined length of time, weekly,
monthly etc,

We definitely don't want that in this instance either!

Why not? If the battery has a holdup time of 5 minutes when its fresh,

Because in this instance it crashes your system, corrupts filesystems,
etc, etc.

We want the ALARM that the nut driver is
generating, and upsd is passing on - to be acted on in some way by
upsmon.  Which NOTIFYCMD is run when there is an ALARM?

I've not read the docs in ages, but if there isn't something mentioned in
a man upsmon, I would be unpleasantly surprised.

According to my copy, it does a -wall (warn all) by default, and it looks
like REPLBATT is one such message, and the default time for a repeat is
12 hours.  The -wall type message shows on every open terminal on the
system's network, so someone should see it.  From the upsmon.conf file:

That would be great if "we" (the original poster) were getting a REPLBATT...

NOTIFYCMD command
... long winded reiteration of man pages....

I think what we have here is a bug/oversight in upsmon, which we might be able
to create a nice test case for using the dummy-ups driver. It is not clear if it can generate the composite status "ALARM OL", but I will try
in a bit.  If it can't, maybe a patch for dummy-ups is in order.

--
              Stuart D. Gathman <[email protected]>
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to