mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +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
|
FROM tagente_estado
|
||||||
WHERE id_agente_modulo = ?', $agent_module_id);
|
WHERE id_agente_modulo = ?', $agent_module_id);
|
||||||
|
|
||||||
|
return 'N/A' unless defined($status);
|
||||||
return 'Normal' if ($status == 0);
|
return 'Normal' if ($status == 0);
|
||||||
return 'Critical' if ($status == 1);
|
return 'Critical' if ($status == 1);
|
||||||
return 'Warning' if ($status == 2);
|
return 'Warning' if ($status == 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user