git.cweiske.de
/
usb-wde1-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b47b4cd
)
munin plugin config should work now
author
Christian Weiske
<cweiske@cweiske.de>
Sun, 6 Feb 2011 11:59:28 +0000
(12:59 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Sun, 6 Feb 2011 11:59:28 +0000
(12:59 +0100)
munin/usb-wde1_
patch
|
blob
|
history
diff --git
a/munin/usb-wde1_
b/munin/usb-wde1_
index 388a9b4161fd3655e9b2faba0a29f43ddd48e444..44443a81dc2d40c3788943eceb82dd70a1c2c346 100755
(executable)
--- a/
munin/usb-wde1_
+++ b/
munin/usb-wde1_
@@
-8,12
+8,16
@@
usb-wde1 - Munin plugin to report usb-wde1 temperature and humidity data
=head1 CONFIGURATION
usb-wde1 - Munin plugin to report usb-wde1 temperature and humidity data
=head1 CONFIGURATION
+ The plugin offers two modes: temperature and humidity graphing.
+
+ Symlink usb-wde1_ as "usb-wde1_temperature" and/or "usb-wde1_humidity".
=head2 EXAMPLE CONFIGURATION
=head2 EXAMPLE CONFIGURATION
- [usb-wde1]
+ [usb-wde1
_temperature
]
env.logfile /var/log/usb-wde1.log
env.host_name House
env.logfile /var/log/usb-wde1.log
env.host_name House
+ env.sensors 0 1 2 3 4 7
env.sensor0 Living room
env.sensor1 Kitchen
env.sensor0 Living room
env.sensor1 Kitchen
@@
-24,12
+28,6
@@
usb-wde1 - Munin plugin to report usb-wde1 temperature and humidity data
=cut
=cut
-# params:
-# - logfile
-# - sensor names
-# - type (temperature / humidity)
-# - hostname
-
if [ "$1" = "autoconf" ]; then
if [ -r "$logfile" ]; then
echo yes
if [ "$1" = "autoconf" ]; then
if [ -r "$logfile" ]; then
echo yes
@@
-57,12
+55,17
@@
if [ "$1" = "config" ]; then
echo 'graph_title Temperature'
echo 'graph_args --base 1000 --lower-limit -30 --upper-limit 60'
echo 'graph_vlabel Temperature'
echo 'graph_title Temperature'
echo 'graph_args --base 1000 --lower-limit -30 --upper-limit 60'
echo 'graph_vlabel Temperature'
+ echo 'graph_info Shows the temperature of different thermometers'
else
echo 'graph_title Humidity'
echo 'graph_args --base 1000 --lower-limit 0 --upper-limit 100'
echo 'graph_vlabel Humidity'
else
echo 'graph_title Humidity'
echo 'graph_args --base 1000 --lower-limit 0 --upper-limit 100'
echo 'graph_vlabel Humidity'
+ echo 'graph_info Shows the air humidity of different thermometers (in %)'
fi
echo 'graph_scale no'
echo 'graph_category sensors'
fi
echo 'graph_scale no'
echo 'graph_category sensors'
+
#FIXME: warning/critical values
#FIXME: warning/critical values
+
+ exit 0
fi
\ No newline at end of file
fi
\ No newline at end of file