source: trunk/FACT++/munin/container_temp@ 17812

Last change on this file since 17812 was 17608, checked in by tbretz, 11 years ago
Updated warning levels, set lower limit of graph to -15deg
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/bash
2
3case $1 in
4 config)
5 cat <<'EOM'
6graph_args --lower-limit -15 -r
7graph_title Temperature
8graph_vlabel temperature
9graph_category environment
10container_temp.label container
11magic_temp.label MAGIC
12magic_dew.label dew point
13container_temp.warning 35
14container_temp.critical 40
15EOM
16 exit 0;;
17esac
18
19
20DATA=`curl -s "http://10.0.100.234/statusjsn.js?components=18179&_=1365876572736"`
21
22RC=$?
23
24if [ "$RC" == "0" ] ; then
25
26 . /etc/munin/plugins/ticktick.sh
27
28 tickParse "$DATA"
29
30 VAL1=``sensor_values[0].values[0][0].v``
31 MIN1=``sensor_values[0].values[0][0].st[0]``
32 MAX1=``sensor_values[0].values[0][0].st[1]``
33
34 echo container_temp.value $VAL1
35
36fi
37
38
39VAL2=`wget -q -O- http://www.magic.iac.es/site/weather/weather_data.txt | grep TE | cut -c3-`
40
41RC=$?
42
43if [ "$RC" == "0" ] ; then
44
45 echo magic_temp.value $VAL2
46
47fi
48
49
50VAL3=`wget -q -O- http://www.magic.iac.es/site/weather/weather_data.txt | grep DP | cut -c3-`
51
52RC=$?
53
54if [ "$RC" == "0" ] ; then
55
56 echo magic_dew.value $VAL3
57
58fi
Note: See TracBrowser for help on using the repository browser.