mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 02:48:28 +00:00
sequoia_websens: encode as UTF-8 and whitespace cleanup
This commit is contained in:
parent
d5b6a600ac
commit
96418fa574
1 changed files with 5 additions and 5 deletions
|
@ -15,14 +15,14 @@
|
||||||
#
|
#
|
||||||
# If your environment has a average temperature which differs from the default
|
# 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
|
# waring and critical value than feel free to configure the warning and critical value
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author
|
# Author
|
||||||
# Mohammad Ali
|
# Mohammad Ali
|
||||||
#
|
#
|
||||||
# Version 1.0
|
# Version 1.0
|
||||||
# March 19, 2010
|
# March 19, 2010
|
||||||
# 01:17:14 PM
|
# 01:17:14 PM
|
||||||
#
|
#
|
||||||
#%# family=auto
|
#%# family=auto
|
||||||
#%# capabilities=autoconf
|
#%# capabilities=autoconf
|
||||||
|
@ -39,7 +39,7 @@ if [ "$1" = "config" ]; then
|
||||||
echo "graph_category sensor"
|
echo "graph_category sensor"
|
||||||
echo "graph_args -l 0 -u 100 -r"
|
echo "graph_args -l 0 -u 100 -r"
|
||||||
echo "graph.scale no"
|
echo "graph.scale no"
|
||||||
echo "graph_vlabel % and C°"
|
echo "graph_vlabel % and C°"
|
||||||
echo "tempsens.label Temperature"
|
echo "tempsens.label Temperature"
|
||||||
echo "humsens.label Humidity"
|
echo "humsens.label Humidity"
|
||||||
echo "tempsens.warning 19:24"
|
echo "tempsens.warning 19:24"
|
||||||
|
@ -47,7 +47,7 @@ if [ "$1" = "config" ]; then
|
||||||
echo "tempsens.critical 18:25"
|
echo "tempsens.critical 18:25"
|
||||||
echo "humsens.critical :60"
|
echo "humsens.critical :60"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# HTTP GET REQUEST to retrieve the data from the WebSensor
|
# 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 )
|
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
|
# Sending custom formatted data to munin to create the graphs
|
||||||
echo "tempsens.value $WEBSENS_TEMP"
|
echo "tempsens.value $WEBSENS_TEMP"
|
||||||
echo "humsens.value $WEBSENS_HUM"
|
echo "humsens.value $WEBSENS_HUM"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue