OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: deadlock on April 24, 2025, 05:49:30 PM

Title: NUT plugin, works but I do not want to shut down opnsense when battery low
Post by: deadlock on April 24, 2025, 05:49:30 PM
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?
Title: Re: NUT plugin, works but I do not want to shut down opnsense when battery low
Post by: lilsense on April 25, 2025, 12:55:30 PM
Hi,
  Disable Nut and you are done. :)
Title: Re: NUT plugin, works but I do not want to shut down opnsense when battery low
Post by: Fabian Wenk on April 26, 2025, 08:39:16 PM
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.