diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php
index d2e9b6eba6..a44e577674 100644
--- a/pandora_console/godmode/agentes/configurar_agente.php
+++ b/pandora_console/godmode/agentes/configurar_agente.php
@@ -467,7 +467,8 @@ if (give_acl($id_user, 0, "AW")==1) {
$modulo_min = "";// Pandora 1.2 new module data:
$tcp_send = "";$tcp_rcv = "";$tcp_port = "";$ip_target = "";
$snmp_oid = "";$snmp_community = "";$id_module_group = "";
- $module_interval = "";
+ $module_interval = ""; $modulo_nombre = ""; $modulo_descripcion = "";
+ $update_module = 0;
}
// =========================================================
// OID Refresh button to get SNMPWALK from data in form
diff --git a/pandora_console/operation/agentes/estado_grupo.php b/pandora_console/operation/agentes/estado_grupo.php
index 563661be4b..c545c08033 100644
--- a/pandora_console/operation/agentes/estado_grupo.php
+++ b/pandora_console/operation/agentes/estado_grupo.php
@@ -34,6 +34,7 @@ if (comprueba_login() == 0)
$grupo[$array_index]["ok"]=0;
$grupo[$array_index]["down"]=0;
$grupo[$array_index]["bad"]=0;
+ $grupo[$array_index]["alerts"]=0;
$grupo[$array_index]["data"]=0;
$grupo[$array_index]["icon"]=dame_grupo_icono($migrupo);
$grupo[$array_index]["id_grupo"]=$migrupo;
@@ -57,6 +58,10 @@ if (comprueba_login() == 0)
$estado_grupo_down++;
$down=1;
}
+ // Check for recent alerts
+ if (check_alert_fired($id_agente) == 1){
+ $grupo[$array_index]["alerts"]++;
+ }
$grupo[$array_index]["agent"]++;
$grupo[$array_index]["group"]=dame_nombre_grupo($migrupo);
$contador_agente++; // Estado grupo, agent
@@ -116,6 +121,11 @@ if (comprueba_login() == 0)
if ($grupo[$real_count]["data"]>0) {
$icono_type=$icono_type."";
}
+ // Show yellow light if there are recent alerts fired for this group
+ if ($grupo[$real_count]["alerts"] > 0 ){
+ $icono_type=$icono_type."
";
+ }
+ // TOOLTIP.
$celda = "
".$lang_label["agents"].": | |
".ucfirst($lang_label["monitors"]).": | |
![]() | ".$grupo[$real_count]["ok"]." |
![]() | ".$grupo[$real_count]["down"]." |
![]() | ".$grupo[$real_count]["bad"]." |