1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Save with UNIX line breaks

- also remove lots of trailing whitespace on last line
This commit is contained in:
Stig Sandbeck Mathisen 2014-10-04 21:16:42 +02:00
parent 73239efaef
commit 6a28f5a215
2 changed files with 71 additions and 72 deletions

View file

@ -4,14 +4,14 @@
# env.LOGFILE /var/log/proftpd/proftpd.log
if [ "$1" = 'config' ]; then
echo "graph_args --base 1000 -l 0"
echo "graph_title Serveur FTP"
echo "graph_category Ftp"
echo "graph_vlabel Stats Proftpd"
echo "succes.label Login succes"
echo "succes.draw AREA"
echo "failed.label Login failed"
echo "failed.draw AREA"
echo "graph_args --base 1000 -l 0"
echo "graph_title Serveur FTP"
echo "graph_category Ftp"
echo "graph_vlabel Stats Proftpd"
echo "succes.label Login succes"
echo "succes.draw AREA"
echo "failed.label Login failed"
echo "failed.draw AREA"
fi
LOGFILE=${LOGFILE:-"/var/log/proftpd/proftpd.log"}

View file

@ -30,10 +30,10 @@ if [ "$1" = "config" ]; then
echo 'graph_title FTP Server'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel Daily FTP Operations'
echo 'graph_category FTP'
echo 'graph_period second'
echo 'ftp_put.type GAUGE'
echo 'ftp_get.type GAUGE'
echo 'graph_category FTP'
echo 'graph_period second'
echo 'ftp_put.type GAUGE'
echo 'ftp_get.type GAUGE'
echo 'ftp_put.label Files PUT'
echo 'ftp_get.label Files GET'
exit 0
@ -44,4 +44,3 @@ echo $(grep "`date '+%Y-%m-%d'`" /var/log/pure-ftpd/transfer.log | grep [[:spac
echo -n
echo -en "ftp_get.value "
echo $(grep "`date '+%Y-%m-%d'`" /var/log/pure-ftpd/transfer.log | grep [[:space:]]\\[\\]sent[[:space:]] | wc -l)