OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: Woi on May 19, 2021, 06:28:30 PM

Title: NUT: no restart of UPS
Post by: Woi on May 19, 2021, 06:28:30 PM
Hey OPNsenseis :)

I configured NUT with an Eaton 5PX UPS. On power loss OPNsens shuts down as expected, but doesn't switch of the UPS. If power returns before battery depletion, there is no power cycle and my OPNsense stays off. I did some investigation and believe this is a bug, but before writing a bug report, I like to have some confirmation of this behaviour from other users.

What I did for testing:

This makes me believe os-nut is missing step 8 in init scripts as described in [2]. At least, I couldn't find the necessary bits.
If someone confirms this behaviour, I would create a bug report for it.


[1] https://networkupstools.org/docs/user-manual.chunked/ar01s06.html#Testing_shutdowns
[2] https://networkupstools.org/docs/user-manual.chunked/ar01s06.html#Shutdown_design
Title: NUT: Are your UPS outlets switched off after shutdown?
Post by: Woi on May 26, 2021, 10:27:15 AM
No reply yet? Maybe I should shorten my question:

Are your UPS outlets switched off after OPNsense shutdown or do your UPS outlets stay enabled after OPNsense shutdown?
Title: Re: NUT: no restart of UPS
Post by: gpb on May 26, 2021, 03:21:02 PM
I appreciate your posting about NUT as I have a different issue (probably my own doing, unsure at this point).  You might consider also posting at the link below.  I wish NUT was enhanced a bit more to include an option to shutdown after xx minutes of being on battery like my NAS units do.  I've looked at this for hours and can't figure out how to make this work.  Had a recent outage and OPNsense is a netclient, it reported battery low but didn't shutdown...didn't start to shutdown.  Log reported battery low, and then the UPS powered off about one minute later.  Cheers.

https://github.com/opnsense/plugins/issues