1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -30,7 +30,7 @@ graph_vlabel=${title}
case $1 in
config)
cat <<EOF
graph_category loadbalancer
graph_category loadbalancer
graph_args --base 1000
graph_title ${graph_title}
graph_vlabel ${graph_vlabel}

View file

@ -76,7 +76,7 @@ graph_title="${title} sessions by servers"
graph_vlabel=${title}
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi

View file

@ -50,9 +50,9 @@ function parse_url {
if [ ! -z "$socket" ]; then
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$backend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -112,5 +112,5 @@ fi
echo "cli_abrt`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $CLI"
echo "srv_abrt`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $SRV"
done

View file

@ -74,7 +74,7 @@ SVNAME='BACKEND'
LIST=$backend
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -100,4 +100,4 @@ fi
ACT=`parse_url ${i} ${SVNAME} act`
echo "act`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $ACT"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -75,7 +75,7 @@ LIST=$backend
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -110,5 +110,5 @@ fi
BOUT=`parse_url ${i} ${SVNAME} bout`
echo "down`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $BOUT"
echo "up`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $BIN"
done
done

View file

@ -50,9 +50,9 @@ function parse_url {
if [ ! -z "$socket" ]; then
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$backend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -119,5 +119,5 @@ fi
echo "comp_out`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $OUT"
echo "comp_byp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $BY"
done

View file

@ -50,9 +50,9 @@ function parse_url {
if [ ! -z "$socket" ]; then
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$frontend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -119,5 +119,5 @@ fi
echo "comp_out`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $OUT"
echo "comp_byp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $BY"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -75,7 +75,7 @@ LIST=$frontend
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -110,5 +110,5 @@ fi
BOUT=`parse_url ${i} ${SVNAME} bout`
echo "down`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $BOUT"
echo "up`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $BIN"
done
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$backend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -111,5 +111,5 @@ fi
echo "dreq`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $DREQ"
echo "dresp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $DRESP"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$frontend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -111,5 +111,5 @@ fi
echo "dreq`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $DREQ"
echo "dresp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $DRESP"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$backend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -119,5 +119,5 @@ fi
echo "econ`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $ECON"
echo "eresp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $ERESP"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$frontend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -119,5 +119,5 @@ fi
#echo "econ`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $ECON"
#echo "eresp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $ERESP"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -78,7 +78,7 @@ WARN_PERCENT="80"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -102,7 +102,7 @@ if [ "$1" = "config" ]; then
#echo "qmax`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.type GAUGE"
#echo "qmax`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.min 0"
#echo "qmax`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.info Max queued request $i"
echo "qlim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.label Limit request `echo $i | awk -F. '{print $NF}'`"
echo "qlim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.type GAUGE"
echo "qlim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.min 0"
@ -129,5 +129,5 @@ fi
echo "qlim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $QLIM"
#echo "qmax`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $QMAX"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST=$backend
WARN_PERCENT="80"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -128,5 +128,5 @@ fi
echo "rate_lim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $RATEL"
#echo "rate_max`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $RATEM"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -77,7 +77,7 @@ WARN_PERCENT="80"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -128,5 +128,5 @@ fi
echo "rate_lim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $RATEL"
#echo "rate_max`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $RATEM"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$frontend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -112,5 +112,5 @@ fi
echo "reqrt`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $REQRT"
#echo "reqtm`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $REQRTM"
done

View file

@ -50,9 +50,9 @@ function parse_url {
if [ ! -z "$socket" ]; then
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$backend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -105,5 +105,5 @@ fi
echo "comp_rsp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $RSP"
done

View file

@ -50,9 +50,9 @@ function parse_url {
if [ ! -z "$socket" ]; then
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$frontend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -105,5 +105,5 @@ fi
echo "comp_rsp`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $RSP"
done

View file

@ -75,7 +75,7 @@ SVNAME='BACKEND'
LIST=$backend
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -138,4 +138,4 @@ fi
echo "hrsp_5xx`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $H5xx"
echo "hrsp_other`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $Hoxx"
done

View file

@ -75,7 +75,7 @@ SVNAME='FRONTEND'
LIST=$frontend
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -138,4 +138,4 @@ fi
echo "hrsp_5xx`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $H5xx"
echo "hrsp_other`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $Hother"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -77,7 +77,7 @@ WARN_PERCENT="80"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -127,5 +127,5 @@ fi
#echo "smax`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $SMAX"
echo "slim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $SLIM"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -77,7 +77,7 @@ WARN_PERCENT="80"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -127,5 +127,5 @@ fi
#echo "smax`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $SMAX"
echo "slim`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $SLIM"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST=$backend
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -105,5 +105,5 @@ fi
echo "stot`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $STOT"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -77,7 +77,7 @@ LIST=$frontend
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -106,5 +106,5 @@ fi
echo "stot`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $STOT"
done

View file

@ -42,7 +42,7 @@ function parse_url {
PXNAME="$1"
SVNAME="$2"
VALUE="$3"
if [ ! -z "$url" ]; then
LINE1=`curl -s "$url" | head -1 | sed 's/# //'`
LINE2=`curl -s "$url" | grep "$PXNAME,$SVNAME"`
@ -52,7 +52,7 @@ function parse_url {
LINE1=`echo 'show stat' | socat unix-connect:"$socket" stdio | head -1 | sed 's/# //'`
LINE2=`echo 'show stat' | socat unix-connect:"$socket" stdio | grep "$PXNAME,$SVNAME"`
fi
ARRAY1=($LINE1);
# Find values
@ -76,7 +76,7 @@ LIST="$backend"
if [ "$1" = "autoconf" ]; then
echo yes
echo yes
exit 0
fi
@ -112,5 +112,5 @@ fi
echo "wretr`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $WRETR"
echo "wredis`echo $i | md5sum | cut -d - -f1 | sed 's/ //g'`.value $WREDIS"
done