Merge branch 'ent-8666-error-repetitivo-en-el-pandora_server-error-llena-el-log' into 'develop'
errata fix0 See merge request artica/pandorafms!4730
This commit is contained in:
commit
991893fa8f
|
@ -552,7 +552,7 @@ sub pandora_evaluate_alert ($$$$$$$;$$$$) {
|
|||
}
|
||||
|
||||
my $schedule;
|
||||
if (defined($alert->{'schedule'} && $alert->{'schedule'} != '')) {
|
||||
if (defined($alert->{'schedule'}) && $alert->{'schedule'} ne '') {
|
||||
$schedule = PandoraFMS::Tools::p_decode_json($pa_config, $alert->{'schedule'});
|
||||
}
|
||||
|
||||
|
|
|
@ -555,6 +555,7 @@ sub get_agentmodule_status_str($$$) {
|
|||
FROM tagente_estado
|
||||
WHERE id_agente_modulo = ?', $agent_module_id);
|
||||
|
||||
return 'N/A' unless defined($status);
|
||||
return 'Normal' if ($status == 0);
|
||||
return 'Critical' if ($status == 1);
|
||||
return 'Warning' if ($status == 2);
|
||||
|
|
Loading…
Reference in New Issue