agentmodule status str is N/A If is not defined
This commit is contained in:
parent
9c3a6665eb
commit
690de69aea
|
@ -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