Last change
on this file since 18795 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 |
|
---|
3 | case $1 in
|
---|
4 | config)
|
---|
5 | cat <<'EOM'
|
---|
6 | graph_args --lower-limit -15 -r
|
---|
7 | graph_title Temperature
|
---|
8 | graph_vlabel temperature
|
---|
9 | graph_category environment
|
---|
10 | container_temp.label container
|
---|
11 | magic_temp.label MAGIC
|
---|
12 | magic_dew.label dew point
|
---|
13 | container_temp.warning 35
|
---|
14 | container_temp.critical 40
|
---|
15 | EOM
|
---|
16 | exit 0;;
|
---|
17 | esac
|
---|
18 |
|
---|
19 |
|
---|
20 | DATA=`curl -s "http://10.0.100.234/statusjsn.js?components=18179&_=1365876572736"`
|
---|
21 |
|
---|
22 | RC=$?
|
---|
23 |
|
---|
24 | if [ "$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 |
|
---|
36 | fi
|
---|
37 |
|
---|
38 |
|
---|
39 | VAL2=`wget -q -O- http://www.magic.iac.es/site/weather/weather_data.txt | grep TE | cut -c3-`
|
---|
40 |
|
---|
41 | RC=$?
|
---|
42 |
|
---|
43 | if [ "$RC" == "0" ] ; then
|
---|
44 |
|
---|
45 | echo magic_temp.value $VAL2
|
---|
46 |
|
---|
47 | fi
|
---|
48 |
|
---|
49 |
|
---|
50 | VAL3=`wget -q -O- http://www.magic.iac.es/site/weather/weather_data.txt | grep DP | cut -c3-`
|
---|
51 |
|
---|
52 | RC=$?
|
---|
53 |
|
---|
54 | if [ "$RC" == "0" ] ; then
|
---|
55 |
|
---|
56 | echo magic_dew.value $VAL3
|
---|
57 |
|
---|
58 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.