Navigation

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

    UPS Manager with statistics (and graph)

    pfSense Packages
    5
    13
    488
    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.
    • W
      WhiteTiger-IT last edited by WhiteTiger-IT

      I have an UPS APC Back-UP 950 and I would like to install tools to manage the shutdown of the Servers, VMs and PCs connected to the line protected by this UPS. They are both in LAN and in DMZ, in addition of course to PfSense.
      On the virtual and physical PCs and servers, there will be the "agent service" to receive the shutdown command or the UPS status.
      I could install the UPS manager on a Raspberry P4B or a Linux PC, but since the PC with PFSense is definitely always on I could also install it on this one with a package.
      But I would like to be able to consult some statistics and possibly a graph to see the load, the flow of the incoming voltage and any interruptions.
      What do you recommend?
      Thanks in advance.

      fireodo T 2 Replies Last reply Reply Quote 0
      • fireodo
        fireodo @WhiteTiger-IT last edited by

        @whitetiger-it

        What about package apcupsd? And the Apcupsd-widget:
        Widget
        Maybe that is something for you ...

        Regards,
        fireodo

        Kettop Mi4300YL, CPU: i5-4300Y @ 1.60GHz, RAM: 8GB, 4 Ports
        SanDisk pSSD-S2 16GB (ZFS), WLE200NX (WiFi)
        Pfsense 2.6.0 (amd64)
        PKGs: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG-devel, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

        1 Reply Last reply Reply Quote 1
        • T
          tirsojrp @WhiteTiger-IT last edited by

          @whitetiger-it pfsense has a acpupsd package, but you are better off with a rpi.

          That way you can play with all kind of tools and scripts without worrying about an upgrade.

          Currently managing my BE850 with a RPI running Zabbix.

          Zabbix actions are not realtime, but it is quite simple to configure scripts to do whatever you want, keep logs and graphs. I even have an alert for UPS's battery date.

          Next step is managing several UPS's in a single RPi.

          1 Reply Last reply Reply Quote 0
          • W
            WhiteTiger-IT last edited by WhiteTiger-IT

            I am trying to install the Apcupsd package with these options (all the others I have left unchanged)
            UPS Name = APC Back-UPS 950
            UPS cable = usb
            UPS Type = leaving the field empty m gives me an error, putting BLANK then in Status I see

            Running: apcaccess -h 0.0.0.0:3551
            : Bogus configuration value (* invalid-ups-type *)
            FATAL ERROR in apcconfig.c at line 672
            Terminating due to configuration file errors.
            

            Also in Services Status the APC Ups Daemon has not started.

            A console I see

            ugen0.5 <American Power Conversion Back-UPS XS 950U FW: 925.T2. .I USB FW: T2> at usbus0
            

            So pfsense sees it.

            @fireodo
            How do I install the widget?

            fireodo 1 Reply Last reply Reply Quote 0
            • fireodo
              fireodo @WhiteTiger-IT last edited by

              @whitetiger-it said in UPS Manager with statistics (and graph):

              How do I install the widget?

              Its described in the link I provided in the post before!

              Kettop Mi4300YL, CPU: i5-4300Y @ 1.60GHz, RAM: 8GB, 4 Ports
              SanDisk pSSD-S2 16GB (ZFS), WLE200NX (WiFi)
              Pfsense 2.6.0 (amd64)
              PKGs: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG-devel, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

              W 1 Reply Last reply Reply Quote 0
              • R
                ratat1 Banned last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • W
                  WhiteTiger-IT @fireodo last edited by

                  @fireodo
                  I had seen the two folders, but to download the two files I was looking for some function in the GUI.
                  I solved with WinSCP.

                  But it doesn't work anyway because the APC Ups Daemon doesn't start, as I described in my last comment.

                  fireodo 1 Reply Last reply Reply Quote 0
                  • fireodo
                    fireodo @WhiteTiger-IT last edited by

                    @whitetiger-it said in UPS Manager with statistics (and graph):

                    But it doesn't work anyway because the APC Ups Daemon doesn't start, as I described in my last comment.

                    Try to use as UPS-Type also "usb"

                    Kettop Mi4300YL, CPU: i5-4300Y @ 1.60GHz, RAM: 8GB, 4 Ports
                    SanDisk pSSD-S2 16GB (ZFS), WLE200NX (WiFi)
                    Pfsense 2.6.0 (amd64)
                    PKGs: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG-devel, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                    W 1 Reply Last reply Reply Quote 1
                    • W
                      WhiteTiger-IT @fireodo last edited by

                      @fireodo
                      Quite right.
                      I had also found this suggestion and was coming to write it in the post when I saw your answer.
                      But someone should correct the page because I lost hours on a wrong indication.
                      Thanks, also for the Widget which works very well.

                      fireodo 1 Reply Last reply Reply Quote 0
                      • fireodo
                        fireodo @WhiteTiger-IT last edited by

                        @whitetiger-it said in UPS Manager with statistics (and graph):

                        Thanks, also for the Widget which works very well.

                        You're welcome - glad you get it working!

                        Regards,
                        fireodo

                        Kettop Mi4300YL, CPU: i5-4300Y @ 1.60GHz, RAM: 8GB, 4 Ports
                        SanDisk pSSD-S2 16GB (ZFS), WLE200NX (WiFi)
                        Pfsense 2.6.0 (amd64)
                        PKGs: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG-devel, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                        W 1 Reply Last reply Reply Quote 0
                        • W
                          WhiteTiger-IT @fireodo last edited by

                          @fireodo
                          Can I ask you one last thing?
                          I was looking for a graph who would show me the historian.
                          For me it is important to know if there have been any interruptions or any particular variation of the input voltage.
                          The network is in an area where the input voltage is not too stable and I would like to monitor it to report it to the technicians.

                          The Widget reports me the current status, not the history.
                          Is there anything else? Also to be launched from a Linux or Windows PC.

                          fireodo provels 2 Replies Last reply Reply Quote 0
                          • fireodo
                            fireodo @WhiteTiger-IT last edited by fireodo

                            @whitetiger-it said in UPS Manager with statistics (and graph):

                            Can I ask you one last thing?

                            Of course.

                            Is there anything else? Also to be launched from a Linux or Windows PC.

                            Not of my knowledge! Sorry!

                            Kettop Mi4300YL, CPU: i5-4300Y @ 1.60GHz, RAM: 8GB, 4 Ports
                            SanDisk pSSD-S2 16GB (ZFS), WLE200NX (WiFi)
                            Pfsense 2.6.0 (amd64)
                            PKGs: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG-devel, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                            1 Reply Last reply Reply Quote 0
                            • provels
                              provels @WhiteTiger-IT last edited by

                              @whitetiger-it
                              You may want to look at MRTG. I'm sure someone has adapted it for UPSs (either APCUPSD or NUT).
                              MRTG
                              I have a FreeBSD NAS (Xigmanas) which has UPS monitoring that looks a lot like MRTG. Maybe you could spin up a minimal VM with it and monitor that way? The NAS uses NUT to monitor pfSense as slave, which in turn uses APCUPSD to monitor the USB-connected APC on the host... Simple! :/
                              a3a9005e-b53a-4829-aaa5-3e13bbf5de0b-image.png

                              Peder

                              pfSense+ 22.05-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM (Fixed), 8GB VHDX (Dynamic)
                              Packages : Cron, Mailreport, Notes, Nut, OpenVPN, pfBlockerNG-devel, RRD_Summary, Service Watchdog, System_Patches

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post