1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

Initial version

This commit is contained in:
InboX 2009-08-05 17:38:01 +02:00 committed by Steve Schnepp
parent 9b722622ae
commit 71df51fd2c

23
plugins/other/proftpd Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/perl
#
# By InboX
# Site: www.wolfy.fr
#
if ($ARGV[0] and $ARGV[0] eq "config")
{
print "graph_args --base 1000 -l 0\n";
print "graph_title Serveur FTP\n";
print "graph_category Ftp\n";
print "graph_vlabel Stats Proftpd\n";
print "succes.label Login succes\n";
print "succes.draw AREA\n";
print "failed.label Login failed\n";
print "failed.draw AREA\n";
exit 0;
}
$succes = `cat /var/log/proftpd/proftpd.log | grep -c "successful"`;
$failed = `cat /var/log/proftpd/proftpd.log | grep -c "Login failed"`;
print "succes.value $succes";
print "failed.value $failed";