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

    NUT package (2.8.0 and below)

    UPS Tools
    128
    1.2k
    4.0m
    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.
    • GertjanG
      Gertjan @A Former User
      last edited by

      @jwj said in NUT package:

      That left me to solve the problem of one Synology NAS

      Like :

      c2fac968-9f62-46a7-af4d-a606754cf57f-image.png

      To have the Syno NAS connect to the NUT on pfSEnse as a salve :
      Set the IP to the IP of pfSense in which the NUT package is running.
      Define on pfSense the IP it has to expose it's NUT interface on :

      24e74987-6e38-48fd-849e-ef818f505bc2-image.png

      and of course tell it what user / slave could 'login".
      This user and password are somewhat hard coded into the NUT core files of the Syno (if I recall that correctly).

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Gertjan
        last edited by

        @Gertjan Yes. Required to get things working with a Synology NAS. I had a quick look at the Marketing blurb concerning DSM 7 beta. Supposedly more control over UPS configuration. We'll see. All this hard coded stuff is a pain in the butt!

        Good post!

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by A Former User

          For completeness I'll put my complete config.

          The situation is: one Synology NAS (1618+) one QNAP NAS (TS-451) both as slaves. pfsense/NUT as the master. APC Smart-UPS C 1000 usb to pfsense host.

          In /usr/local/etc/nut

          ups.conf:

          [ups]
          driver=usbhid-ups
          port=auto
          ignorelb
          override.battery.charge.low = 30
          [qnapups]
          driver = dummy-ups
          port = ups@127.0.0.1
          desc = "dummy-ups in repeater mode"

          upsd.conf:

          LISTEN 127.0.0.1
          LISTEN ::1

          LISTEN 192.168.40.1

          (Maybe I should have the IPv6 address for the VLAN the NAS are in, not sure it matters and things work fine without it.)

          upsd.users:

          [admin]
          password=db8075bb45efab9ee80a
          actions=set
          instcmds=all
          [local-monitor]
          password=997fae5f5b0fc09becb3
          upsmon master

          [monuser]
          password = secret
          upsmon slave

          upsmon.conf

          MONITOR ups 1 local-monitor 997fae5f5b0fc09becb3 master
          SHUTDOWNCMD "/sbin/shutdown -p +0"
          POWERDOWNFLAG /etc/killpower

          upssched.conf:

          CMDSCRIPT /usr/local/bin/upssched-cmd
          (And a bunch of comments, Nothing to see here)

          For sure there are improvements that could be made, more control over the UPS shutdown and startup when going to a low battery condition and when power returns. I'd vey much like to hear from those that know more about this :)

          I do suggest getting used to looking at this from the real configuration files and not just staring at the GUI. Just saying...

          1 Reply Last reply Reply Quote 0
          • dennypageD
            dennypage @A Former User
            last edited by

            @jwj said in NUT package:

            As best I understand (please correct me if I'm wrong) the NUT package is all but unmaintained at this point. I wonder if the best way to get things working is to install the package, stay out of the GUI and configure things by hand in the various config files.

            I honestly don't understand how you would find your way to a active 700+ post support thread yet determine that the package was unmaintained...

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @dennypage
              last edited by A Former User

              @dennypage I see your last commit in github was in 2018. Other than that only three changes have been made, two of which are the copyright header and permissions on non-executable files.

              dennypageD 1 Reply Last reply Reply Quote 0
              • T
                Teken
                last edited by

                Hello,

                I would like to know how to add multiple APC SMX-700, 1000, 1500, 2200, 3000 UPS's to the dashboard. I am running pfSense 2.4.5, and NUT version release 2.7.4.7

                I don't see an obvious way to enter more than one UPS system to be monitored. Any guidance in doing so is greatly appreciated as I need to monitor more than twenty units.

                Thank You - All!

                dennypageD 4 occamsrazorO 3 Replies Last reply Reply Quote 0
                • 4
                  4o4rh @dennypage
                  last edited by

                  @dennypage said in NUT package:

                  @gwaitsi said in NUT package:

                  I have a dumb UPS connected to pfsense and need to shutdown pfsense based on a timer triggered by the master due to the non-shared UPS.
                  ...
                  i simply want to shutdown the slave 20min after power loss, but obviously cancel the timer if the power comes back.

                  A dumb UPS isn't something supported by the NUT pfSense package. In general dumb USPs are not a good idea because there is nothing that will trigger the restart of the system when power returns.

                  actually, that is not true. i have it working just fine now, once i got the bash script in shell format.

                  now i am working on getting wake on lan setup to enable waking up pfsense, if it shutdown and power was restored before the battery run out. if power is restored before shutdown, then of course there is no problem.

                  1 Reply Last reply Reply Quote 0
                  • dennypageD
                    dennypage @A Former User
                    last edited by

                    @jwj said in NUT package:

                    @dennypage I see your last commit in github was in 2018. Other than that only three changes have been made, two of which are the copyright header and permissions on non-executable files.

                    And?

                    If you are equating "supported" with "constant change" then you've come to the wrong place.

                    The last release of NUT was March 2016. The last release of dpinger was September 2017.

                    Sometimes, stuff just works.

                    😊

                    1 Reply Last reply Reply Quote 1
                    • dennypageD
                      dennypage @Teken
                      last edited by

                      @Teken said in NUT package:

                      I would like to know how to add multiple APC SMX-700, 1000, 1500, 2200, 3000 UPS's to the dashboard. I am running pfSense 2.4.5, and NUT version release 2.7.4.7
                      I don't see an obvious way to enter more than one UPS system to be monitored. Any guidance in doing so is greatly appreciated as I need to monitor more than twenty units.

                      There is no way to do this with the pfSense NUT package. The package monitors the single UPS that is powering the pfSense system. I believe the same is true of the apcupsd package.

                      If you want to monitor a whole UPS farm, you should be looking to an SNMP based solution using whatever network management system you are using. That's a bit simpler than trying to monitor a large number of NUT instances. However, if you don't have SNMP and have to use NUT talking to a whole bunch of hosts, you'll probably want to set up a dedicated monitoring system by hand and use that to feed the network monitor. If you don't have a network monitoring system, then you need one. librenms is a good place to start.

                      1 Reply Last reply Reply Quote 0
                      • 4
                        4o4rh @Teken
                        last edited by

                        @Teken did you look at my post above?

                        http://rogerprice.org/NUT/ConfigExamples.A5.pdf
                        i believe the scenario you require is covered in the examples.

                        I was also told the scenario i wanted is not supported....just needed to change from a bash based script to a shell based on and everything turned on.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          Teken @4o4rh
                          last edited by

                          @gwaitsi

                          Having quickly scanned this fantastic document on page 54. I do not see an obvious example of how to add say five UPS systems. If someone can give me a working example to test that would be greatly appreciated!

                          And just to be clear my expectations is to be able to add & see the additional four UPS units (status) in the dashboard.

                          If I can see four ill work my way up to the remaining sixteen. I can’t believe I’m the only person who has ever needed pfSense to monitor more and than one UPS?!? 🤔

                          Thank you to all who took the time to chime in! 👍

                          dennypageD 4 2 Replies Last reply Reply Quote 0
                          • dennypageD
                            dennypage @Teken
                            last edited by

                            @Teken said in NUT package:

                            Having quickly scanned this fantastic document on page 54. I do not see an obvious example of how to add say five UPS systems. If someone can give me a working example to test that would be greatly appreciated!
                            And just to be clear my expectations is to be able to add & see the additional four UPS units (status) in the dashboard.
                            If I can see four ill work my way up to the remaining sixteen. I can’t believe I’m the only person who has ever needed pfSense to monitor more and than one UPS?!?

                            I'm glad you like the thread... With specific regard to your question, please see my response to your same question above. You can not, and should not, do this with pfSense. pfSense is not a network monitoring solution.

                            You need a network monitoring solution for what you want to do. There are at least a dozen good ones to choose from. Many of which are free: Librenms, cacti, Zabbix, etc.

                            And yes, you are the only one who has ever asked. 🙂

                            1 Reply Last reply Reply Quote 0
                            • 4
                              4o4rh @Teken
                              last edited by

                              @Teken p54 UPS2 & UPS3 are connected to the same device and you can see their config details on p56. Isn't that the scenario you are trying to create?

                              1 Reply Last reply Reply Quote 0
                              • M
                                mcarson75
                                last edited by

                                I have been having an odd problem with NUT. I have a Cyperpower UPS connected via USB, and all was working well with it. For some reason, it suddenly stopped reporting status, and said "Waiting for daemon" or something like that.

                                I did some digging and it appeared that the driver was not loaded. I tried to load it manually with upsdrvctl start office but that said "Driver failed to start." I then loaded it with upsdrvdtl -u root start office and it loaded and now works. I have to do this every time I boot pfsense.

                                It did this with 2.4.5 and now with 2.5.0. Any ideas on what the issue might be?

                                S 1 Reply Last reply Reply Quote 1
                                • S
                                  Sir_SSV @mcarson75
                                  last edited by

                                  @mcarson75 said in NUT package:

                                  I have been having an odd problem with NUT. I have a Cyperpower UPS connected via USB, and all was working well with it. For some reason, it suddenly stopped reporting status, and said "Waiting for daemon" or something like that.

                                  I did some digging and it appeared that the driver was not loaded. I tried to load it manually with upsdrvctl start office but that said "Driver failed to start." I then loaded it with upsdrvdtl -u root start office and it loaded and now works. I have to do this every time I boot pfsense.

                                  It did this with 2.4.5 and now with 2.5.0. Any ideas on what the issue might be?

                                  What a coincidence. I haven’t upgraded to 2.5.0 (still on 2.4.5) and the other night I rebooted pfSense and the nut Daemon was reporting the same error.

                                  I thought it was because I haven’t upgraded to 2.5.0.

                                  For now I have stopped the nut service

                                  M kesawiK 2 Replies Last reply Reply Quote 0
                                  • M
                                    mcarson75 @Sir_SSV
                                    last edited by

                                    @sir_ssv It's interesting - just after I posted I decided to unplug my USB wireless keyboard/mouse adapter from pfsense and reboot. Surprisingly - NUT works as expected now. So if you have any other USB devices maybe try unplugging them?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      Sir_SSV @mcarson75
                                      last edited by

                                      @mcarson75 said in NUT package:

                                      @sir_ssv It's interesting - just after I posted I decided to unplug my USB wireless keyboard/mouse adapter from pfsense and reboot. Surprisingly - NUT works as expected now. So if you have any other USB devices maybe try unplugging them?

                                      I have a Eaton ups and it is connected via ethernet. I’m thinking the nut daemon was updated however because I’m holding out on upgrading to pfSense 2.5.0 it is causing some conflicts.

                                      Same thing happened just prior to me upgrading to 2.4.5

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        DurUser @Sir_SSV
                                        last edited by

                                        @sir_ssv
                                        I think you have to set the branch manually to 2.4.5.
                                        Mine was set to 2.5 automatically and then I experienced all kinds of weirds things.
                                        Once set back to 2.4.5 and forced package re-install everything was fine again.
                                        Not sure if it's related but....
                                        (https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html)

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

                                          @duruser said in NUT package:

                                          I think you have to set the branch manually to 2.4.5.
                                          Mine was set to 2.5 automatically and then I experienced all kinds of weirds things.
                                          Once set back to 2.4.5 and forced package re-install everything was fine again.

                                          Yea, definitely have to explicitly set the branch. I ran into that issue when I had to roll back to 2.4.5 to diagnose a IPsec issue. When the install started automatically installing packages, things started going wrong all over the place. I ended up having to force a reinstall of all packages in the system.

                                          I'm now back to running 24.02, but my main UPS is SNMP so I haven't tried a USB based UPS with the new version. Please let me know if you run into a problem with USB after upgrading.

                                          D GertjanG S 3 Replies Last reply Reply Quote 1
                                          • D
                                            DurUser @dennypage
                                            last edited by

                                            @dennypage Same here.
                                            It had switched the brach to 2.5 automatically and that caused issues. I didn't know it would do that.

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