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:
parent
9b722622ae
commit
71df51fd2c
1 changed files with 23 additions and 0 deletions
23
plugins/other/proftpd
Executable file
23
plugins/other/proftpd
Executable 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";
|
Loading…
Add table
Add a link
Reference in a new issue