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

    Mailreport update with apcupsd

    Scheduled Pinned Locked Moved pfSense Packages
    8 Posts 5 Posters 2.0k 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.
    • T
      tylerhughes
      last edited by

      Ever since I updated the mailreport package, the notification section of apcupsd says:

      In order to receive e-mail notifications, you need to configure SMTP Email Notifications on Advanced/Notifications section, and also, install mailreport package.

      Is there any way to revert the update or do I just need to wait for an update of apcupsd?

      1 Reply Last reply Reply Quote 0
      • T
        Topper727
        last edited by

        I installed and tested

        Details

        apcupsd-3.14.12_1 pkg v0.3.2
        mailreport 2.3

        And it works for me. On 2.2 Rc 64bit

        Firewall Email Report
        9:53 AM (2 minutes ago)

        to me
        This is a periodic report from your firewall, firewall.wholesale-florida.com.

        Current report: Test

        Command output: Battery (apcaccess status)
        APC      : 001,034,0843
        DATE    : 2015-02-15 09:53:16 -0500
        HOSTNAME : firewall.wholesale-florida.com
        VERSION  : 3.14.12 (29 March 2014) freebsd
        UPSNAME  : Backups
        CABLE    : USB Cable
        DRIVER  : USB UPS Driver
        UPSMODE  : Stand Alone
        STARTTIME: 2015-02-15 09:46:11 -0500
        MODEL    : Back-UPS ES 500
        STATUS  : ONLINE
        LINEV    : 112.0 Volts
        LOADPCT  : 37.0 Percent
        BCHARGE  : 100.0 Percent
        TIMELEFT : 14.9 Minutes
        MBATTCHG : 5 Percent
        MINTIMEL : 3 Minutes
        MAXTIME  : 0 Seconds
        SENSE    : High
        LOTRANS  : 88.0 Volts
        HITRANS  : 139.0 Volts
        ALARMDEL : 30 Seconds
        BATTV    : 13.6 Volts
        LASTXFER : Low line voltage
        NUMXFERS : 0
        TONBATT  : 0 Seconds
        CUMONBATT: 0 Seconds
        XOFFBATT : N/A
        STATFLAG : 0x05000008
        SERIALNO : 3B0625X17723
        BATTDATE : 2015-02-12
        NOMINV  : 120 Volts
        NOMBATTV : 12.0 Volts
        FIRMWARE : 824.B1.D USB FW:B1
        END APC  : 2015-02-15 09:53:44 -0500

        screencapture-192-168-1-1-status_mail_report_edit-php.png
        screencapture-192-168-1-1-status_mail_report_edit-php.png_thumb

        Dell 2950 g3 server
        Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
        Current: 2000 MHz, Max: 2667 MHz
        8 CPUs: 2 package(s) x 4 core(s)
        8152 MiB and 600meg 10k drive
        Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

        1 Reply Last reply Reply Quote 0
        • T
          tylerhughes
          last edited by

          I have the same versions installed and can configure email reports on the same page, however what I can no longer do is configure email alerts on the apcupsd page (for power going out, etc)

          notifications.PNG
          notifications.PNG_thumb

          1 Reply Last reply Reply Quote 0
          • D
            dbaio
            last edited by

            There wasn't anything for config.

            E-mail notification uses the PHPMailer class from mailreport package. It was updated and that is the problem.

            I've sent a pull request for fix this.

            https://github.com/pfsense/pfsense-packages/pull/819

            Regards.

            –
            Danilo G. Baio (dbaio)

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Somehow I missed that pull request when I was merging other things. It's merged in now, but may take 30 mins or so to sync up everywhere.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • T
                tylerhughes
                last edited by

                I updated to the latest apcupsd package (apcupsd-3.14.12_1 pkg v0.3.4) and when I tested by pulling the plug I still did not receive an email alert. Is there anything else I need to change?

                1 Reply Last reply Reply Quote 0
                • M
                  mir
                  last edited by

                  did you enter full path to apcacces like: /usr/local/sbin/apcaccess
                  "NOTE: Use full paths to commands to ensure they run properly. The command will be run during the report and its stdout output will be included in the report body. Be extremely careful what commands you choose to run, the same warnings apply as those when using Diagnostics > Command."

                  1 Reply Last reply Reply Quote 0
                  • D
                    dbaio
                    last edited by

                    E-mail report is currently broken on pfSense 2.2.

                    See APCupsd package status for pfSense:
                    https://forum.pfsense.org/index.php?topic=89901.0

                    –
                    Danilo G. Baio (dbaio)

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