[Nut-upsuser] how to use multiple UPS with timers

Pilch, Alexander Pilch at citkomm.de
Wed May 9 15:02:43 BST 2018

Yes both UPS units are on different power supplies. MINSUPPLIES is set to 1.
Afaik NUT waits for OB and LB before shutting down the system. Is there a way to change this behavior to only wait for OB?
Then I would use FINALDELAY in case the power outage doesn't last long.

I already tried to change the battery.runtime.low setting over the webinterface of the CS121 (snmp is readonly) but with our AEG UPS, this didn't work as expected(seems like a firmware bug) and I need to work around this problem.
I'm already in contact with AEG but I also have a bunch of UPS units from other manufacturers to cover with the same controller card and different (potentially buggy) firmware...

Best regards
Alexander Pilch

-----Urspr√ľngliche Nachricht-----
Von: Nut-upsuser [mailto:nut-upsuser-bounces+pilch=citkomm.de at alioth-lists.debian.net] Im Auftrag von Roger Price
Gesendet: Dienstag, 8. Mai 2018 17:42
An: nut-upsuser Mailing List
Betreff: Re: [Nut-upsuser] how to use multiple UPS with timers

On Tue, 8 May 2018, Pilch, Alexander wrote:

> I need to shut down a VMWare host if both connected UPS are x minutes on battery.

If these two UPS units are on different power supplies then it is possible for 
one to reach x minutes on battery while the other is still on wall power.

> Are timers the only possible solution to this problem?

NUT provides the MINSUPPLIES declaration in upsmon.conf to handle multiple UPS 
units when the setup uses status [OB] to call for a system shutdown, but if your 
shutdown plan is for a time based solution, then you could use NUT utility upsrw 
to set the battery.charge.low value to a high value corresponding to x minutes.

This would get around the need for an external script.


More information about the Nut-upsuser mailing list