The 'serv' graph now uses 'secure_log' log file to get FTP login statistics.

This commit is contained in:
Jordi Sanfeliu 2013-02-27 09:44:09 +01:00
parent 8818b421a4
commit 5fb636dcb5
2 changed files with 7 additions and 7 deletions

View File

@ -236,10 +236,10 @@ sub serv_update {
close(IN);
}
if(-r $config->{ftp_log}) {
$config->{ftp_log_date_format} = $config->{ftp_log_date_format} || "%b %e";
my $date = strftime($config->{ftp_log_date_format}, localtime);
open(IN, "$config->{ftp_log}");
if(-r $config->{secure_log}) {
$config->{secure_log_date_format} = $config->{secure_log_date_format} || "%b %e";
my $date = strftime($config->{secure_log_date_format}, localtime);
open(IN, "$config->{secure_log}");
while(<IN>) {
if(/$date/) {
# ProFTPD log

View File

@ -35,7 +35,7 @@ milter_gl = /var/milter-greylist/greylist.db
imap_log = /var/log/imap
hylafax_log = /var/spool/hylafax/etc/xferfaxlog
cups_log = /var/log/cups/page_log
ftp_log = /var/log/vsftpd.log
ftp_log = /var/log/proftpd/access_log
fail2ban_log = /var/log/fail2ban.log
spamassassin_log = /var/log/maillog
clamav_log = /var/log/clamav/clamav.log
@ -43,7 +43,7 @@ cg_logdir = /var/CommuniGate/SystemLogs/
squid_log = /var/log/squid/access.log
imap_log_date_format = %b %d
ftp_log_date_format = %b %e
secure_log_date_format = %b %e
# Graphs (de)activation
@ -580,7 +580,7 @@ graph_name = system, kern, proc, hptemp, lmsens, nvidia, disk, fs, net, serv, ma
_user1 = Users logged in
_user2 = Samba users
_user3 = Netatalk users
_ftp1 = Commands usage
_ftp1 = Command usage
_ftp2 = New sessions
_ftp3 = FTP traffic
_apache1 = Apache workers