#
# Defines the serial device on which the UPS is connected.
#
device			/dev/tty00

#
# Defines a PID file.
#
pidfile			/var/run/apcd.pid

#
# Perform UPS startup test.
#
startup_test		yes

#
# Listener port where apcmon(8) will connect to.  If this parameter is not
# defined no listener will be started.
#
listener		1025

#
# Defines the lower battery charge limit in %.  If this limit has
# been reached, we will execute the trap 'trap-battery_low'.
#
battery_low		60

#
# Defines the critical battery charge limit in %.  If this limit has
# been reached, we will execute the trap 'trap-battery_critical'.
#
battery_critical	5

#
# *** Define trap system commands ***
#

#
# 'battery_low' limit has been reached.
#
trap-battery_low	/usr/bin/mail -s "UPS battery is low!" foobar@sms.gateway.net

#
# 'battery_critical' limit has been reached.
#
trap-battery_critical	/sbin/halt

#
# UPS switched from online to battery.
#
trap-on_battery		/usr/bin/mail -s "UPS switched to battery!" foobar@sms.gateway.net

#
# UPS switch from battery back online.
#
trap-back_online	/usr/bin/mail -s "UPS switched back online." foobar@sms.gateway.net

#
# UPS is in self shutdown state.
#
trap-shutdown		/sbin/halt
