This commit is contained in:
jose.gonzalez@pandorafms.com 2022-11-02 15:41:05 +01:00
parent 1d04f777e2
commit eb2d4e5de7
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,9 @@ use Encode;
use Encode::CN;
use XML::Simple;
use HTML::Entities;
use Tie::File;
use Time::Local;
use Time::Piece;
use Time::HiRes qw(time);
eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i);
use POSIX qw(strftime);
@ -7211,8 +7213,6 @@ sub pandora_snmptrapd_still_working ($$) {
ORDER BY timestamp DESC
LIMIT 1');
# Read the last log file line.
use Tie::File;
use Time::Piece;
my $snmptrapdFile = $pa_config->{'snmp_logfile'};
tie my @snmptrapdFileComplete, 'Tie::File', $snmptrapdFile;
my $lastTimestampLogFile = $snmptrapdFileComplete[-1];