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

    NUT Driver Selection

    Scheduled Pinned Locked Moved pfSense Packages
    21 Posts 2 Posters 3.2k 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.
    • dennypageD Offline
      dennypage
      last edited by

      The NUT package only supports "real" UPS types. There is no way to select the dummy driver.

      Out of curiosity, why do you want to run the dummy driver on pfSense? This driver would normally be used for NUT development.

      1 Reply Last reply Reply Quote 0
      • arrmoA Offline
        arrmo
        last edited by

        Hi,

        The reason for the dummy driver - I'm actually using a laptop to run pfSense … works great, has a AES capable processor, and built in keyboard, screen - and a great UPS (a battery ... :)). I'm running a separate script to update the "device" file.

        It does work, I manually set the dummy ups driver. But it would be nice in the GUI.

        Make sense?

        Thanks!

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

          @arrmo:

          The reason for the dummy driver  …  I'm running a separate script to update the "device" file.

          Sorry for being dense, but I still don't understand. What is actually being monitored by NUT? What shutdown action are you taking and what is the trigger?

          If you are trying to shutdown or suspend pfSense when the laptop battery goes low, I would think that there are better approaches than NUT. FreeBSD has direct power management support.

          1 Reply Last reply Reply Quote 0
          • arrmoA Offline
            arrmo
            last edited by

            No worries!

            Using NUT as I also monitor it remotely, and several other UPS's as well - all using NUT. So it's easier overall, more consistent. Also, it works with the built in widget and NUT support in pfSense.

            It's not a big deal, just a thought.

            Thanks!

            1 Reply Last reply Reply Quote 0
            • arrmoA Offline
              arrmo
              last edited by

              OK, got it all working on my side … script updates my "device" file, dummy-ups reads it, all is good => except one thing, of course ...  :(

              It seems that pfSense keeps overriding my manual driver change (ups.conf), so on upgrade (and perhaps reboot) my settings are lost. Is there a way to avoid this?

              Thanks.

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

                I'll see about adding support for dummy when I next rev the package. Can you post the ups.conf that you are using please? Thanks.

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

                  Actually, it would be helpful to see your entire NUT config. You can PM me if you prefer. Thanks.

                  1 Reply Last reply Reply Quote 0
                  • arrmoA Offline
                    arrmo
                    last edited by

                    Hi,

                    All I have changed is /usr/local/etc/nut/ups.conf. It's below (it's not very exciting … LOL),

                    [APC]
                    driver=dummy-ups
                    port=/var/tmp/nutDummyUPS/nutDummyUPS.dev
                    

                    The driver is dummy-ups, and port is just the file name it points to.

                    Thanks!

                    1 Reply Last reply Reply Quote 0
                    • arrmoA Offline
                      arrmo
                      last edited by

                      FYI, this seems to be somewhat changed … is that correct? It's not getting overwritten on reboot / upgrade (yay!), but does happen some other times.

                      Should I add this to redmine, just so it's captured?

                      Thanks!

                      1 Reply Last reply Reply Quote 0
                      • arrmoA Offline
                        arrmo
                        last edited by

                        Hi,

                        OK, my mistake - another issue blocked me seeing this. It's still the same … ;).

                        Is there a file I can edit to store my desired ups.conf file? Asking because restarting some other services (like OpenVPN), resets the ups.conf file => I have to go in and edit it every time ... :(.

                        Thanks!

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

                          Not currently. I'll be working on a package rev next weekend.

                          1 Reply Last reply Reply Quote 0
                          • arrmoA Offline
                            arrmo
                            last edited by

                            Awesome - thanks so much! Just yell if I can do anything at all to help out!

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

                              If you want to help test the changes, PM me an email address and I will send you the files for testing.

                              Thanks,
                              Denny

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

                                FYI: https://forum.pfsense.org/index.php?topic=115349.msg742746#msg742746

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

                                  The nut package with dummy has been released.

                                  1 Reply Last reply Reply Quote 0
                                  • arrmoA Offline
                                    arrmo
                                    last edited by

                                    Thanks!!! Do you know what pfSense release this is bundled in?

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

                                      The current NUT package should be available for 2.3 and later. Let me know if you don't see it in your available packages.

                                      1 Reply Last reply Reply Quote 0
                                      • arrmoA Offline
                                        arrmo
                                        last edited by

                                        Ahh - gotcha … so not a pfSense update per se, rather just update the (nut) package - correct? And yes, I see 2.7.4_4 now ... is that the correct one?

                                        BTW, do I need to undo the patches I tested out, or will this overwrite them (blow them away)? That would be easiest of course ... ;-).

                                        Thanks again for all the help.

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

                                          The new release is version 2.7.4_5. It will overwrite the files I sent you.

                                          1 Reply Last reply Reply Quote 0
                                          • arrmoA Offline
                                            arrmo
                                            last edited by

                                            Perfect - thanks!

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