• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.0k 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.
  • A
    arrmo
    last edited by Jun 21, 2017, 9:57 PM

    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
    • D
      dennypage
      last edited by Jun 21, 2017, 10:20 PM

      @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
      • A
        arrmo
        last edited by Jun 21, 2017, 10:21 PM

        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
        • A
          arrmo
          last edited by Jun 29, 2017, 6:41 PM

          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
          • D
            dennypage
            last edited by Jun 29, 2017, 8:09 PM

            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
            • D
              dennypage
              last edited by Jun 29, 2017, 8:33 PM

              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
              • A
                arrmo
                last edited by Jun 29, 2017, 8:57 PM

                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
                • A
                  arrmo
                  last edited by Jul 15, 2017, 8:22 PM

                  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
                  • A
                    arrmo
                    last edited by Jul 27, 2017, 6:26 PM

                    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
                    • D
                      dennypage
                      last edited by Jul 28, 2017, 4:06 AM

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

                      1 Reply Last reply Reply Quote 0
                      • A
                        arrmo
                        last edited by Jul 30, 2017, 11:27 PM

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

                        1 Reply Last reply Reply Quote 0
                        • D
                          dennypage
                          last edited by Aug 8, 2017, 12:55 AM

                          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
                          • D
                            dennypage
                            last edited by Aug 24, 2017, 4:06 PM

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

                            1 Reply Last reply Reply Quote 0
                            • D
                              dennypage
                              last edited by Aug 24, 2017, 6:32 PM

                              The nut package with dummy has been released.

                              1 Reply Last reply Reply Quote 0
                              • A
                                arrmo
                                last edited by Aug 25, 2017, 1:15 AM

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

                                1 Reply Last reply Reply Quote 0
                                • D
                                  dennypage
                                  last edited by Aug 25, 2017, 1:44 AM

                                  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
                                  • A
                                    arrmo
                                    last edited by Aug 25, 2017, 1:47 AM

                                    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
                                    • D
                                      dennypage
                                      last edited by Aug 25, 2017, 2:42 AM

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

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        arrmo
                                        last edited by Aug 25, 2017, 11:46 AM

                                        Perfect - thanks!

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