Changeset 17603 for trunk/FACT++/munin/container_temp
- Timestamp:
- 03/08/14 18:56:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/munin/container_temp
r16760 r17603 4 4 config) 5 5 cat <<'EOM' 6 graph_title Container temperature6 graph_title Temperature 7 7 graph_vlabel temperature 8 8 graph_category environment 9 container_temp.label temperature 9 container_temp.label container 10 magic_temp.label MAGIC 10 11 container_temp.warning 40 11 12 container_temp.critical 45 13 container_temp.min 0 14 magic_temp.min 0 12 15 EOM 13 16 exit 0;; 14 17 esac 15 18 16 . /etc/munin/plugins/ticktick.sh17 19 18 20 DATA=`curl -s "http://10.0.100.234/statusjsn.js?components=18179&_=1365876572736"` … … 20 22 RC=$? 21 23 22 if [ "$RC" != "0" ] ; then 23 echo Could not fetch container temperature: curl returned $RC >&2 24 exit -1 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 25 36 fi 26 37 27 38 28 tickParse "$DATA" 39 VAL2=`wget -q -O- http://www.magic.iac.es/site/weather/weather_data.txt | grep TE | cut -c3-` 29 40 30 VAL=``sensor_values[0].values[0][0].v`` 31 MIN=``sensor_values[0].values[0][0].st[0]`` 32 MAX=``sensor_values[0].values[0][0].st[1]`` 41 RC=$? 33 42 34 echo container_temp.value $VAL 43 if [ "$RC" == "0" ] ; then 44 45 echo magic_temp.value $VAL2 46 47 fi
Note:
See TracChangeset
for help on using the changeset viewer.