Add cases for new {high,maximum}-capacity events

This commit is contained in:
pgoyette 2010-02-15 22:56:13 +00:00
parent 55a81df24d
commit 82c7774043
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: sensor_battery,v 1.6 2009/06/13 15:35:10 pgoyette Exp $
# $NetBSD: sensor_battery,v 1.7 2010/02/15 22:56:13 pgoyette Exp $
#
# Generic script for battery sensors.
#
@ -28,6 +28,16 @@ critical-capacity)
"${0}: (${3}) capacity below critical limit [${1}]" >&1
exit 0
;;
high-capacity)
logger -p warning \
"${0}: (${3}) capacity above high limit [${1}]" >&1
exit 0
;;
maximum-capacity)
logger -p warning \
"${0}: (${3}) capacity above maximum limit [${1}]" >&1
exit 0
;;
#
# This event is _ONLY_ received when all AC Adapters are OFF and all
# batteries on the system are in CRITICAL or LOW state.