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

    UPS configuration master/slave

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 2 Posters 3.4k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      I would not expect to, certainly to get basic data which is normally sufficient.
      If you need to customise the queries you'd need to know what the UPS provides and that's a question for Eaton.

      Steve

      1 Reply Last reply Reply Quote 0
      • I
        Inxsible
        last edited by

        Thanks again for the quick reply. Do I need to worry about SNMP v1 vs v2c vs v3 since only v3 seems to be secure?

        Also, the secName, authPassword and privPassword -- are they in cleartext in the ups.conf?

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

          It looks like you can set it in ups.conf but it defaults to v1. Depends what your UPS provides though. That would be an extra argument in the pfSense package.

          snmp_version=version
          Set SNMP version (default = v1, allowed: v2c, v3)
          

          Steve

          1 Reply Last reply Reply Quote 0
          • I
            Inxsible
            last edited by Inxsible

            Is there a difference between driver.parameter.pollfreq & driver.parameter.pollinterval ? Initially only the pollinterval was set as 2. Then I passed in an extra argument of pollfreq and set it to 30 since I think 30 seconds is good enough for me. I saw the new parameter of pollfreq

            Edit: From your reply above it seems many of the parameters and fine grained settings depend highly on the make and model of the UPS. The link that you gave me is the exact one that I was looking at while trying to figure out what if anything should I be passing as arguments etc to the driver.

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

              Personally I have not played with those values, the defaults sufficed.

              There will be other posts here that give more detail though. Have a look in the packages sub-forum.

              Steve

              1 Reply Last reply Reply Quote 0
              • I
                Inxsible
                last edited by

                Will do. Thank you again.

                1 Reply Last reply Reply Quote 0
                • I
                  Inxsible
                  last edited by

                  I was able to set up the UPS correctly and the UPS Status page now shows me all the parameters that my UPS provides over the SNMP card. However, I still don't know where to define (within pfSense) that I want to shutdown pfSense when the battery is less than 10%.

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

                    You would have to do that in the advanced options. Normally it will start to shutdown when the UPS indicated it's battery charge is low but you can override when this set using the 'ignorelb' variable in ups.conf it appears.
                    Again the default values worked for me when I used this last. But that may not be the case for your UPS.

                    Steve

                    I 1 Reply Last reply Reply Quote 0
                    • I
                      Inxsible @stephenw10
                      last edited by Inxsible

                      @stephenw10 said in UPS configuration master/slave:

                      You would have to do that in the advanced options. Normally it will start to shutdown when the UPS indicated it's battery charge is low but you can override when this set using the 'ignorelb' variable in ups.conf it appears.
                      Again the default values worked for me when I used this last. But that may not be the case for your UPS.

                      Steve

                      Hi Steve,
                      I read about the ignorelb parameter, but it seems that instead of checking the ONBATT event it compares the battery.charge to the battery.charge.low and the battery.runtime to the battery.runtime.low parameters.

                      But I still don't understand where I would put in the code to explicitly call ```

                      shutdown -h now
                      

                      ===

                      or something similar

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

                        As I said I never played with this last time I used it as the compiled in defaults were always sufficient.
                        The shutdown command itself is preconfigured, it is run when the UPS battery level falls below battery.charge.low. That value is determined by the UPS but can be overridden by ignorelb as detailed.

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • I
                          Inxsible
                          last edited by

                          @stephenw10 said in UPS configuration master/slave:

                          .

                          Ok. Thank you. I didn't know the command was preconfigured. Not much information out there about it. Or maybe my google-fu is weak.

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

                            I agree, it's not obvious.
                            You can see what the pfSense package is configuring in /usr/local/etc/nut/upsmon.conf
                            Anything else is using the compiled in defaults.

                            Steve

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