mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2014-08-05 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/Core.pm: Suppress "going to normal (warning, critical)" events from "unknown" status, if you disable "Throw unknown events" at the Console. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10380 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
dd712435c6
commit
6ab46fe635
@ -1,3 +1,9 @@
|
|||||||
|
2014-08-05 Hirofumi Kosaka <kosaka@rworks.jp>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/Core.pm: Suppress "going to normal (warning,
|
||||||
|
critical)" events from "unknown" status, if you disable "Throw
|
||||||
|
unknown events" at the Console.
|
||||||
|
|
||||||
2014-08-05 Hirofumi Kosaka <kosaka@rworks.jp>
|
2014-08-05 Hirofumi Kosaka <kosaka@rworks.jp>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Fixed that unknown modules would be
|
* lib/PandoraFMS/Core.pm: Fixed that unknown modules would be
|
||||||
|
@ -3436,6 +3436,19 @@ sub generate_status_event ($$$$$$$$) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# disable event just recovering from 'Unknown' without status change
|
||||||
|
if($last_status == 3 && $status == $last_known_status && $module->{'disabled_types_event'} ) {
|
||||||
|
my $disabled_types_event;
|
||||||
|
eval {
|
||||||
|
local $SIG{__DIE__};
|
||||||
|
$disabled_types_event = decode_json($module->{'disabled_types_event'});
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($disabled_types_event->{'going_unknown'}) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Mark as "validated" any previous event for this module
|
# Mark as "validated" any previous event for this module
|
||||||
pandora_validate_event ($pa_config, $module->{'id_agente_modulo'}, $dbh);
|
pandora_validate_event ($pa_config, $module->{'id_agente_modulo'}, $dbh);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user