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

    NUT package (2.8.0 and below)

    Scheduled Pinned Locked Moved UPS Tools
    1.2k Posts 128 Posters 4.3m 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.
    • B
      bulldog5
      last edited by

      I plugged the UPS into a 2K12 server and installed CPs PowerPanel software, let it run for few days and didn't get any LOWBATT messages, then plugged it into my FreeNAS server which is using driver 2.7.3, internal driver .39. and no LOWBATT messages.  Here is the output running on the FreeNAS box.  So, something is not the same after the upgrade on pfsense because i dont see the LOWBATT message on 2 other boxes.  Going to try mirroring the freenas NUT configs, (being doubtful that will matter) then going to have to find some time to reinstall pfsense to 2.3.2 and go from there).

      battery.charge: 100
      battery.charge.low: 10
      battery.charge.warning: 20
      battery.mfr.date: CPS
      battery.runtime: 960
      battery.runtime.low: 300
      battery.type: PbAcid
      battery.voltage: 24.0
      battery.voltage.nominal: 24
      device.mfr: CPS
      device.model: OR1500PFCRT2U
      device.type: ups
      driver.name: usbhid-ups
      driver.parameter.pollfreq: 30
      driver.parameter.pollinterval: 2
      driver.parameter.port: /dev/ugen0.6
      driver.parameter.synchronous: no
      driver.version: 2.7.3
      driver.version.data: CyberPower HID 0.4
      driver.version.internal: 0.39
      input.transfer.high: 139
      input.transfer.low: 88
      input.voltage: 120.0
      input.voltage.nominal: 120
      output.voltage: 120.0
      ups.beeper.status: enabled
      ups.delay.shutdown: 20
      ups.delay.start: 30
      ups.load: 57
      ups.mfr: CPS
      ups.model: OR1500PFCRT2U
      ups.productid: 0601
      ups.realpower.nominal: 900
      ups.status: OL
      ups.test.result: Done and passed
      ups.timer.shutdown: -60
      ups.timer.start: -60
      ups.vendorid: 0764

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

        @bulldog5:

        I plugged the UPS into a 2K12 server and installed CPs PowerPanel software, let it run for few days and didn't get any LOWBATT messages, then plugged it into my FreeNAS server which is using driver 2.7.3, internal driver .39. and no LOWBATT messages.

        So, something is not the same after the upgrade on pfsense because i dont see the LOWBATT message on 2 other boxes.  Going to try mirroring the freenas NUT configs, (being doubtful that will matter) then going to have to find some time to reinstall pfsense to 2.3.2 and go from there).

        When you put it back on the pfSense box did the LOWBATT messages immediately return?

        1 Reply Last reply Reply Quote 0
        • B
          bulldog5
          last edited by

          @dennypage:

          @bulldog5:

          I plugged the UPS into a 2K12 server and installed CPs PowerPanel software, let it run for few days and didn't get any LOWBATT messages, then plugged it into my FreeNAS server which is using driver 2.7.3, internal driver .39. and no LOWBATT messages.

          So, something is not the same after the upgrade on pfsense because i dont see the LOWBATT message on 2 other boxes.  Going to try mirroring the freenas NUT configs, (being doubtful that will matter) then going to have to find some time to reinstall pfsense to 2.3.2 and go from there).

          When you put it back on the pfSense box did the LOWBATT messages immediately return?

          No

          1 Reply Last reply Reply Quote 0
          • C
            cuco
            last edited by

            Hi

            I tried to "add" my UPS to my pfSense installation with the nut-package as well. Configured it with "Remote NUT server" and it shows me the load, the remaining runtime, sends me emails and so on. But it doesn't shutdown pfsense.

            upsc on the remote nut server gives me:

            battery.charge: 100.0
            battery.charge.low: 20
            battery.date: 2011-05-06
            battery.runtime: 540.0
            battery.runtime.low: 240
            battery.voltage: 13.7
            battery.voltage.nominal: 12.0
            device.mfr: APC
            device.model: Back-UPS RS 550GI
            device.serial: 3B1119X20852
            device.type: ups
            driver.name: apcupsd-ups
            driver.parameter.pollinterval: 2
            driver.parameter.port: localhost
            driver.parameter.synchronous: no
            driver.version: 2.7.4
            driver.version.internal: 0.04
            input.sensitivity: H
            input.transfer.high: 276.0
            input.transfer.low: 176.0
            input.transfer.reason: Low line voltage
            input.voltage: 223.0
            input.voltage.nominal: 230
            ups.date: 2017-08-05
            ups.firmware: 857.L3 .I USB FW:L3
            ups.id: t-usv
            ups.load: 27.0
            ups.mfr: APC
            ups.model: Back-UPS RS 550GI
            ups.realpower.nominal: 330.0
            ups.serial: 3B1119X20852
            ups.status: OL
            ups.test.result: NO
            ups.time: 22:12:53
            
            

            pfSense shows the same.

            When the power fails (I plugged out the mains) I get this E-Mail:

            Sat, 05 Aug 2017 03:05:33 +0200

            UPS br550gi@t-usv.lan.xxxx.eu on battery

            When the battery runtime goes below 4 mins (240 secs) like configured in the UPS I get this:

            Sat, 05 Aug 2017 03:10:21 +0200

            UPS br550gi@t-usv.lan.xxxx.eu battery is low

            But nothing more happened. I waited about 2 more minutes, but pfSense didn't shut down and then I reconnected the mains.

            What may I have done wrong?

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

              I don't think you are doing anything wrong per se. By default, the nut slave (pfSense) isn't going to initiate a shutdown until the master server declares a low battery condition. This is different than a low battery warning.

              When the master declares a low battery condition, it will send a notification to all the slaves indicating that there is a pending loss of power. The slaves will each disconnect from the master and then initiate their own shutdown. Once all the slaves have disconnected, the master will initiate its own shutdown.

              If you want to override how the master determines when to declare a low battery condition, see the section on "ignorelb" in the ups.conf man page.

              1 Reply Last reply Reply Quote 0
              • B
                bdf0506
                last edited by

                @bdf0506:

                @dennypage:

                I have. The power kill logic is gone from the base os level. Still searching to find out when and why.

                Ah, interesting. Sounds like it isn't an issue with my specific setup and it is a bug affecting anyone trying to use that functionality in the NUT package. Looking forward to seeing a fix for this whenever one can be found.

                Hi, I wanted to see if there has been any progress on fixing this issue? Thanks.

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

                  @bdf0506:

                  Hi, I wanted to see if there has been any progress on fixing this issue? Thanks.

                  Still working on it. Progress, but not ready for release yet. Should be this month.

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

                    @bulldog5:

                    @dennypage:

                    @bulldog5:

                    I plugged the UPS into a 2K12 server and installed CPs PowerPanel software, let it run for few days and didn't get any LOWBATT messages, then plugged it into my FreeNAS server which is using driver 2.7.3, internal driver .39. and no LOWBATT messages.

                    So, something is not the same after the upgrade on pfsense because i dont see the LOWBATT message on 2 other boxes.  Going to try mirroring the freenas NUT configs, (being doubtful that will matter) then going to have to find some time to reinstall pfsense to 2.3.2 and go from there).

                    When you put it back on the pfSense box did the LOWBATT messages immediately return?

                    No

                    Bulldog, did your issue get resolved?

                    1 Reply Last reply Reply Quote 0
                    • C
                      cuco
                      last edited by

                      @dennypage:

                      I don't think you are doing anything wrong per se. By default, the nut slave (pfSense) isn't going to initiate a shutdown until the master server declares a low battery condition. This is different than a low battery warning.

                      When the master declares a low battery condition, it will send a notification to all the slaves indicating that there is a pending loss of power. The slaves will each disconnect from the master and then initiate their own shutdown. Once all the slaves have disconnected, the master will initiate its own shutdown.

                      If you want to override how the master determines when to declare a low battery condition, see the section on "ignorelb" in the ups.conf man page.

                      After doing more research I found out, that not only my pfSense-Box wasn't shutting down. It was just the first one I tried. So there seemed to be a problem inside of nut, not inside of your plugin.

                      So I did more research, did deeper looks into the code and found a bug in the nut-driver. Posted the issue on GitHub: https://github.com/networkupstools/nut/issues/460 then I fixed it: https://github.com/networkupstools/nut/pull/461/commits/b82b9cf3b4695f3171b6250af431a6a3f7fc81c4 and did a pull request: https://github.com/networkupstools/nut/pull/461
                      It then has been reviewed and merged into nut https://github.com/networkupstools/nut/commit/bc6ca11be42281e6d7f36dc6cf2860c2fe950f66

                      And now my problem is gone :) So: You were right, I wasn't doing anything wrong per se.

                      But thank you for your hint with "ignorelb" as this will help me with another problem when using apcupsd and nut at the same time :)

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

                        @cuco:

                        So I did more research, did deeper looks into the code and found a bug in the nut-driver. Posted the issue on GitHub: https://github.com/networkupstools/nut/issues/460 then I fixed it: https://github.com/networkupstools/nut/pull/461/commits/b82b9cf3b4695f3171b6250af431a6a3f7fc81c4 and did a pull request: https://github.com/networkupstools/nut/pull/461
                        It then has been reviewed and merged into nut https://github.com/networkupstools/nut/commit/bc6ca11be42281e6d7f36dc6cf2860c2fe950f66

                        Awesome!

                        1 Reply Last reply Reply Quote 0
                        • B
                          bulldog5
                          last edited by

                          @dennypage:

                          @bulldog5:

                          @dennypage:

                          @bulldog5:

                          I plugged the UPS into a 2K12 server and installed CPs PowerPanel software, let it run for few days and didn't get any LOWBATT messages, then plugged it into my FreeNAS server which is using driver 2.7.3, internal driver .39. and no LOWBATT messages.

                          So, something is not the same after the upgrade on pfsense because i dont see the LOWBATT message on 2 other boxes.  Going to try mirroring the freenas NUT configs, (being doubtful that will matter) then going to have to find some time to reinstall pfsense to 2.3.2 and go from there).

                          When you put it back on the pfSense box did the LOWBATT messages immediately return?

                          No

                          Bulldog, did your issue get resolved?

                          Hi, it seems that adjusting the following has kept it quiet. Thanks again.
                          battery.charge.low: 20
                          battery.charge.warning: 25

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

                            @bulldog5:

                            Hi, it seems that adjusting the following has kept it quiet. Thanks again.
                            battery.charge.low: 20
                            battery.charge.warning: 25

                            Cool. You are quite welcome. Thanks for letting me know.

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

                              Just FYI, the PR for the dummy driver has gone in. The shutdown issue will have to be addressed in a follow-on release. This issue will need an enhancement in the core so it may have to wait until 2.4 is release.

                              1 Reply Last reply Reply Quote 0
                              • W
                                wishyou
                                last edited by

                                @dennypage:

                                I have. The power kill logic is gone from the base os level. Still searching to find out when and why.

                                Being a long time NUT user with pfSense this made me curious. Is this a new problem recently?
                                I've been adding stuff to rc.shutdown for "ages" to get proper shutdown-killpower-restart loops with a couple of APC serial ups-es:

                                
                                #Final shutdown stuff, UPS
                                if /usr/local/sbin/upsmon -K; then
                                
                                    # Warning message
                                	echo "POWERDOWNFLAG detected - Power cycling the UPS loads..."
                                
                                    # Do shutdown
                                    /usr/local/sbin/upsdrvctl shutdown
                                
                                    #Might be needed for power races
                                    # /bin/sleep 180
                                    # /sbin/reboot
                                fi
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • dennypageD
                                  dennypage
                                  last edited by

                                  The problem pre dates the current generation of the NUT package, but I'm not sure how far back it goes.

                                  What needs to be done is pretty much the same thing you are doing with your patch to rc.shutdown, except that I need to genericize it so that it can be used with other packages such as apcupsd.

                                  1 Reply Last reply Reply Quote 0
                                  • W
                                    wishyou
                                    last edited by

                                    OK, thanks for the update
                                    And nice to know that I didn't misunderstand anything with my fix, although it would be nice not having to remember the manual rc.shutdown patch every time pfSense is updated.

                                    Thanks, keep up the good work!

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bdf0506
                                      last edited by

                                      I upgraded NUT on pfSense to latest 2.7.4_5, and ever since I did that, it seems there is a high uptick in UPS communication errors. It's possible that it's another environmental condition that is going on here, but wanted to see if anyone else has had issues. PfSense is running on a small physical box, and it is directly connected via USB to a CyberPower EC650.

                                      I've been getting flooded with emails as a result of this (yes, I know that I can turn them off). But it points to something else that is going on. Here is a dump of the ups related events for a small window on 9/4. In the last 24 hours, I have 232 events that are the Permission denied error.

                                      One thing I did notice, if you look in /usr/local/etc/nut, all the *.conf files have perms of 640, but all the *.conf.sample files have perms of 644. Not sure if that matters or not, and also not sure if that's "new" or not.

                                      Sep  4 19:36:09 upsmon[32699]: Communications with UPS ups established
                                      Sep  4 19:36:09 upsmon[32699]: Communications with UPS ups established
                                      Sep  4 19:36:09 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                      Sep  4 19:36:09 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                      Sep  4 19:36:04 upsmon[32699]: Communications with UPS ups lost
                                      Sep  4 19:36:04 upsmon[32699]: Communications with UPS ups lost
                                      Sep  4 19:36:04 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                      Sep  4 19:36:04 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                      Sep  4 19:32:48 upsmon[32699]: Communications with UPS ups established
                                      Sep  4 19:32:48 upsmon[32699]: Communications with UPS ups established
                                      Sep  4 19:32:48 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                      Sep  4 19:32:48 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                      Sep  4 19:32:43 upsmon[32699]: Communications with UPS ups lost
                                      Sep  4 19:32:43 upsmon[32699]: Communications with UPS ups lost
                                      Sep  4 19:32:43 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                      Sep  4 19:32:43 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                      Sep  4 19:30:12 upsmon[32699]: Communications with UPS ups established
                                      Sep  4 19:30:12 upsmon[32699]: Communications with UPS ups established
                                      Sep  4 19:30:12 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                      Sep  4 19:30:12 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                      Sep  4 19:30:07 upsmon[32699]: Communications with UPS ups lost
                                      Sep  4 19:30:07 upsmon[32699]: Communications with UPS ups lost
                                      Sep  4 19:30:07 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                      Sep  4 19:30:07 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                      
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        bdf0506
                                        last edited by

                                        @bdf0506:

                                        I upgraded NUT on pfSense to latest 2.7.4_5, and ever since I did that, it seems there is a high uptick in UPS communication errors. It's possible that it's another environmental condition that is going on here, but wanted to see if anyone else has had issues. PfSense is running on a small physical box, and it is directly connected via USB to a CyberPower EC650.

                                        I've been getting flooded with emails as a result of this (yes, I know that I can turn them off). But it points to something else that is going on. Here is a dump of the ups related events for a small window on 9/4. In the last 24 hours, I have 232 events that are the Permission denied error.

                                        One thing I did notice, if you look in /usr/local/etc/nut, all the *.conf files have perms of 640, but all the *.conf.sample files have perms of 644. Not sure if that matters or not, and also not sure if that's "new" or not.

                                        Sep  4 19:36:09 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:36:09 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:36:09 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:36:09 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:36:04 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:36:04 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:36:04 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        Sep  4 19:36:04 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        Sep  4 19:32:48 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:32:48 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:32:48 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:32:48 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:32:43 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:32:43 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:32:43 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        Sep  4 19:32:43 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        Sep  4 19:30:12 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:30:12 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:30:12 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:30:12 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:30:07 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:30:07 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:30:07 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        Sep  4 19:30:07 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        
                                        

                                        Okay, this isn't a NUT issue.

                                        I dove deeper into the logging before these errors hit, and I see each time a log line like this:

                                        Sep  4 19:32:37 dpinger: Mobility_Server 192.168.35.21: Alarm latency 266us stddev 32us loss 21%
                                        

                                        After that line, bad things were happening. I'm surprised I wasn't having other network issues - I probably was, just unknown to me.

                                        Sep  4 19:32:48 php-cgi: nut_email.php: Message sent to <redacted>@gmail.com OK
                                        Sep  4 19:32:48 php-cgi: nut_email.php: Message sent to <redacted>@gmail.com OK
                                        Sep  4 19:32:48 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:32:48 upsmon[32699]: Communications with UPS ups established
                                        Sep  4 19:32:48 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:32:48 upsd[73255]: User monuser@::1 logged into UPS [ups]
                                        Sep  4 19:32:43 php-cgi: nut_email.php: Message sent to <redacted>@gmail.com OK
                                        Sep  4 19:32:43 php-cgi: nut_email.php: Message sent to <redacted>@gmail.com OK
                                        Sep  4 19:32:43 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:32:43 upsmon[32699]: Communications with UPS ups lost
                                        Sep  4 19:32:43 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        Sep  4 19:32:43 upsmon[32699]: Poll UPS [ups] failed - Write error: Permission denied
                                        Sep  4 19:32:38 php-fpm[30305]: /rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed its IP. Reloading endpoints that may use Mobility_Server.
                                        Sep  4 19:32:38 php-fpm[30305]: /rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed its IP. Reloading endpoints that may use Mobility_Server.
                                        Sep  4 19:32:37 check_reload_status: Reloading filter
                                        Sep  4 19:32:37 check_reload_status: Reloading filter
                                        Sep  4 19:32:37 check_reload_status: Restarting OpenVPN tunnels/interfaces
                                        Sep  4 19:32:37 check_reload_status: Restarting OpenVPN tunnels/interfaces
                                        Sep  4 19:32:37 check_reload_status: Restarting ipsec tunnels
                                        Sep  4 19:32:37 check_reload_status: Restarting ipsec tunnels
                                        Sep  4 19:32:37 check_reload_status: updating dyndns Mobility_Server
                                        Sep  4 19:32:37 check_reload_status: updating dyndns Mobility_Server
                                        Sep  4 19:32:37 dpinger: Mobility_Server 192.168.35.21: Alarm latency 266us stddev 32us loss 21%</redacted></redacted></redacted></redacted>
                                        

                                        The fix was to go into the gateways, and disable the gateway checking on 192.168.35.21. I still don't know what was causing that in the first place, but that's not something that needs to be addressed in the NUT forum.

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          pigbrother
                                          last edited by

                                          dennypage, thanks for your great job!

                                          My old Back-UPS RS 1000 connected to pfsense working great, but once or few times a day shows the following in the log\email:
                                          Sep 6 10:47:16 upsmon 42126 UPS Back-UPS_RS_1000 on battery
                                          Sep 6 10:47:21 upsmon 42126 UPS Back-UPS_RS_1000 on line power.

                                          Time is always random, but event duration is always 5 seconds exactly.

                                          My settings:
                                          ups.conf

                                          [Back-UPS_RS_1000]
                                          driver=usbhid-ups
                                          port=auto
                                          ignorelb
                                          override.battery.charge.low = 30
                                          override.battery.runtime.low = 300
                                          

                                          upsmon.conf

                                          MONITOR Back-UPS_RS_1000 1 monuser 7504xxxxxxxxxxxx master
                                          SHUTDOWNCMD "/sbin/shutdown -p +0"
                                          POWERDOWNFLAG /etc/killpower
                                          NOTIFYCMD /usr/local/pkg/nut/nut_email.php
                                          NOTIFYFLAG ONLINE   SYSLOG+WALL+EXEC
                                          NOTIFYFLAG ONBATT   SYSLOG+WALL+EXEC
                                          NOTIFYFLAG LOWBATT  SYSLOG+WALL+EXEC
                                          NOTIFYFLAG FSD	  SYSLOG+WALL+EXEC
                                          NOTIFYFLAG COMMOK   SYSLOG+WALL+EXEC
                                          NOTIFYFLAG COMMBAD  SYSLOG+WALL+EXEC
                                          NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC
                                          NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC
                                          NOTIFYFLAG NOCOMM   SYSLOG+WALL+EXEC
                                          NOTIFYFLAG NOPARENT SYSLOG+WALL+EXEC
                                          RUN_AS_USER root
                                          
                                          

                                          I realize that is UPS problem but apart from that it works fine.
                                          Are there any NUT tweaks to avoid such behavior?

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

                                            @pigbrother:

                                            dennypage, thanks for your great job!

                                            My old Back-UPS RS 1000 connected to pfsense working great, but once or few times a day shows the following in the log\email:
                                            Sep 6 10:47:16 upsmon 42126 UPS Back-UPS_RS_1000 on battery
                                            Sep 6 10:47:21 upsmon 42126 UPS Back-UPS_RS_1000 on line power.

                                            Time is always random, but event duration is always 5 seconds exactly.

                                            …

                                            I realize that is UPS problem but apart from that it works fine.
                                            Are there any NUT tweaks to avoid such behavior?

                                            You're welcome!

                                            The event itself may be very brief in duration, but is logged as 5 seconds due to the polling interval. There are several reasons that a momentary transfer to battery can happen depending upon the UPS.

                                            Some UPSs allow the variables which control transfer to be changed. The complete list of variables supported by NUT can be found here. To see what your UPS actually supports, use the upsc command. For transfer items, look for variables "input sensitivity" or "input.transfer…"

                                            Be careful with these. :)

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