8 usb-wde1 - Munin plugin to report usb-wde1 temperature and humidity data
12 =head2 EXAMPLE CONFIGURATION
15 env.logfile /var/log/usb-wde1.log
17 env.sensor0 Living room
23 #%# capabilities=autoconf suggest
30 # - type (temperature / humidity)
33 if [ "$1" = "autoconf" ]; then
34 if [ -r "$logfile" ]; then
37 echo "no (Logfile \"$logfile\" does not exist)"
41 elif [ "$1" = "suggest" ]; then
49 TYPE=`basename $0 | sed 's/^.*_//g'`
52 if [ "$1" = "config" ]; then
53 if [ "$host_name" != "" ]; then
54 echo "host_name $host_name"
56 if [ "$TYPE" = "temperature" ]; then
57 echo 'graph_title Temperature'
58 echo 'graph_args --base 1000 --lower-limit -30 --upper-limit 60'
59 echo 'graph_vlabel Temperature'
61 echo 'graph_title Humidity'
62 echo 'graph_args --base 1000 --lower-limit 0 --upper-limit 100'
63 echo 'graph_vlabel Humidity'
66 echo 'graph_category sensors'
67 #FIXME: warning/critical values