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