1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51: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

@ -31,12 +31,12 @@
#env.sitename mon-code
#env.nbrpage 10
#
LOG=${logfile:-/var/log/apache2/access.log}
NAME=${sitename:undefined}
NBRPAGE=${nbrpage}
if [ "$1" = "autoconf" ]; then
if [ -r "$LOG" ]; then
echo yes
@ -46,13 +46,13 @@ if [ "$1" = "autoconf" ]; then
exit 1
fi
fi
if [ "$1" = "config" ]; then
echo 'graph_title Time to generate PHP page ' $NAME 'v2'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel Time in microsecond'
echo "graph_category webserver"
echo "graph_info This graph shows load time in ms of $target"
echo "minloadtime.label Min time"
@ -61,9 +61,9 @@ if [ "$1" = "config" ]; then
echo "avgloadtime.info Avg time"
echo "maxloadtime.label Max time"
echo "maxloadtime.info Max time"
exit 0
fi
awk '($4 ~ /[0-9]+\/[0-9]+/ && $8 !~ /\.(jpg|JPG|jpeg|JPEG|gif|GIF|png|PNG|txt|TXT|css|CSS|js|JS|zip|ZIP|bmp|BMP)$/)' $LOG | sed -e :a -e '$q;N;'$NBRPAGE',$D;ba' | awk '{print $4}' | awk -F\/ ' MIN=="" || $2 < MIN {MIN=$2} MAX=="" || $2 > MAX {MAX=$2} {SUM += $2} END {print "minloadtime.value ",MIN/1000,"\navgloadtime.value ",SUM/(NR*1000),"\nmaxloadtime.value ",MAX/1000}'