• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

trigger a send shutdown request to a server when UPS detect a power failure

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 4 Posters 182 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    gstlouis
    last edited by Apr 4, 2025, 4:15 PM

    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?

    V 1 Reply Last reply Apr 4, 2025, 5:18 PM Reply Quote 0
    • V
      viragomann @gstlouis
      last edited by Apr 4, 2025, 5:18 PM

      @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.

      1 Reply Last reply Reply Quote 0
      • J
        joetaber
        last edited by joetaber Apr 4, 2025, 5:48 PM Apr 4, 2025, 5:46 PM

        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...

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Apr 4, 2025, 11:47 PM

          There's a pfSense package for it too. And a specific section on the forum for that. 😉

          1 Reply Last reply Reply Quote 1
          • G
            gstlouis
            last edited by Apr 8, 2025, 7:35 PM

            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

            787c7301-146d-4793-a33b-f74afb95b8e2-image.png

            V 1 Reply Last reply Apr 8, 2025, 7:48 PM Reply Quote 0
            • V
              viragomann @gstlouis
              last edited by Apr 8, 2025, 7:48 PM

              @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.

              1 Reply Last reply Reply Quote 1
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received