I was wondering why i never got an email when there was a power outage (but i did get the wall message and an email for power being returned) -- apcupsd appears to be calling "apccontrol powerout" instead of "apccontrol onbattery". copying /etc/apcupsd/onbattery to /etc/apcupsd/powerout makes it behave as one would expect. Not sure if they just changed the calls or what, but this is something i'd expect to have working out of the box. Reproducible: Always Steps to Reproduce:
What version was this with? I kept getting wall messages telling me power was out and then back on (in a second) with 3.10.5. I've updated to 3.10.6 (~arch) to see if it fixes the problem.
It was 3.10.5, and the 3.10.6 just got applied on my system, though at first glance it appears the newly quoted strings on all the scripts is not agreeing well with qmail (my stand-in for sendmail here). The only message I am receiving at the moment is from the "powerfail" script which still does not appear to be part of the distribution. Thats the one I added myself because that is what got called when my smart-ups 2200 sees the power outage. I added the following line to my /etc/apcupsd/apccontrol script to help correlate the real messages that the daemon calls it with, because I too was getting 'wall' messages but not all the emails I was expecting: echo ${SCRIPTDIR}/${1} ${2} ${3} ${4} >> /var/log/apcupsd.log
Bug closed by version bump to 3.10.6 and adding a symling for the non existing script. Description is in #32471. Closing this one now. Thanks for your help.
s/symling/symlink/