From 52a6d10bfe9a2000f1edb8299be5e0e30a264fc4 Mon Sep 17 00:00:00 2001 From: lars falk-petersen Date: Wed, 17 Mar 2010 11:48:24 +0100 Subject: [PATCH] Initial version --- plugins/other/cleware | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 plugins/other/cleware diff --git a/plugins/other/cleware b/plugins/other/cleware new file mode 100755 index 00000000..f5a482ca --- /dev/null +++ b/plugins/other/cleware @@ -0,0 +1,33 @@ +#!/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 +