3 # $NetBSD: sensor_power,v 1.2 2007/10/11 00:11:24 xtraeme Exp $
5 # Generic script for power sensors.
7 # Arguments passed by powerd(8):
9 # script_path device event sensor
13 logger
-p warning
"${0}: ($1) normal state entered [${3}]" >&1
17 logger
-p warning
"${0}: ($1) critical state entered [${3}]" >&1
21 logger
-p warning
"${0}: ($1) dropped below critical limit [${3}]" >&1
25 logger
-p warning
"${0}: ($1) critical limit exceeded [${3}]" >&1
29 logger
-p warning
"${0}: ($1) dropped below warning limit [${3}]" >&1
33 logger
-p warning
"${0}: ($1) warning limit exceeded [${3}]" >&1
37 logger
-p warning
"${0}: unsupported event ${2} on device ${1}" >&1