mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-19 00:53:19 +00:00
Save with UNIX line breaks
- also remove lots of trailing whitespace on last line
This commit is contained in:
parent
73239efaef
commit
6a28f5a215
2 changed files with 71 additions and 72 deletions
|
@ -4,14 +4,14 @@
|
||||||
# env.LOGFILE /var/log/proftpd/proftpd.log
|
# env.LOGFILE /var/log/proftpd/proftpd.log
|
||||||
|
|
||||||
if [ "$1" = 'config' ]; then
|
if [ "$1" = 'config' ]; then
|
||||||
echo "graph_args --base 1000 -l 0"
|
echo "graph_args --base 1000 -l 0"
|
||||||
echo "graph_title Serveur FTP"
|
echo "graph_title Serveur FTP"
|
||||||
echo "graph_category Ftp"
|
echo "graph_category Ftp"
|
||||||
echo "graph_vlabel Stats Proftpd"
|
echo "graph_vlabel Stats Proftpd"
|
||||||
echo "succes.label Login succes"
|
echo "succes.label Login succes"
|
||||||
echo "succes.draw AREA"
|
echo "succes.draw AREA"
|
||||||
echo "failed.label Login failed"
|
echo "failed.label Login failed"
|
||||||
echo "failed.draw AREA"
|
echo "failed.draw AREA"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LOGFILE=${LOGFILE:-"/var/log/proftpd/proftpd.log"}
|
LOGFILE=${LOGFILE:-"/var/log/proftpd/proftpd.log"}
|
||||||
|
|
|
@ -30,10 +30,10 @@ if [ "$1" = "config" ]; then
|
||||||
echo 'graph_title FTP Server'
|
echo 'graph_title FTP Server'
|
||||||
echo 'graph_args --base 1000 -l 0'
|
echo 'graph_args --base 1000 -l 0'
|
||||||
echo 'graph_vlabel Daily FTP Operations'
|
echo 'graph_vlabel Daily FTP Operations'
|
||||||
echo 'graph_category FTP'
|
echo 'graph_category FTP'
|
||||||
echo 'graph_period second'
|
echo 'graph_period second'
|
||||||
echo 'ftp_put.type GAUGE'
|
echo 'ftp_put.type GAUGE'
|
||||||
echo 'ftp_get.type GAUGE'
|
echo 'ftp_get.type GAUGE'
|
||||||
echo 'ftp_put.label Files PUT'
|
echo 'ftp_put.label Files PUT'
|
||||||
echo 'ftp_get.label Files GET'
|
echo 'ftp_get.label Files GET'
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -44,4 +44,3 @@ echo $(grep "`date '+%Y-%m-%d'`" /var/log/pure-ftpd/transfer.log | grep [[:spac
|
||||||
echo -n
|
echo -n
|
||||||
echo -en "ftp_get.value "
|
echo -en "ftp_get.value "
|
||||||
echo $(grep "`date '+%Y-%m-%d'`" /var/log/pure-ftpd/transfer.log | grep [[:space:]]\\[\\]sent[[:space:]] | wc -l)
|
echo $(grep "`date '+%Y-%m-%d'`" /var/log/pure-ftpd/transfer.log | grep [[:space:]]\\[\\]sent[[:space:]] | wc -l)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue