• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • D
    dennypage @kevindd992002
    last edited by Oct 18, 2021, 4:17 PM

    @kevindd992002 said in NUT package:

    Also, I tried removing all the overrides + ignorelb and let the UPS use its default low battery threshold of 60%.

    60%? That doesn't make much sense to me. Default low battery is usually 5-15%.

    You probably should reach out to the UPS manufacturer to discuss their intended behavior.

    K 1 Reply Last reply Oct 18, 2021, 4:42 PM Reply Quote 0
    • H
      hda @kevindd992002
      last edited by hda Oct 18, 2021, 4:24 PM Oct 18, 2021, 4:23 PM

      @kevindd992002 said in NUT package:

      Thanks for that information!

      Why does the offdelay start at 23s?

      For the upsmon fsd simulation test, does the UPS automatically turn its outlets ON immediately after turning them off?

      Concluded later from my pfSense log:

      -:03:14 request FSD
      -:03:30 power-down by root
      -:03:37 syslogd exiting on signal 15

      total 23 s

      As you can read, 83 - 53 = 30 sec before UPS turns on again.

      It is important that "ONdelay" is longer than "OFFdelay".

      1 Reply Last reply Reply Quote 0
      • D
        dennypage @Gertjan
        last edited by Oct 18, 2021, 4:27 PM

        @gertjan said in NUT package:

        When I set "ups.shutdown.delay" to 25 (it was 20) the UPS (on pfSense) show the new value :

        But : did it get 'written' to the UPS ??
        Restaring NUT gve me the old '20'. back.
        Like NUT 'resets' the UPS to default values ?
        No a big issue, I guess it's possible to send values to the UPS on "NUT" start-up.

        If you are using usb (usbhid-ups), I believe the answer is yes, they are reset every time. See the Extra Arguments section in the NUT documentation.

        @kevindd992002 if you are using usb, you may want to consider using -1 for ondelay based on the feedback you get from your UPS vendor.

        1 Reply Last reply Reply Quote 0
        • K
          kevindd992002 @dennypage
          last edited by Oct 18, 2021, 4:42 PM

          @dennypage said in NUT package:

          @kevindd992002 said in NUT package:

          Also, I tried removing all the overrides + ignorelb and let the UPS use its default low battery threshold of 60%.

          60%? That doesn't make much sense to me. Default low battery is usually 5-15%.

          You probably should reach out to the UPS manufacturer to discuss their intended behavior.

          Yeah, I know 5-15% is the default value for my APC UPS. Not sure what's up with this Eaton. @hda can you confirm what is the default low battery threshold for your Eaton UPS?

          @hda said in NUT package:

          @kevindd992002 said in NUT package:

          Thanks for that information!

          Why does the offdelay start at 23s?

          For the upsmon fsd simulation test, does the UPS automatically turn its outlets ON immediately after turning them off?

          Concluded later from my pfSense log:

          -:03:14 request FSD
          -:03:30 power-down by root
          -:03:37 syslogd exiting on signal 15

          total 23 s

          As you can read, 83 - 53 = 30 sec before UPS turns on again.

          It is important that "ONdelay" is longer than "OFFdelay".

          The turn on sequence for this test only happens because of the fsd simulation, right? When a real blackout occurs, the UPS turns off itself (plus its outlets) and will only turn back on when the mains come back, correct?

          @dennypage said in NUT package:

          @gertjan said in NUT package:

          When I set "ups.shutdown.delay" to 25 (it was 20) the UPS (on pfSense) show the new value :

          But : did it get 'written' to the UPS ??
          Restaring NUT gve me the old '20'. back.
          Like NUT 'resets' the UPS to default values ?
          No a big issue, I guess it's possible to send values to the UPS on "NUT" start-up.

          If you are using usb (usbhid-ups), I believe the answer is yes, they are reset every time. See the Extra Arguments section in the NUT documentation.

          @kevindd992002 if you are using usb, you may want to consider using -1 for ondelay based on the feedback you get from your UPS vendor.

          Ahh, that's interesting. For all these parameters/variables, what does a -1 value mean? Disabled? And yes, I'm using usb and the usbhid-ups driver.

          H D 2 Replies Last reply Oct 18, 2021, 6:40 PM Reply Quote 0
          • H
            hda @kevindd992002
            last edited by hda Oct 18, 2021, 6:45 PM Oct 18, 2021, 6:40 PM

            @kevindd992002 said in NUT package:

            Not sure what's up with this Eaton. @hda can you confirm what is the default low battery threshold for your Eaton UPS?

            My EATON has battery low default 20%

            Can set it in ups.conf with "lowbatt = 20"

            K 1 Reply Last reply Oct 19, 2021, 10:40 AM Reply Quote 0
            • K
              kevindd992002 @hda
              last edited by Oct 19, 2021, 10:40 AM

              @hda said in NUT package:

              @kevindd992002 said in NUT package:

              Not sure what's up with this Eaton. @hda can you confirm what is the default low battery threshold for your Eaton UPS?

              My EATON has battery low default 20%

              Can set it in ups.conf with "lowbatt = 20"

              Ok. Then mine is definitely weird at 60%. Without any kind of manual settings modification, does your Eaton UPS work as it should with NUT? Just wondering.

              G H 2 Replies Last reply Oct 19, 2021, 10:58 AM Reply Quote 0
              • G
                Gertjan @kevindd992002
                last edited by Oct 19, 2021, 10:58 AM

                @kevindd992002 said in NUT package:

                Then mine is definitely weird at 60%

                How old is the battery ?
                It can understand that an older battery hasn't the same discharge time. Ones the battey mode is activated, it will drain much faster. To compensate, this percentage would need to be higher.
                Totally depleting a battery is a big no-no.

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

                K 1 Reply Last reply Oct 19, 2021, 12:19 PM Reply Quote 0
                • K
                  kevindd992002 @Gertjan
                  last edited by Oct 19, 2021, 12:19 PM

                  @gertjan said in NUT package:

                  @kevindd992002 said in NUT package:

                  Then mine is definitely weird at 60%

                  How old is the battery ?
                  It can understand that an older battery hasn't the same discharge time. Ones the battey mode is activated, it will drain much faster. To compensate, this percentage would need to be higher.
                  Totally depleting a battery is a big no-no.

                  2 years or so. I see. Is this generally true for all brands? How can I test for sure?

                  1 Reply Last reply Reply Quote 0
                  • H
                    hda @kevindd992002
                    last edited by hda Oct 19, 2021, 1:51 PM Oct 19, 2021, 1:13 PM

                    @kevindd992002 said in NUT package:

                    Without any kind of manual settings modification, does your Eaton UPS work as it should with NUT?

                    UPS out-of-the-box & NUT is probably not suitable for anyone.
                    My EATON is doing fine as I want & tell it with NUT conf-files.
                    The simulation with FSD is comparable with realtime BATTERY-LOW behaviour.
                    Read my previous post about my setup and experience.

                    Again with offdelay(), NUT can claim/secure UPS battery-running-time
                    even when all boxes are already killed.

                    The offdelay countdown starts when NUT master (pfSense) finalises its shutdown (halting).
                    I think max. HOSTSYNC-time cannot override offdelay-time.

                    So you have to tune, match (offdelay_seconds) with (=)
                    (slowest_slave_shutdown_seconds - master(pfSense)_shutdown_seconds + your_safety_margin_seconds).
                    This time reservation must fit in the remaining time for lowbatt %.

                    N.B. if slave boxes cannot finalise with the standard/default offdelay-time (=15 ? =20 ?),
                    then your UPS will cut-out too early (or it already ran out of "juice" earlier).

                    1 Reply Last reply Reply Quote 0
                    • D
                      dennypage @kevindd992002
                      last edited by Oct 19, 2021, 2:21 PM

                      @kevindd992002 said in NUT package:

                      For all these parameters/variables, what does a -1 value mean? Disabled?

                      It's specifically for that variable. The value is actually sent to the UPS. Have to go look at the USB HID spec to understand the intent.

                      1 Reply Last reply Reply Quote 0
                      • D
                        dennypage
                        last edited by Oct 19, 2021, 3:39 PM

                        @dennypage said in NUT package:

                        If you are using usb (usbhid-ups), I believe the answer is yes, they are reset every time. See the Extra Arguments section in the NUT documentation.

                        For entertainment value, I took a quick look... with usbhid it's not that the value is reset each time, it's that the value must be sent to the UPS to perform the shutdown.

                        Here's some relevant info from the spec:

                        DelayBeforeReboot
                        Writing this value immediately shuts down (i.e., turns off) the output for a period equal to the indicated number of seconds in DelayBeforeReboot, after which time the output is started. If the number of seconds required to perform the request is greater than the requested duration, then the requested shutdown and startup cycle shall be performed in the minimum time possible, but in no case shall this require more than the requested duration plus 60 seconds. If the startup should occur during a utility failure, the startup shall not occur until the utility power is restored.

                        When read, DelayBeforeReboot returns the number of seconds remaining in the countdown, or –1 if no countdown is in progress.

                        DelayBeforeStartup
                        Writing this value starts the output after the indicated number of seconds in DelayBeforeStartup. Sending this command with 0 causes the startup to occur immediately. Sending this command with –1 aborts the countdown. If the output is already on at the time the countdown reaches 0, nothing happens. On some systems, if the USB driver on the device side is restarted while a startup countdown is in effect, the countdown is aborted. If the countdown expires during a utility failure, the startup shall not occur until the utility power is restored. Writing this value overrides the effect of any DelayBeforeStartup countdown or DelayBeforeReboot countdown in progress.

                        When read, DelayBeforeStartup returns the number of seconds remaining in the countdown, or –1 if no countdown is in progress.

                        DelayBeforeShutdown
                        Writing this value shuts down (i.e., turns off) either the output after the indicated number of seconds, or sooner if the batteries become depleted. Sending this command with 0 causes the shutdown to occur immediately. Sending this command with –1 aborts the countdown. If the system is already in the desired state at the time the countdown reaches 0, there is no additional action (i.e. there is no additional action if the output is already off). On some systems, if the USB driver on the device side is restarted while a shutdown countdown is in effect, the countdown may be aborted. Writing this value overrides any DelayBeforeShutdown countdown already in effect.

                        When read, DelayBeforeShutdown will return the number of seconds remaining until shutdown, or –1 if no shutdown countdown is in effect.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mike123
                          last edited by mike123 Nov 29, 2021, 2:15 PM Nov 29, 2021, 2:14 PM

                          Recently I started getting several emails a minute "UPS myups battery is low". The UPS is a few years old so I replaced the battery and restarted the service.

                          I am still getting the error messages even though it shows 100% battery. I'm at a loss to debug this further, I've tried adding

                          battery.charge.low: 10
                          

                          to the ups.conf and restarting but it seems to be getting ignored.

                          Here's the output from
                          upsc "myups"

                          battery.charge: 100.0
                          battery.charge.low: 15
                          battery.date: 2008-06-25
                          battery.runtime: 120.0
                          battery.runtime.low: 300
                          battery.voltage: 12.7
                          battery.voltage.nominal: 12.0
                          device.mfr: APC
                          device.model: Back-UPS ES 750 
                          device.serial: 123456  
                          device.type: ups
                          driver.name: apcupsd-ups
                          driver.parameter.pollinterval: 60
                          driver.parameter.port: 10.10.1.1
                          driver.parameter.synchronous: no
                          driver.version: 2.7.4
                          driver.version.internal: 0.04
                          input.sensitivity: M
                          input.transfer.high: 139.0
                          input.transfer.low: 92.0
                          input.transfer.reason: No transfers since turnon
                          input.voltage: 120.0
                          input.voltage.nominal: 120
                          ups.date: 2021-11-29
                          ups.firmware: 841.I2 .D USB FW:I2
                          ups.id: UPS
                          ups.load: 14.0
                          ups.mfr: APC
                          ups.model: Back-UPS ES 750 
                          ups.realpower.nominal: 450.0
                          ups.serial: 123456  
                          ups.status: OL LB
                          ups.test.result: NO
                          ups.time: 09:07:42
                          
                          

                          Can anyone provide any suggestions as to stopping the multiple email error messages?

                          G 1 Reply Last reply Nov 29, 2021, 2:18 PM Reply Quote 0
                          • G
                            Gertjan @mike123
                            last edited by Gertjan Nov 29, 2021, 2:19 PM Nov 29, 2021, 2:18 PM

                            @mike123 said in NUT package:

                            .... to stopping the multiple email error messages?

                            By telling your UPS that the battery has changed.
                            Dono how you can do this with NUT, but you could download the APC's MAC or,Windows client app, and use that to 'inform' the UPS that a battery change has occurred.

                            Btw : this isn't probably the optimal solution, but this what I have done in the past.

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

                            M 1 Reply Last reply Nov 29, 2021, 3:07 PM Reply Quote 1
                            • M
                              mike123 @Gertjan
                              last edited by mike123 Nov 29, 2021, 3:11 PM Nov 29, 2021, 3:07 PM

                              @gertjan

                              Thanks, problem solved!

                              It never occurred to me that the UPS firmware had a battery "best before" date. The APC Powerchute software let me reset the battery date and my battery runtime magically went up from 120 to 1500. I guess it didn't want me to rely on what it thought was a 13 year old battery.

                              1 Reply Last reply Reply Quote 0
                              • U
                                UmbraAtrox
                                last edited by UmbraAtrox Dec 3, 2021, 4:29 PM Dec 3, 2021, 4:00 PM

                                I bought a PowerWalker VFI 1000T it uses the Winpower client on Windows which works fine, but on pfsense it doesn't really.

                                login-to-view

                                I don't know if the upsname is important, but its named PW1000 in Winpower so i used that.

                                login-to-view

                                login-to-view

                                login-to-view

                                i have tried multiple combinations of restarting, uninstalling and reinstalling the package, different usb Ports which have been suggested for other similar problems. Extra arguments norating, novendor, pollinterval=10. But none of this helped or even changed behaviour.

                                Can you help me with this?

                                D G 2 Replies Last reply Dec 3, 2021, 4:44 PM Reply Quote 0
                                • D
                                  dennypage @UmbraAtrox
                                  last edited by Dec 3, 2021, 4:44 PM

                                  @umbraatrox said in NUT package:

                                  PowerWalker VFI 1000T it uses the Winpower client on Windows which works fine, but on pfsense it doesn't really.

                                  Here is my list of suggestions...

                                  • Have you rebooted since first plugging the usb connection in? Some of the USB kernel drivers require that. Do this first.
                                  • Try the usbhid driver and confirm that it does not work before trying any other driver.
                                  • Try the nutdrv_qx driver.
                                  • Try the blazer driver (the one that you have already tried).
                                  • Some devices create special device names in FreeBSD because they are actually serial emulators. You can generally discover the port by looking through the system log (dmesg).
                                  • Some of the more boutique drivers may require you to explicitly specify several "optional" parameters, like port, vendor it, product id, sub driver, etc. You have to figure this out by out by trial and error or contacting the vendor.
                                  • Ask for help on the NUT mailing list.
                                  1 Reply Last reply Reply Quote 1
                                  • G
                                    Gertjan @UmbraAtrox
                                    last edited by Dec 6, 2021, 7:31 AM

                                    Also cross check the UPS model with this list : https://networkupstools.org/stable-hcl.html and tips / trucks you can find at the NUT support pages.

                                    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
                                    • G
                                      Gooberpatrol66
                                      last edited by Dec 12, 2021, 10:59 PM

                                      I tried to enable SSL, and I got this:
                                      Dec 12 16:45:58 pfsense upsd[12551]: upsd.conf: invalid directive CERTFILE /etc/ssl/nut_cert/upsd.pem
                                      Dec 12 16:45:58 pfsense upsd[12551]: upsd.conf: invalid directive CERTREQUEST REQUIRE
                                      Dec 12 16:45:58 pfsense upsd[12551]: upsd.conf: invalid directive DISABLE_WEAK_SSL true
                                      I think this means SSL support was not compiled into the package.

                                      D 1 Reply Last reply Dec 13, 2021, 1:08 AM Reply Quote 1
                                      • D
                                        dennypage @Gooberpatrol66
                                        last edited by Dec 13, 2021, 1:08 AM

                                        @gooberpatrol66 said in NUT package:

                                        I think this means SSL support was not compiled into the package.

                                        I believe you are correct, there is no certificate support.

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          WhiteTiger-IT
                                          last edited by Jan 19, 2022, 7:03 PM

                                          I installed the package, connected the USB socket to an APC Back-UPS BX2200MI, in the console I see that it recognizes it, but then in Services/UPS/Status I see:
                                          "Failed to retrieve status"

                                          D 1 Reply Last reply Jan 19, 2022, 8:29 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.