3 # This shell script if placed in /etc/apcupsd
4 # will be called by /etc/apcupsd/apccontrol when apcupsd
5 # loses contact with the UPS (i.e. the serial connection is not responding).
6 # We send an email message to root to notify him.
9 APCUPSD_MAIL
="@APCUPSD_MAIL@"
12 MSG
="$HOSTNAME Communications with UPS lost"
19 @sbindir@
/apcaccess status
20 ) |
$APCUPSD_MAIL -s "$MSG" $SYSADMIN