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:
Daniel Rodriguez 2022-03-02 12:39:51 +00:00
commit 991893fa8f
2 changed files with 2 additions and 1 deletions

View File

@ -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'});
}

View File

@ -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);