Projet

Général

Profil

Révision 52a6d10b

ID52a6d10bfe9a2000f1edb8299be5e0e30a264fc4
Parent 0dca7e09
Enfant 5d09d494

Ajouté par lars falk-petersen il y a presque 14 ans

Initial version

Voir les différences:

plugins/other/cleware
1
#!/bin/bash
2

  
3
# written by lars falk-petersen, dev@falk-petersen.no
4
# clewarecontrol device serial must be set in config file:
5
#
6
#  #munin/plugin-conf.d/cleware
7
#  [cleware]
8
#  #device serial. find it by running: clewarecontrol -l
9
#  env.serial 7778
10

  
11
case $1 in
12
   config)
13
        cat <<'EOM'
14
graph_title Temperature And Humidity
15
graph_vlabel C / %
16
graph_category sensors
17
temp.label Temperature
18
hum.label Humidity
19
graph_order temp hum
20
graph_args --base 1000
21

  
22
EOM
23
        exit 0;;
24
esac
25

  
26
clewarecontrol -ag > /dev/null 2>&1
27

  
28
echo -n "temp.value "
29
clewarecontrol -d $serial -b -rt
30

  
31
echo -n "hum.value "
32
clewarecontrol -d $serial -b -rh
33

  

Formats disponibles : Unified diff