<div dir="ltr"><div>Thinking of it, one purpose of upssched is to delay reaction to short-lived flukes (e.g. if we go on battery for 20 seconds and set a delay for 30, if we're back on line within that time frame, it is ok to go on living).</div><div><br></div><div>I wonder if your UPS went under 70% and you aborted the experiment too early (compared to the delay you had set, possibly with a margin for the frequency of UPS polling rate and regular `upsmon` interactions with `upsd` - typically 5 to 30 sec each)?..</div><div><br></div><div>Jim</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 1, 2024 at 1:32 PM Alan via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div class="gmail_quote"><div>Hi,</div><div><br></div><div>A while back I set up a NUT server on a debian machine (Proxmox). I followed the guide at <a href="https://wiki.debian.org/Exim4Gmail" target="_blank">https://wiki.debian.org/Exim4Gmail</a> so that I would receive email notifications and verified that emails work.</div><div><br></div><div>I modified .<b>/etc/nut/upssched-cmd</b> and modified the script to send an email (happy to share).</div><div><br></div><div>I then wanted to test the solution so I unplugged the UPS.</div><div>NUT wrote a message to the console and I received an email to inform me that the UPS was on battery. </div><div><br></div><div>I had configured the battery.charge.low: 70 and battery.runtime.low: 2500. My thought was when one of these conditions are met the server would bring down the guests and shut itself down. The UPS battery.charge went under 70 but nothing happened. Below is the output from upsc and what happened when I plugged the power back into the ups.</div><div><br></div><div>upsc pve1@localhost<br><font face="monospace">Init SSL without certificate database<br>battery.charge: 63<br>battery.charge.low: 70<br>battery.runtime: 3133<br>battery.runtime.low: 2500<br>battery.type: PbAc<br>battery.voltage: 36.80<br>battery.voltage.nominal: 36.00<br>device.mfr: PHOENIXTEC<br>device.model: Innova Unity<br>device.serial: CPANM2436540037<br>device.type: ups<br><a href="http://driver.name" target="_blank">driver.name</a>: usbhid-ups<br>driver.parameter.pollfreq: 30<br>driver.parameter.pollinterval: 2<br>driver.parameter.port: auto<br>driver.parameter.productid: FFFF<br>driver.parameter.serial: CPANM2436540037<br>driver.parameter.synchronous: auto<br>driver.parameter.vendorid: 06DA<br>driver.version: 2.8.0<br>driver.version.data: Phoenixtec/Liebert HID 0.41<br>driver.version.internal: 0.47<br>driver.version.usb: libusb-1.0.26 (API: 0x1000109)<br>output.frequency: 50.00<br>output.voltage: 229.6<br>ups.delay.shutdown: 300<br>ups.load: 13<br>ups.mfr: PHOENIXTEC<br>ups.model: Innova Unity<br>ups.productid: ffff<br>ups.serial: CPANM2436540037<br>ups.status: OB DISCHRG<br>ups.vendorid: 06da</font><br> </div><div><b><< UPS plugged back in >></b></div><div> <br><font face="monospace">Broadcast message from root@proxmox-01 (somewhere) (Sat Jun 1 12:36:17 2024): <br> <br>UPS pve1@localhost on line power </font><br></div><div><br></div><div>How can I diagnose / resolve this?</div><div><br></div><div>Thanks</div><div>Alan</div><div><br></div><div> </div></div></div>
</div>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>