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

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