1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 22:25:23 +00:00
Munin-Contrib/plugins/ftp/proftpd
Elie Deloumeau 60fe9ba9ea Convert perl script to bash
For a better compatibility
2014-07-30 09:51:24 +02:00

18 lines
502 B
Bash
Executable file

#!/bin/bash
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
succes=`cat /var/log/proftpd/proftpd.log | grep -c "successful"`
failed=`cat /var/log/proftpd/proftpd.log | grep -c "Login failed"`
echo "succes.value $succes"
echo "failed.value $failed"