mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
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…
x
Reference in New Issue
Block a user