2
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/other/cleware
lars falk-petersen 52a6d10bfe Initial version
2011-12-18 15:10:20 +01:00

33 lines
633 B
Bash
Executable file

#!/bin/bash
# written by lars falk-petersen, dev@falk-petersen.no
# clewarecontrol device serial must be set in config file:
#
# #munin/plugin-conf.d/cleware
# [cleware]
# #device serial. find it by running: clewarecontrol -l
# env.serial 7778
case $1 in
config)
cat <<'EOM'
graph_title Temperature And Humidity
graph_vlabel C / %
graph_category sensors
temp.label Temperature
hum.label Humidity
graph_order temp hum
graph_args --base 1000
EOM
exit 0;;
esac
clewarecontrol -ag > /dev/null 2>&1
echo -n "temp.value "
clewarecontrol -d $serial -b -rt
echo -n "hum.value "
clewarecontrol -d $serial -b -rh