Long-overdue update. Need to handle both {warning,critical}-capacity

events.
This commit is contained in:
pgoyette 2009-06-13 15:35:10 +00:00
parent 9c2e10416b
commit fdcbe744db

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: sensor_battery,v 1.5 2007/10/11 19:47:26 xtraeme Exp $
# $NetBSD: sensor_battery,v 1.6 2009/06/13 15:35:10 pgoyette Exp $
#
# Generic script for battery sensors.
#
@ -18,9 +18,14 @@ state-changed)
logger -p warning "${0}: (${3}) state changed to ${4} [${1}]" >&1
exit 0
;;
user-capacity)
warning-capacity)
logger -p warning \
"${0}: (${3}) user defined capacity dropped below limit [${1}]" >&1
"${0}: (${3}) capacity below warning limit [${1}]" >&1
exit 0
;;
critical-capacity)
logger -p warning \
"${0}: (${3}) capacity below critical limit [${1}]" >&1
exit 0
;;
#