• 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
    last edited by dennypage Jul 30, 2022, 10:01 PM Jul 30, 2022, 10:01 PM

    @dannyboy2k said in NUT package:

    The way the NUT documentation describes is, the UPS driver shouldn't tell UPS to power off the load until after all the processes have shutdown and disks have been unmounted or remounted read-only.

    The pfSense specific shutdown scripts are called early in the shutdown process. It's a two edged sword... on one hand you want things like rrd backup to happen early, on the other you want things like nut to happen late. Right now there is only one option, and it's early.

    1 Reply Last reply Reply Quote 0
    • D dennypage referenced this topic on Aug 6, 2022, 5:13 AM
    • R
      racecarr
      last edited by Sep 24, 2022, 6:53 PM

      @whoami-tm said in NUT package:

      vendorid=09ae
      productid=2012
      offdelay=60

      how on earth did you get your SMART1500LCD to even show up and stay connected. Mine just disconnects (and immediately reconnects) every 10 seconds (approx.).
      I'm using an old NetGate SG-4860:
      Plug-in USB

      ugen0.4: <Tripp Lite Tripp Lite UPS> at usbus0
      uhid0 on uhub1
      uhid0: <Tripp Lite Tripp Lite UPS, class 0/0, rev 1.10/0.09, addr 4> on usbus0
      

      Every 10 seconds (or so) it disconnects

      ugen0.4: <Tripp Lite Tripp Lite UPS> at usbus0 (disconnected)
      uhid0: at uhub1, port 2, addr 4 (disconnected)
      uhid0: detached
      
      usbconfig
      ugen0.1: <Intel EHCI root HUB> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
      ugen0.2: <vendor 0x8087 product 0x07db> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
      ugen0.3: <Generic Ultra Fast Media> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (96mA)
      ugen0.4: <Tripp Lite Tripp Lite UPS> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (0mA)
      

      I even tried using the same extra arguments to usbhid driver that you showed in your settings but I don't think it matters since the USB device keeps disconnecting.
      Perhaps I'm just unlucky

      Broadcast Message from root@pfSense.localdomain (no tty) at 14:31 EDT ...
      
      Communications with UPS tripplite lost
      
      Broadcast Message from root@pfSense.localdomain (no tty) at 14:31 EDT ...
      
      UPS tripplite is unavailable
      
      upscmd -l tripplite
      Error: Driver not connected
      
      D J W 3 Replies Last reply Sep 24, 2022, 9:36 PM Reply Quote 0
      • D
        dennypage @racecarr
        last edited by dennypage Sep 25, 2022, 12:04 AM Sep 24, 2022, 9:36 PM

        @racecarr said in NUT package:

        Plug-in USB
        ugen0.4: <Tripp Lite Tripp Lite UPS> at usbus0
        uhid0 on uhub1
        uhid0: <Tripp Lite Tripp Lite UPS, class 0/0, rev 1.10/0.09, addr 4> on usbus0

        Every 10 seconds (or so) it disconnects

        Start with basics. Disable NUT. Reboot pfSense.

        Does the log still fill with disconnect/reconnect messages every 10 seconds?

        If so, do you have a USB hub in-line with the UPS? If you do, try removing it.

        1 Reply Last reply Reply Quote 0
        • J
          JonathanLee @racecarr
          last edited by JonathanLee Sep 24, 2022, 10:45 PM Sep 24, 2022, 9:58 PM

          @racecarr I would test the USB cable also. Just to be sure. I have a Cyber power system it works great. Saved my Java programming final one year. Power went out during the timed test, last 10 mins.

          Make sure to upvote

          1 Reply Last reply Reply Quote 0
          • W
            whoami TM @racecarr
            last edited by whoami TM Sep 24, 2022, 10:03 PM Sep 24, 2022, 9:58 PM

            @racecarr not sure if you read all my posts but the conclusion was I returned the Tripplite Smart1500 back to amazon because I couldnt get it to work with NUT the way I needed and bought a APC BGM1500B and a rack shelf. The APC just worked and did everything with NUT I needed it to do. I am also running a Netgate SG-4860-1u

            R 1 Reply Last reply Sep 26, 2022, 2:00 PM Reply Quote 0
            • R
              racecarr @whoami TM
              last edited by Sep 26, 2022, 2:00 PM

              @whoami-tm yeah it does seem like a potential big waste of time. I got the Tripp-Lite for free so I figured I would try and make it work.
              Ironically it seems to work great when plugged in to a Mac

              1 Reply Last reply Reply Quote 0
              • R
                renegade
                last edited by Oct 25, 2022, 8:21 AM

                Hello,

                I have at home a VDSL line as main and a LTE Netgear Modem as backup.
                Both are configured in pfSense as Multi WAN Failover Gateway.
                PfSense Plus 22.0. A n APC USP is connected directly via USB.
                Nut is installed and working fine.
                However when one of both connections drops e.g. due high ping latency I get an message by PfSense that the UPS has been disconnected from pfsense.
                Why has the Gateway an impact to the nut service?
                How can I avoid that nut throws an error when one of both gateways gets down?

                D G 2 Replies Last reply Oct 25, 2022, 3:20 PM Reply Quote 0
                • D
                  dennypage @renegade
                  last edited by Oct 25, 2022, 3:20 PM

                  @renegade A gateway failover results in pfSense restarting all packages. The reason is that pfSense does not know which services are impacted by the gateway and which are not. If you had a single gateway you could just disable the gateway monitoring action, but with two gateways that you are switching between I don't believe there is anything you can do currently. Perhaps in the future.

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gertjan @renegade
                    last edited by Oct 25, 2022, 3:58 PM

                    @renegade said in NUT package:

                    I get an message by PfSense that the UPS has been disconnected from pfsense

                    Can you show the message ?

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

                    R 1 Reply Last reply Oct 25, 2022, 7:43 PM Reply Quote 0
                    • R
                      renegade @Gertjan
                      last edited by Oct 25, 2022, 7:43 PM

                      @dennypage Alright, thank you. Understood and good to know that I can stop trying testing different things.

                      @gertjan I‘ll configured pushover to send me messages:

                      Firewall: firewall.home
                      UPS Notification from firewall.home - Mon, 24 Oct 2022 03:47:12 +0200

                      Communications with UPS ups lost

                      ————————————-

                      Firewall: firewall.home
                      UPS Notification from firewall.home - Mon, 24 Oct 2022 03:47:17 +0200

                      Communications with UPS ups established

                      G 1 Reply Last reply Oct 26, 2022, 8:10 AM Reply Quote 0
                      • G
                        Gertjan @renegade
                        last edited by Oct 26, 2022, 8:10 AM

                        @renegade

                        You've checked "Enable notifications" :

                        login-to-view

                        ?

                        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
                        • occamsrazorO
                          occamsrazor @Teken
                          last edited by occamsrazor Oct 28, 2022, 10:49 AM Oct 28, 2022, 10:48 AM

                          @gwaitsi said in NUT package:

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

                          @teken or @gwaitsi - Did you ever find a way to do this - read the status from multiple UPS units into NUT? I just made a post along similar lines before finding these messages. But that rogerprice.org website seems to be down now, did either of you by chance save that PDF?

                          pfSense CE on Qotom Q355G4 8GB RAM/60GB SSD
                          Ubiquiti Unifi wired and wireless network, APC UPSs
                          Mac OSX and IOS devices, QNAP NAS

                          4 1 Reply Last reply Oct 28, 2022, 11:30 AM Reply Quote 0
                          • 4
                            4o4rh @occamsrazor
                            last edited by Oct 28, 2022, 11:30 AM

                            @occamsrazor no. the more I thought about the problem, I put it on the back burner.

                            • I have a dumb battery on the J1900
                            • I have an APC smart UPS on the NAS upstairs
                            • in between are a couple of switches.

                            a) if I shut the J1900 down after x minutes due to loss of comms,
                            I wouldn't be able to restart it because you can't use the netgear switches as a WakeOnLAN for provider

                            b) I am now using ZFS as pfsense the file system and I should get about 30-60min with the battery.
                            If the outage is longer, the ZFS should provide a more resilient recovery (I think). I can then simply use the PowerOn Restore BIOS option to force the restart.

                            On balance, I decided it was easier to take the risk of a long outage and get the benefit of an autorestart. Of course, it would have been a different story if i could have used the netgear switches to trigger WakeOnLAN for the pfsense box

                            1 Reply Last reply Reply Quote 0
                            • DaddyGoD
                              DaddyGo
                              last edited by DaddyGo Oct 29, 2022, 1:23 PM Oct 29, 2022, 1:21 PM

                              NUT (2.7.4_20) with CyberPower RMCARD205 incorrect decimal point (0.1) vari.: battery.runtime

                              Problem with CyberPower RMCARD205 + NUT installations, maybe it's time to switch to 2.8 😊 ( https://www.freshports.org/sysutils/nut ), as the "snmp-ups" driver does not include this type either.
                              The problem with this wrong value is that, the shutdown threshold slips by, say, from a few minute (20%) - to a few hour :) and thus, - the UPS protection does not work in real time.
                              (because it "thinks" there are 5 hours left in the batteries, but in fact there are only 5 minutes left)

                              I repeat, only with this network SNMP card which we use RMCARD205 and unfortunately with the old driver set "driver.list" - snmp-ups...

                              OLD "snmp-ups" file in pfS inst driver.list NUT.:

                              login-to-view

                              RMCARD205 web interface:

                              login-to-view

                              pfS NUT console:

                              login-to-view

                              According to new compatibility:

                              login-to-view

                              Cats bury it so they can't see it!
                              (You know what I mean if you have a cat)

                              D 1 Reply Last reply Oct 29, 2022, 8:48 PM Reply Quote 0
                              • D
                                dennypage @DaddyGo
                                last edited by Oct 29, 2022, 8:48 PM

                                @daddygo said in NUT package:

                                maybe it's time to switch to 2.8

                                Pending pull request and redmine issue.

                                DaddyGoD 1 Reply Last reply Oct 30, 2022, 10:05 AM Reply Quote 2
                                • DaddyGoD
                                  DaddyGo @dennypage
                                  last edited by Oct 30, 2022, 10:05 AM

                                  @dennypage

                                  Hi Denny,

                                  Super then we thought of one (2.8) and hope it will happen quickly as we have purchased 10 pcs. 1.5KVA UPS units with RMCARD205.
                                  (I say softly - yeah, my fault for not checking the pfS NUT package and the RMACARD drivers first)

                                  Anyway thanks for your sacrificial work with this package, I have been watching it for a while...😉

                                  Cats bury it so they can't see it!
                                  (You know what I mean if you have a cat)

                                  1 Reply Last reply Reply Quote 1
                                  • D dennypage referenced this topic on Nov 4, 2022, 8:30 PM
                                  • D dennypage referenced this topic on Nov 14, 2022, 9:49 PM
                                  • D dennypage referenced this topic on Nov 14, 2022, 10:03 PM
                                  • V
                                    Viper_Rus
                                    last edited by Dec 9, 2022, 2:18 PM

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dennypage
                                      last edited by Dec 9, 2022, 2:55 PM

                                      @Viper_Rus i assume you found the answer to supporting Synology elsewhere in the thread.

                                      M 1 Reply Last reply Dec 11, 2022, 9:15 AM Reply Quote 0
                                      • M
                                        mrsunfire @dennypage
                                        last edited by mrsunfire Dec 11, 2022, 9:56 AM Dec 11, 2022, 9:15 AM

                                        I‘m having the issue that I get a shutdown loop after the UPS battery is empty.

                                        pfSense shutdown as expected. After power restores the UPD turns on and pfSense boots up. Couple of seconds later the UPS is doing battery check. This seems to trigger pfSense to shutdown again and turns of UPS aswell. This loop continues until I unplug communication to the UPS and wait that battery gets fully charged.

                                        You can see here that the input power is available but the UPS is getting the signal from pfSense to not charge. After couple of seconds pfSense and UPS shutdown.

                                        login-to-view

                                        Netgate 6100 MAX

                                        D 1 Reply Last reply Dec 11, 2022, 4:55 PM Reply Quote 0
                                        • D
                                          dennypage @mrsunfire
                                          last edited by dennypage Dec 11, 2022, 5:15 PM Dec 11, 2022, 4:55 PM

                                          @mrsunfire please post your config. And your UPS model.

                                          M 1 Reply Last reply Dec 11, 2022, 6:04 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.