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

    APCupsd package status for pfSense

    Scheduled Pinned Locked Moved pfSense Packages
    24 Posts 13 Posters 11.0k Views 1 Watching
    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.
    • Q Offline
      q54e3w
      last edited by

      Thanks for raising that issue. I was just testing this the other day and although I'm using NUT to control my pfsense and FreeNAS boxes, my UPS didn't shutdown either so I suspect this is correct.

      1 Reply Last reply Reply Quote 0
      • T Offline
        tylerhughes
        last edited by

        Will this package be updated for the new version of pfsense?

        1 Reply Last reply Reply Quote 0
        • J Offline
          JasonJoel
          last edited by

          @tylerhughes:

          Will this package be updated for the new version of pfsense?

          Doesn't look likely. https://doc.pfsense.org/index.php/2.3_Removed_Packages

          If there is no maintainer, then there is no one to convert it unless the pfSense guys themselves do it (and if they were planning to, it would have said so in the link).

          1 Reply Last reply Reply Quote 0
          • T Offline
            TheUniquePaulSmith
            last edited by

            @JasonJoel:

            @tylerhughes:

            Will this package be updated for the new version of pfsense?

            Doesn't look likely. https://doc.pfsense.org/index.php/2.3_Removed_Packages

            If there is no maintainer, then there is no one to convert it unless the pfSense guys themselves do it (and if they were planning to, it would have said so in the link).

            Doh!! I upgraded to 2.3 today, and this is the only package I actually really need  :-
            During the upgrade it seemed to have removed the package.

            My fault for not reading or preparing for the update, anyway can I manually install this package outside the supported pfSense package management?

            I have a USB attached UPS (CyberPower 550VA) and need this so that my home lab can gracefully shutdown when I have a power outage.
            My neighborhood powergrid sucks, we get about half a dozen power blips a year.

            I'm not too adverse in the BSD package management, I noticed this https://www.freshports.org/sysutils/apcupsd/ not sure if there is a pre-built binary that will work for pfSense. Also tried downloading source of apcupsd-3.14.13 but ran into ./configure failures

            1 Reply Last reply Reply Quote 0
            • E Offline
              elemay
              last edited by

              but the 'nut' package should re-appear.

              the link says: nut - not yet converted.

              1 Reply Last reply Reply Quote 0
              • D Offline
                dbaio
                last edited by

                @tylerhughes:

                Will this package be updated for the new version of pfsense?

                On the way.

                I've sent a PR for adding apcupsd on pfSense 2.3.

                https://github.com/pfsense/FreeBSD-ports/pull/128

                –
                Danilo G. Baio (dbaio)

                1 Reply Last reply Reply Quote 0
                • L Offline
                  LucaTo
                  last edited by

                  @dbaio:

                  @tylerhughes:

                  Will this package be updated for the new version of pfsense?

                  On the way.

                  I've sent a PR for adding apcupsd on pfSense 2.3.

                  https://github.com/pfsense/FreeBSD-ports/pull/128

                  Hi Danilo!
                  Any news?

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dbaio
                    last edited by

                    @LucaTo:

                    Hi Danilo!
                    Any news?

                    Still waiting for @devs for check this out.

                    –
                    Danilo G. Baio (dbaio)

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      FlashEngineer
                      last edited by

                      Is there a way to give some donations for this?  Right now I have only bandaid method to shutdown pfsense from another server hosting apcupsd using custom script.  It's not as robust but it's better than nothing.  If there is power outage, people without custom solutions will have pfsense just shutoff without shutting down gracefully…

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tylerhughes
                        last edited by

                        @FlashEngineer:

                        Is there a way to give some donations for this?  Right now I have only bandaid method to shutdown pfsense from another server hosting apcupsd using custom script.  It's not as robust but it's better than nothing.  If there is power outage, people without custom solutions will have pfsense just shutoff without shutting down gracefully…

                        I would be willing to donate to the cause as well, to support this package with functional email alrerts

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          FlashEngineer
                          last edited by

                          Still nothing here?  Is there anyway to get NUT working with an APC UPS that's running apcupsd driver rather than directly USB to pfsense box?

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TheUniquePaulSmith
                            last edited by

                            I'm not sure why the apcupsd was pulled, but according to the application site, there seems to be a design issue with FreeBSD in how it can shutdown the UPS

                            http://www.apcupsd.org/manual/manual.html#freebsd

                            Not sure if that has been resolved, or is part of the reason it isn't considered supported for FreeBSD.
                            I too would be willing to make a donation to get this package back in

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              bbunny
                              last edited by

                              So is there any chance for this to ever be approved ?

                              1 Reply Last reply Reply Quote 0
                              • dennypageD Offline
                                dennypage
                                last edited by

                                NUT itself supports talking with a remote apcupsd instance, although the existing NUT package does not support the configuration. I am working on a new version of the NUT package which will support have support for this configuration. I do not have an eta, but in the interim you could hand edit the files in /usr/local/etc/nut.

                                @FlashEngineer:

                                Is there anyway to get NUT working with an APC UPS that's running apcupsd driver rather than directly USB to pfsense box?

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  justmie
                                  last edited by

                                  I fixed it for now with configuring NUT the following way:

                                  • Choose Local UPS
                                  • Local UPS Name: <insert name="" here="">- Local UPS model: APC SmartUPS USB
                                  • Local UPS Port: Auto
                                    Save these settings.

                                  Then go to diagnostics > Edit file.
                                  load the folloing file: /usr/local/etc/nut/ups.conf
                                  change the driver and port settings to the following:
                                  driver=apcupsd-ups
                                  port= <hostname of="" your="" system="" where="" apcupsd="" runs="">Save the file.
                                  Start the NUT service.

                                  This works for me.

                                  </hostname></insert>

                                  1 Reply Last reply Reply Quote 0
                                  • dennypageD Offline
                                    dennypage
                                    last edited by

                                    The new NUT package is available for testing if you are interested:

                                    https://forum.pfsense.org/index.php?topic=114871.0

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.