add cascade protection services in server
This commit is contained in:
parent
85897315cd
commit
8ae27da3b7
|
@ -344,12 +344,21 @@ sub pandora_generate_alerts ($$$$$$$$;$$$) {
|
||||||
|
|
||||||
if ($agent->{'quiet'} == 1) {
|
if ($agent->{'quiet'} == 1) {
|
||||||
logger($pa_config, "Generate Alert. The agent '" . $agent->{'nombre'} . "' is in quiet mode.", 10);
|
logger($pa_config, "Generate Alert. The agent '" . $agent->{'nombre'} . "' is in quiet mode.", 10);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($module->{'quiet'} == 1) {
|
if ($module->{'quiet'} == 1) {
|
||||||
logger($pa_config, "Generate Alert. The module '" . $module->{'nombre'} . "' is in quiet mode.", 10);
|
logger($pa_config, "Generate Alert. The module '" . $module->{'nombre'} . "' is in quiet mode.", 10);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($agent->{'cps'} > 0) {
|
||||||
|
logger($pa_config, "Generate Alert. The agent '" . $agent->{'nombre'} . "' is in quiet mode by cascade protection services.", 10);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($module->{'cps'} > 0) {
|
||||||
|
logger($pa_config, "Generate Alert. The module '" . $module->{'nombre'} . "' is in quiet mode by cascade protection services.", 10);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3131,6 +3140,11 @@ sub pandora_event ($$$$$$$$$$;$$$$$$$$$) {
|
||||||
logger($pa_config, "Generate Event. The agent '" . $agent->{'nombre'} . "' is in quiet mode.", 10);
|
logger($pa_config, "Generate Event. The agent '" . $agent->{'nombre'} . "' is in quiet mode.", 10);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defined ($agent) && $agent->{'cps'} > 0) {
|
||||||
|
logger($pa_config, "Generate Event. The agent '" . $agent->{'nombre'} . "' is in quiet mode by cascade protection services.", 10);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $module = undef;
|
my $module = undef;
|
||||||
|
@ -3140,6 +3154,11 @@ sub pandora_event ($$$$$$$$$$;$$$$$$$$$) {
|
||||||
logger($pa_config, "Generate Event. The module '" . $module->{'nombre'} . "' is in quiet mode.", 10);
|
logger($pa_config, "Generate Event. The module '" . $module->{'nombre'} . "' is in quiet mode.", 10);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defined ($module) && $module->{'cps'} > 0) {
|
||||||
|
logger($pa_config, "Generate Event. The module '" . $module->{'nombre'} . "' is in quiet mode by cascade protection services.", 10);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get module tags
|
# Get module tags
|
||||||
|
|
Loading…
Reference in New Issue