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.

Roger

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

Reply via email to