<div dir="auto">Adding to what others said, your best bet should be that the VM host monitors two UPSes with two NUT driver instances (snmp or usb), and upsmon client would specify that each UPS powers e.g. one of your two PSUs - and one well-fed PSU is sufficient to run. Then when power does go critical, upsmon would gracefully shut down the system where it runs calling a SHUTDOWNCMD you can define (so handling VM hibernation/shutdown if that is not handled as part of OS routine).</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 17, 2022, 13:53 Manuel Wolfshant <<a href="mailto:wolfy@nobugconsulting.ro">wolfy@nobugconsulting.ro</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 6/17/22 11:55, PeReZ via Nut-upsuser wrote:<br>
> I need to manage two UPSes but my host can set and monitor only one.<br>
<br>
why only one ?<br>
<br>
<br>
><br>
> So I thinked to install NUT UPS on a Raspberry to monitor both UPSes <br>
> and to create a dummy ups.<br>
><br>
> The two UPSes are identical and both have LAN cards but I can connect <br>
> them via USB if desiderable.<br>
<br>
All the UPSes I know that have LAN cards support SNMP so -- assuming <br>
yours do not deviate from this - you should be able to monitor both of <br>
them directly from any computer that can speak SNMP. You do not need the <br>
PI or the dummy UPS.<br>
<br>
<br>
><br>
> Can I connect the Raspberry to the host via USB for dummy UPS <br>
> communications?<br>
><br>
> The dummy ups should do:<br>
> - notify ON_BATTERY if both UPSes are on battery<br>
> - if both go on LOW battery, change its status to LOW battery also<br>
> - send a shutdown comamnd to both UPSes with a delay of 5 minutes so <br>
> the host can gracefully stops all VMs and itself<br>
> - turn off the Raspberry?<br>
><br>
> The NUT server should send notifications on real status of both UPSes <br>
> via mail.<br>
><br>
> Is it possible?<br>
<br>
I guess it is but I fail to understand why do you complicate your life <br>
with this approach instead of monitoring both UPS via SNMP and maybe <br>
using setting two semaphores ( one per UPS ) and doing a logical AND <br>
between the conditions with a simple script written in any language of <br>
your choice.<br>
<br>
<br>
wolfy<br>
<br>
<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank" rel="noreferrer">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>