Mailreport update with apcupsd

  • 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?

  • I installed and tested


    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,

    Current report: Test

    Command output: Battery (apcaccess status)
    APC      : 001,034,0843
    DATE    : 2015-02-15 09:53:16 -0500
    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
    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
    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

  • 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)

  • 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.


  • Rebel Alliance Developer Netgate

    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.

  • 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?

  • 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."

  • E-mail report is currently broken on pfSense 2.2.

    See APCupsd package status for pfSense:

Log in to reply