2014-05-05 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_agents.php include/functions_networkmap.php: Fixed not init agent state in networkmap. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9855 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
a9a2fa411e
commit
5de50fd730
|
@ -1,3 +1,9 @@
|
|||
2014-05-05 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_agents.php
|
||||
include/functions_networkmap.php: Fixed not init agent state
|
||||
in networkmap.
|
||||
|
||||
2014-05-05 Vanessa Gil <vanessa.gil@artica.es>
|
||||
|
||||
* operation/agentes/estado_generalagente.php: Add incident view
|
||||
|
|
|
@ -1484,7 +1484,11 @@ function agents_get_status_from_counts($agent) {
|
|||
!isset($agent['total_count'])) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
# Juanma (05/05/2014) Fix: This status is not init! 0 modules or all not init
|
||||
if ($agent['notinit_count'] == $agent['total_count']) {
|
||||
return AGENT_MODULE_STATUS_NOT_INIT;
|
||||
}
|
||||
if ($agent['critical_count'] > 0) {
|
||||
return AGENT_MODULE_STATUS_CRITICAL_BAD;
|
||||
}
|
||||
|
|
|
@ -922,6 +922,10 @@ function networkmap_create_agent_node ($agent, $simple = 0, $font_size = 10, $cu
|
|||
case AGENT_STATUS_ALERT_FIRED:
|
||||
$status_color = COL_ALERTFIRED;
|
||||
break;
|
||||
# Juanma (05/05/2014) Fix: Correct color for not init agents!
|
||||
case AGENT_STATUS_NOT_INIT:
|
||||
$status_color = COL_NOTINIT;
|
||||
break;
|
||||
default:
|
||||
//Unknown monitor
|
||||
$status_color = COL_UNKNOWN;
|
||||
|
|
Loading…
Reference in New Issue