mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
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…
x
Reference in New Issue
Block a user