This commit is contained in:
José González 2022-10-11 11:12:02 +02:00
parent c6ce58d5f9
commit c726904ec1
1 changed files with 1 additions and 1 deletions

View File

@ -7222,7 +7222,7 @@ sub pandora_snmptrapd_still_working ($$) {
logger($pa_config, 'lastTimestampSaved: '.$lastTimestampSaved); logger($pa_config, 'lastTimestampSaved: '.$lastTimestampSaved);
logger($pa_config, 'lastTimestampLogFile: '.$lastTimestampLogFile); logger($pa_config, 'lastTimestampLogFile: '.$lastTimestampLogFile);
if ($lastTimestampSaved ne $lastTimestampLogFile && $lastTimestampSaved ge ($lastTimestampLogFile + $timeMaxLapse)) { if ($lastTimestampSaved ne $lastTimestampLogFile && $lastTimestampSaved ge ($lastTimestampLogFile + $timeMaxLapse)) {
my $lapseMessage = "snmptrapd service probably is stuck. Please check the status." my $lapseMessage = "snmptrapd service probably is stuck.";
logger($pa_config, $lapseMessage, 1); logger($pa_config, $lapseMessage, 1);
pandora_event ($pa_config, $lapseMessage, 0, 0, 4, 0, 0, 'system', 0, $dbh); pandora_event ($pa_config, $lapseMessage, 0, 0, 4, 0, 0, 'system', 0, $dbh);
} }