NUT plugin, works but I do not want to shut down opnsense when battery low

Started by deadlock, April 24, 2025, 05:49:30 PM

Previous topic - Next topic
Hi

I am using the NUT plugin and have connected a UPS over usb to the opnsense router.

However as soon as the battery is low on the UPS it shuts down.
I do not want the opnsense router to shut down as it will not restart itself unless the battery gets completely empty. I do however have multiple other servers as clients to the opnsense nut service and I want these to shut down as usual.

Can I disable the shut down of the opnsense system but still run the nut service?


I am not using NUT, as I have APC UPS and so I am using apcupsd. Depending on the used UPS and Firmware on it, it may be possible to send the UPS a shutdown signal (with delay to execute) to turn itself off as well. Make sure that all the other systems are shutdown before with longer run time / higher battery level when they should initialize the shutdown.
When the power returns and the UPS has a certain (configurable) level of battery charge, it will power the outlets again and your system should start again. Some UPS even have groups of outlets which can be powered up with more or less delay.