trigger a send shutdown request to a server when UPS detect a power failure
-
IS there a place in pfsense you can send a comment to the server after a certain discharge percentage is reached from the UPS to trigger the servers to start their shutdowns?
-
@gstlouis
You didn't mention, which UPS agent software you're running. But anyway, for either you will have to provide a NIS server or alike and run a UPS agent in slave mode on the other devices. -
There's also Network UPS Tools (NUT)
The primary goal of the Network UPS Tools (NUT) project is to provide support for Power Devices, such as Uninterruptible Power Supplies, Power Distribution Units, Automatic Transfer Switches, Power Supply Units and Solar Controllers. NUT provides a common protocol and set of tools to monitor and manage such devices, and to consistently name equivalent features and data points, across a vast range of vendor-specific protocols and connection media types.
It has a FreeBSD package...
-
There's a pfSense package for it too. And a specific section on the forum for that.
-
Thanks all. I will look through the link from @stephenw10 to see if I can find myself a solution. I feel @viragomann might be a good approach as I recall reading on this.
It has been so long I do not recall doing the setup. However, I am pretty sure this was out of the box, or I just had to enable it and plugin via USB. Which was awesome with no hassle
In my services this is running
apcupsd APC UPS Daemon -
@gstlouis
I'm also using the apcupsd package on an pfSense installation. The UPS supplies a Proxmox server. On this I installed apcupsd as well.
The service connects to pfSense via NIS and gets the UPS status from it and triggers its shutdown on its own.The shutdown of the server works as expected on power outages this way.
Just ensure that the other hosts shutdown before pfSense.