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

Roger Price roger at rogerprice.org
Tue May 8 16:41:31 BST 2018


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



More information about the Nut-upsuser mailing list