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:
juanmanuelr 2014-05-05 09:21:43 +00:00
parent 548f588955
commit 3d75159075
3 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -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;
}

View File

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