From b3cac09d0cf77e3e6854acf67cef9bd5c1e6efec Mon Sep 17 00:00:00 2001 From: "jose.gonzalez@pandorafms.com" Date: Thu, 3 Nov 2022 14:25:05 +0100 Subject: [PATCH] Mistake solved --- pandora_server/lib/PandoraFMS/Core.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 4823ba39bf..676efb8158 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -127,7 +127,7 @@ use Text::ParseWords; use Math::Trig; # Math functions # Debugging -#use Data::Dumper; +use Data::Dumper; # Force XML::Simple to use XML::Parser instead SAX to manage XML # due a bug processing some XML with blank spaces. @@ -7221,7 +7221,7 @@ sub pandora_snmptrapd_still_working ($$) { my ($hour, $min, $sec) = split(/:/, $time, 3); my ($year, $month, $day) = split(/-/, $date, 3); my $lastTimestampLogFile = timelocal($sec,$min,$hour,$day,$month-1,$year); - if ($lastTimestampSaved ne $lastTimestampLogFile && $lastTimestampSaved gt ($lastTimestampLogFile + $timeMaxLapse)) { + if ($lastTimestampSaved ne $lastTimestampLogFile && $lastTimestampLogFile gt ($lastTimestampSaved + $timeMaxLapse)) { my $lapseMessage = "snmptrapd service probably is stuck."; logger($pa_config, $lapseMessage, 1); pandora_event ($pa_config, $lapseMessage, 0, 0, 4, 0, 0, 'system', 0, $dbh);