mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
delete oldest netflow current files
This commit is contained in:
parent
a31f96314f
commit
41b5cb3aa3
@ -1493,4 +1493,8 @@ if (defined($history_dbh)) {
|
|||||||
db_disconnect ($history_dbh) if defined ($history_dbh);
|
db_disconnect ($history_dbh) if defined ($history_dbh);
|
||||||
db_disconnect ($dbh);
|
db_disconnect ($dbh);
|
||||||
|
|
||||||
|
# Delete netflow's .current junk files.
|
||||||
|
my $command = 'ls -t /var/spool/pandora/data_in/netflow/*.current* | head -n -1 | xargs rm -f';
|
||||||
|
system($command) == 0 or die " [ERROR] Failed to clean .current junk files: $!\n";
|
||||||
|
|
||||||
exit 0;
|
exit 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user