agentmodule status str is N/A If is not defined

This commit is contained in:
fbsanchez 2022-03-02 12:20:47 +01:00
parent 9c3a6665eb
commit 690de69aea
1 changed files with 1 additions and 0 deletions

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