summaryrefslogtreecommitdiff
path: root/examples/Munin/cleware-munin.sh
blob: 13caae2cad99c103b002c803317fdf636b906d02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

# written by lars falk-petersen, dev@falk-petersen.no

#clewarecontrol device id (this should be moved to separate config file)
ID=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 $ID -b -rt

echo -n "hum.value "
clewarecontrol -d $ID -b -rh