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

    Netgate 3100, nut and Cyberpower UPS Issue

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    15 Posts 4 Posters 1.5k 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.
    • M
      mer @jostermacedo
      last edited by

      @jostermacedo Diagnostics menu, Command Prompt should let you enter something like "cat /usr/local/etc/nut/upsmon.conf"

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Yup, that^ or you can just open it in Diag > Edit File.

        Steve

        J 1 Reply Last reply Reply Quote 1
        • J
          jostermacedo @stephenw10
          last edited by

          @stephenw10 said in Netgate 3100, nut and Cyberpower UPS Issue:

          Yup, that^ or you can just open it in Diag > Edit File.

          Steve

          This is the output of the command above:

          MONITOR Macedo 1 local-monitor 9c0be71e217573e68122 master
          SHUTDOWNCMD "/sbin/shutdown -p +0"
          POWERDOWNFLAG /etc/killpower

          M 1 Reply Last reply Reply Quote 0
          • M
            mer @jostermacedo
            last edited by

            @jostermacedo
            @stephenw10 is the SG3100 arm based like the 2100? If so does it actually power off when you do shutdown -p?

            S 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Hmm, the default options then.

              I don't actually run NUT but as I understand it that should shutdown the firewall when the UPS reports battery low, which looks like 10% as configured. It may require a different value there if your UPS doesn't give enough time to shutdown after signally low.

              When you pull the plug do you see the expected values reported?

              Steve

              J 1 Reply Last reply Reply Quote 0
              • J
                jostermacedo @stephenw10
                last edited by

                @stephenw10 said in Netgate 3100, nut and Cyberpower UPS Issue:

                Hmm, the default options then.

                I don't actually run NUT but as I understand it that should shutdown the firewall when the UPS reports battery low, which looks like 10% as configured. It may require a different value there if your UPS doesn't give enough time to shutdown after signally low.

                When you pull the plug do you see the expected values reported?

                Steve

                Steve, but if the UPS reported battery low, shouldn't that be shown on the log? I'll test it tonight once I'm at home.

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  I would expect it to. But, for example, maybe the batteries are toast or uncalibrated and it gets to 20% and then just shuts off.

                  1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @mer
                    last edited by

                    @mer said in Netgate 3100, nut and Cyberpower UPS Issue:

                    is the SG3100 arm based like the 2100? If so does it actually power off when you do shutdown -p?

                    It is. If you Halt it, it will stop everything and show a message on the console to the effect that it's OK to power off. But that should be a clean shutdown from the OS standpoint.

                    @jostermacedo How old is the UPS? In general UPS battery life (at least for APC, which we use for clients) is around 3-6 years depending on how often it goes on battery. I have seen multiple old UPSs over the years where the UPS thought its battery was fine but the biweekly self test powered off an attached PC because the battery couldn't produce the power needed. Similar to what stephenw is describing.

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote 👍 helpful posts!

                    J 1 Reply Last reply Reply Quote 1
                    • J
                      jostermacedo @SteveITS
                      last edited by jostermacedo

                      @steveits said in Netgate 3100, nut and Cyberpower UPS Issue:

                      @mer said in Netgate 3100, nut and Cyberpower UPS Issue:

                      is the SG3100 arm based like the 2100? If so does it actually power off when you do shutdown -p?

                      It is. If you Halt it, it will stop everything and show a message on the console to the effect that it's OK to power off. But that should be a clean shutdown from the OS standpoint.

                      @jostermacedo How old is the UPS? In general UPS battery life (at least for APC, which we use for clients) is around 3-6 years depending on how often it goes on battery. I have seen multiple old UPSs over the years where the UPS thought its battery was fine but the biweekly self test powered off an attached PC because the battery couldn't produce the power needed. Similar to what stephenw is describing.

                      The UPS was bought in 2016, but I replaced the battery two months ago. You can see through the log on the original message that the router was running for at least two hours after the power went down (it run PFBlockerNG cron update). SG3100 is the only thing connected to the UPS, so not much power was being used at all.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Mmm, yeah I would expect it to have logged battery low if it did reach that.

                        Maybe it restarted for some other reason?

                        I think you will need to do a test and see what it actually logs and what the UPS stats are reported as when it's discharging. I would probably run the 3100 directly and not through the UPS during that test so it doesn't actually lose power if/when the batteries are drained.

                        Steve

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