I setup my raspberry pi to monitor my CyberPower 1500VA. I tested NUT by unplugging the UPS. Upon unplugging the UPS from the outlet, the upsmon shows that the UPS is on battery, then it is back on line power, once as I plug the UPS back in. But the server is never sent the shutdown signal. How do I get it so that the server is sent the shutdown signal? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20210816/1ae16243/attachment.htm>
On Mon, 16 Aug 2021, bobby via Nut-upsuser wrote:> I setup my raspberry pi to monitor my CyberPower 1500VA.? I tested NUT by > unplugging the UPS.? Upon unplugging the UPS from the outlet, the upsmon shows > that the UPS is on battery, then it is back on line?power, once as I plug the > UPS back in.? But the server is never sent the shutdown signal.? How do I get > it so that the server is sent the shutdown signal??What you are seeing is the correct behaviour. upsmon will not shut down your system until the battery charge drops below the value given by command upsc <ups> battery.charge.low If you want a faster shutdown, either raise the value of battery.charge.low or use timers. Roger
On 8/16/21 11:36 PM, bobby via Nut-upsuser wrote:> I setup my raspberry pi to monitor my CyberPower 1500VA.? I tested NUT > by unplugging the UPS.? Upon unplugging the UPS from the outlet, the > upsmon shows that the UPS is on battery, then it is back on > line?power, once as I plug the UPS back in.? But the server is never > sent the shutdown signal.? How do I get it so that the server is sent > the shutdown signal?Did you wait long enough so that the UPS signals that the battery is almost depleted ?