mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
sequoia_websens: encode as UTF-8 and whitespace cleanup
This commit is contained in:
parent
d5b6a600ac
commit
96418fa574
@ -15,14 +15,14 @@
|
||||
#
|
||||
# If your environment has a average temperature which differs from the default
|
||||
# waring and critical value than feel free to configure the warning and critical value
|
||||
#
|
||||
#
|
||||
#
|
||||
# Author
|
||||
# Mohammad Ali
|
||||
#
|
||||
# Version 1.0
|
||||
# March 19, 2010
|
||||
# 01:17:14 PM
|
||||
# 01:17:14 PM
|
||||
#
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
@ -39,7 +39,7 @@ if [ "$1" = "config" ]; then
|
||||
echo "graph_category sensor"
|
||||
echo "graph_args -l 0 -u 100 -r"
|
||||
echo "graph.scale no"
|
||||
echo "graph_vlabel % and C°"
|
||||
echo "graph_vlabel % and C°"
|
||||
echo "tempsens.label Temperature"
|
||||
echo "humsens.label Humidity"
|
||||
echo "tempsens.warning 19:24"
|
||||
@ -47,7 +47,7 @@ if [ "$1" = "config" ]; then
|
||||
echo "tempsens.critical 18:25"
|
||||
echo "humsens.critical :60"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# HTTP GET REQUEST to retrieve the data from the WebSensor
|
||||
WEBSENS_DATA_FULL=$(printf "GET $host/index.html?em345678 HTTP/1.0 \n\n" | nc $host $port )
|
||||
@ -61,4 +61,4 @@ WEBSENS_HUM=$(echo "$WEBSENS_DATA" | cut -d ' ' -f11 | cut -d ':' -f2 | cut -d '
|
||||
|
||||
# Sending custom formatted data to munin to create the graphs
|
||||
echo "tempsens.value $WEBSENS_TEMP"
|
||||
echo "humsens.value $WEBSENS_HUM"
|
||||
echo "humsens.value $WEBSENS_HUM"
|
||||
|
Loading…
Reference in New Issue
Block a user