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

    APCUPSD - No UPS page

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 2 Posters 3.6k 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.
    • JKnottJ
      JKnott
      last edited by

      Problem solved. When the package was installed, it created 2 entries on the Services drop down list, one of Apcupsd and also UPS. I saw the UPS one first and that's the one that returned the 404 error. Why does it create both items?

      Next problem, while it's apparently running, it doesn't seem to be gathering much data. I also run apcupsd on my Linux system and the monitor, which displays both the USB connected (Linux) and remote UPS (firewall). The Linux computer shows a few traces on the Historical Summary tab, but the one for pfSense only shows bcharge. The status in pfSense matches the full status listed on the Linux box. I've listed the full status for both systems below. Why does the firewall status show so much less info than the Linux box? I moved the USB cables to prove the problem is with pfSense and not a hardware problem with the UPS.

      DATE : 2019-04-15 20:50:29 -0400
      HOSTNAME : firewall.XYZ.abc
      VERSION : 3.14.14 (31 May 2016) freebsd
      UPSNAME : APC BE600M1
      CABLE : USB Cable
      DRIVER : USB UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2019-04-15 20:08:31 -0400
      MODEL :
      STATUS :
      LINEV : 0.0 Volts
      LOADPCT : 0.0 Percent
      BCHARGE : 100.0 Percent
      TIMELEFT : 493.3 Minutes
      MBATTCHG : 5 Percent
      MINTIMEL : 3 Minutes
      MAXTIME : 0 Seconds
      SENSE : Unknown
      LOTRANS : -1.0 Volts
      HITRANS : -1.0 Volts
      ALARMDEL : Always
      BATTV : 0.0 Volts
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      STATFLAG : 0x05000000
      SERIALNO :
      BATTDATE :
      NOMINV : 0 Volts
      NOMBATTV : 0.0 Volts
      END APC : 2019-04-15 20:51:09 -0400

      DATE : 2019-04-15 20:51:32 -0400
      HOSTNAME : linux
      VERSION : 3.14.14 (31 May 2016) suse
      UPSNAME : linux
      CABLE : USB Cable
      DRIVER : USB UPS Driver
      UPSMODE : Stand Alone
      STARTTIME: 2019-04-14 16:36:48 -0400
      MODEL : Back-UPS ES 600M1
      STATUS : ONLINE
      LINEV : 117.0 Volts
      LOADPCT : 18.0 Percent
      BCHARGE : 100.0 Percent
      TIMELEFT : 41.7 Minutes
      MBATTCHG : 5 Percent
      MINTIMEL : 3 Minutes
      MAXTIME : 0 Seconds
      SENSE : Medium
      LOTRANS : 92.0 Volts
      HITRANS : 139.0 Volts
      ALARMDEL : 30 Seconds
      BATTV : 13.6 Volts
      LASTXFER : No transfers since turnon
      NUMXFERS : 0
      TONBATT : 0 Seconds
      CUMONBATT: 0 Seconds
      XOFFBATT : N/A
      SELFTEST : NO
      STATFLAG : 0x05000008
      SERIALNO : 4B1830P29067
      BATTDATE : 2018-07-27
      NOMINV : 120 Volts
      NOMBATTV : 12.0 Volts
      NOMPOWER : 330 Watts
      FIRMWARE : 928.a8 .D USB FW:a8
      END APC : 2019-04-15 20:51:33 -0400

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

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

        apcupsd does not install a UPS menu but the NUT package does. If you had ever installed that it might have still been present in the config.

        Steve

        JKnottJ 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @stephenw10
          last edited by

          @stephenw10 said in APCUPSD - No UPS page:

          apcupsd does not install a UPS menu but the NUT package does. If you had ever installed that it might have still been present in the config.

          How does one edit config to get rid of it? Might it be causing the problem with the readings?

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

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

            You can install and then uninstall NUT. Or you can remove the menus from the config file:

            <installedpackages>
               <menu>
                 Some menu 
               </menu>
            </installedpackages>
            

            Doing that is open to error though. 😉

            Steve

            JKnottJ 1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @stephenw10
              last edited by

              @stephenw10 said in APCUPSD - No UPS page:

              You can install and then uninstall NUT.

              That seems to have cleared "UPS" from the Services list. However, I'm still getting bad data from the UPS.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

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

                So it shows all the data locally but not when the daemon is queried from a different client?

                Are they running the same apcupsd version? Seems like a data formatting mismatch.

                Steve

                JKnottJ 1 Reply Last reply Reply Quote 0
                • JKnottJ
                  JKnott @stephenw10
                  last edited by

                  @stephenw10 said in APCUPSD - No UPS page:

                  So it shows all the data locally but not when the daemon is queried from a different client?

                  It shows bad data both locally and on the Linux box. Both show the same data. As I mentioned, I tried moving the USB cables between UPSs, and the problem followed pfSense.

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

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

                    Hmm, well I guess I'd try apcupsd on a FreeBSD box next then of you can.

                    It would be good to know if that's the same version on Linux and FreeBSD though.

                    Steve

                    JKnottJ 1 Reply Last reply Reply Quote 0
                    • JKnottJ
                      JKnott @stephenw10
                      last edited by

                      @stephenw10 said in APCUPSD - No UPS page:

                      It would be good to know if that's the same version on Linux and FreeBSD though.

                      According to what I posted above, they're both the same version.

                      VERSION : 3.14.14 (31 May 2016) freebsd
                      VERSION : 3.14.14 (31 May 2016) suse

                      PfSense running on Qotom mini PC
                      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                      UniFi AC-Lite access point

                      I haven't lost my mind. It's around here...somewhere...

                      1 Reply Last reply Reply Quote 0
                      • JKnottJ
                        JKnott
                        last edited by

                        It also fails with NUT. I have also tried a different USB port and turning off legacy USB support on the motherboard. The package manager mentions a dependeny "apcupsd-3.14.14_2". Is that already installed? If so, why mention it?

                        PfSense running on Qotom mini PC
                        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                        UniFi AC-Lite access point

                        I haven't lost my mind. It's around here...somewhere...

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

                          Next step is to test it in FreeBSD then.

                          If it fails there too the report it to the FreeBSD package maintainer.

                          Steve

                          JKnottJ 1 Reply Last reply Reply Quote 0
                          • JKnottJ
                            JKnott @stephenw10
                            last edited by

                            @stephenw10

                            I don't run FreeBSD, other than pfSense. I run Linux, where it works fine. Incidentally, I read that APC is now running MODBUS, instead of an older protocol. Might that have something to do with it?

                            PfSense running on Qotom mini PC
                            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                            UniFi AC-Lite access point

                            I haven't lost my mind. It's around here...somewhere...

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

                              Could be. My guess would be that the FreeBSD port supports some subset of the data only. But testing against FreeBSD is the only way to know that. Or reading the code...

                              Steve

                              JKnottJ 2 Replies Last reply Reply Quote 0
                              • JKnottJ
                                JKnott @stephenw10
                                last edited by

                                @stephenw10

                                Unfortunately, my only experience with *BSD is pfSense and I find it frustrating compared to Linux. I understand that this may be due to pfSense running on a somewhat stripped down version of FreeBSD.

                                Is there any log I can check that might reveal something?

                                PfSense running on Qotom mini PC
                                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                UniFi AC-Lite access point

                                I haven't lost my mind. It's around here...somewhere...

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

                                  You can check /var/log/apcupsd.events but I don;t think you'll see anything new there.

                                  There are some log level options in the config file /usr/local/etc/apcupsd/apcupsd.conf

                                  You can probably start it in debug mode from the command line if the service is stopped: apcupsd -d 2
                                  Not sure if that actually shows anything extra, I can't test it.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • JKnottJ
                                    JKnott @stephenw10
                                    last edited by

                                    @stephenw10 said in APCUPSD - No UPS page:

                                    Could be. My guess would be that the FreeBSD port supports some subset of the data only. But testing against FreeBSD is the only way to know that. Or reading the code...

                                    Steve

                                    I just plugged in an older model APC UPS and it now works. The old model is a " Back-UPS ES 500". So, there is something different in the protocol between old and new that keeps apcupsd and NUT from working with the new UPS. BTW, I had previously used NUT with this old model and it worked fine. As I mentioned, the new UPS works fine with Linux.

                                    PfSense running on Qotom mini PC
                                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                    UniFi AC-Lite access point

                                    I haven't lost my mind. It's around here...somewhere...

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