1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-08-06 14:15:05 +00:00
Munin-Contrib/plugins/proftpd/proftpd
dipohl c3e309c6a5 Category Tree: Reduce number of categories
power5 -> cpu
directories for different ftp servers
2017-02-22 20:37:27 +01:00

25 lines
617 B
Bash
Executable file

#! /bin/sh
# configuration :
#
# 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"
fi
LOGFILE=${LOGFILE:-"/var/log/proftpd/proftpd.log"}
succes=$(grep -c "successful" "$LOGFILE" )
failed=$(grep -c "Login failed" "$LOGFILE" )
echo "succes.value $succes"
echo "failed.value $failed"
exit 0