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