diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4f5dd2f568..492f2250a4 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,18 @@ +2006-12-03 Raul Mateos + + * include/styles/pandora.css: new style for not found items. + + * operation/events/events.php: Add filter to events by group. Changed + style for not found items. + + * operation/agentes/estado_agente.php, status_monitor.php, + estado_alertas.php: Add name to filter combo. Changed style for not + found items. + + * operation/incidents/incident.php: Changed style for not found items. + + * images/cancel.gif: Changed image to one with smaller size. + 2006-11-27 Raul Mateos * general/footer.php: Add variable $time to get time from server which diff --git a/pandora_console/images/cancel.gif b/pandora_console/images/cancel.gif index 5fb77f777d..68ebde7e90 100644 Binary files a/pandora_console/images/cancel.gif and b/pandora_console/images/cancel.gif differ diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 7c9c51630e..96e6a650d0 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -409,4 +409,8 @@ div.imgr>img { position:absolute; top: 0; right: 1; + } +div.nf { + margin-left: 7px; + color: red; } \ No newline at end of file diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 7200da4ea5..d50fc381cd 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -47,7 +47,9 @@ if (comprueba_login() == 0) { echo "
"; } - echo "
"; + echo ""; + echo ""; + echo ""; // Show only selected groups if ($ag_group > 1) @@ -192,7 +194,7 @@ if (comprueba_login() == 0) { echo ""; echo "
".$lang_label["group"].""; echo ""; - echo ""; + echo "".$biginterval.""; else echo "".$intervalo; - echo ' ( '.dame_grupo($id_grupo).' )'; + echo ' ( '.dame_grupo($id_grupo).' )'; echo " ".$numero_modulos." / ".$numero_monitor; if ($monitor_bad <> 0) echo " / ".$monitor_bad.""; @@ -244,7 +246,7 @@ if (comprueba_login() == 0) { } echo "

"; - echo ""; + echo "
"; echo ""; echo "
"; echo " - ".$lang_label["green_light"].""; @@ -260,7 +262,7 @@ if (comprueba_login() == 0) { echo "
"; } else { - echo '
'.$lang_label["no_agent"].'
'; + echo '
'.$lang_label["no_agent"].'
'; } } else { diff --git a/pandora_console/operation/agentes/estado_alertas.php b/pandora_console/operation/agentes/estado_alertas.php index 4a7f16cc09..c7353e3e27 100644 --- a/pandora_console/operation/agentes/estado_alertas.php +++ b/pandora_console/operation/agentes/estado_alertas.php @@ -24,7 +24,7 @@ if (comprueba_login() == 0) { if (isset($_GET["id_agente"])){ echo "

".$lang_label["alert_listing"]."".$lang_label["help"]."

"; $id_agente = $_GET["id_agente"]; - $query_gen='SELECT talerta_agente_modulo.id_alerta, talerta_agente_modulo.descripcion, talerta_agente_modulo.last_fired, talerta_agente_modulo.times_fired, tagente_modulo.nombre, talerta_agente_modulo.dis_max, talerta_agente_modulo.dis_min, talerta_agente_modulo.max_alerts, talerta_agente_modulo.time_threshold, talerta_agente_modulo.min_alerts, talerta_agente_modulo.id_agente_modulo, tagente_modulo.id_agente_modulo FROM tagente_modulo, talerta_agente_modulo WHERE tagente_modulo.id_agente = '.$id_agente.' AND tagente_modulo.id_agente_modulo = talerta_agente_modulo.id_agente_modulo order by tagente_modulo.nombre'; + $query_gen='SELECT talerta_agente_modulo.id_alerta, talerta_agente_modulo.descripcion, talerta_agente_modulo.last_fired, talerta_agente_modulo.times_fired, tagente_modulo.nombre, talerta_agente_modulo.dis_max, talerta_agente_modulo.dis_min, talerta_agente_modulo.max_alerts, talerta_agente_modulo.time_threshold, talerta_agente_modulo.min_alerts, talerta_agente_modulo.id_agente_modulo, tagente_modulo.id_agente_modulo FROM tagente_modulo, talerta_agente_modulo WHERE tagente_modulo.id_agente = '.$id_agente.' AND tagente_modulo.id_agente_modulo = talerta_agente_modulo.id_agente_modulo ORDER BY tagente_modulo.nombre'; $result_gen=mysql_query($query_gen); if (mysql_num_rows ($result_gen)) { echo ""; @@ -59,7 +59,7 @@ if (comprueba_login() == 0) { } echo '
'; } - else echo "".$lang_label["no_alerts"].""; + else echo "
".$lang_label["no_alerts"]."
"; } else { @@ -82,7 +82,9 @@ if (comprueba_login() == 0) { } else { echo "
"; } - echo "
"; + echo ""; + echo ""; + echo ""; + echo ""; // Show only selected groups if ($ag_group > 1) @@ -168,9 +170,9 @@ if (comprueba_login() == 0) { echo "
".$lang_label["group"].""; echo ""; - echo ""; + echo "
"; } else { - echo "
".$lang_label["no_alert"]."
"; + echo "
".$lang_label["no_alert"]."
"; } - } else echo "". $lang_label["no_agent"].$lang_label["no_agent_alert"].""; + } else echo "
". $lang_label["no_agent"].$lang_label["no_agent_alert"]."
"; } } //end acl } //end login diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 04080f7b7b..d9f2165397 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -50,8 +50,8 @@ if (comprueba_login() == 0) { } else { echo "
"; } - echo ""; - echo ""; + echo "
".$lang_label["group_name"]."
"; + echo ""; echo "
".$lang_label["group"].""; echo "
"; } else { - echo "".$lang_label["no_monitors_g"].""; + echo "
".$lang_label["no_monitors_g"]."
"; } } else { - echo "".$lang_label["no_agent"].""; + echo "
".$lang_label["no_agent"]."
"; } } //end acl diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index abf8737b02..fe289fb76d 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -121,52 +121,41 @@ if (comprueba_login() == 0) { $count++; } } - + + echo "

".$lang_label["events"]."

"; echo "

".$lang_label["event_main_view"]." ".$lang_label["help"]."

"; - echo ""; - echo ""; + echo ""; + echo "
"; - echo ""; - echo ""; - $offset_counter=0; - $sql='SELECT DISTINCT evento FROM tevento'; + if (isset($_POST["ev_group"])) { + $ev_group = $_POST["ev_group"]; + } else { + $ev_group = -1; + } + echo ""; + + echo ""; + echo ""; - echo "
".$lang_label["group"].""; + echo ""; - echo ""; - echo ""; echo ""; echo " - ".$lang_label["validated_event"]; echo "
"; @@ -177,7 +166,63 @@ if (comprueba_login() == 0) { echo "
"; echo " - ".$lang_label["delete_event"]; echo "
"; + echo "
".$lang_label["events"]."
"; + echo ""; + echo "
"; + echo "
"; + echo ""; + echo "
"; echo "
"; //pagination @@ -191,12 +236,12 @@ if (comprueba_login() == 0) { } echo "
"; - echo ""; + echo "
"; echo ""; echo ""; echo "
".$lang_label["status"]; echo "".$lang_label["event_name"]; echo "".$lang_label["agent_name"]; - echo "".$lang_label["group_name"]; + echo "".$lang_label["group"]; echo "".$lang_label["id_user"]; echo "".$lang_label["timestamp"]; echo "".$lang_label["action"]; @@ -215,13 +260,24 @@ if (comprueba_login() == 0) { if (isset($event_list[$a])) { $id_evento = $event_list[$a]; if ($id_evento != ""){ - if (isset($_POST["event"])){ + if (isset($_POST["event"])) { $event = entrada_limpia($_POST["event"]); if ($event=="All") { - $sql="SELECT * FROM tevento WHERE id_evento = $id_evento"; + if (isset($ev_group) && ($ev_group > 1)) { + $sql="SELECT * FROM tevento WHERE id_evento = '$id_evento' AND id_grupo = '$ev_group'"; + } else { + $sql="SELECT * FROM tevento WHERE id_evento = '$id_evento'"; + } + } else { - $sql="SELECT * FROM tevento WHERE evento= '$event' AND id_evento = $id_evento"; + if (isset($ev_group) && ($ev_group > 1)) { + $sql="SELECT * FROM tevento WHERE evento= '$event' AND id_evento = '$id_evento' AND id_grupo = '$ev_group'"; + } else { + $sql="SELECT * FROM tevento WHERE evento= '$event' AND id_evento = '$id_evento'"; + } } + + } else { $sql="SELECT * FROM tevento WHERE id_evento = $id_evento"; } @@ -246,7 +302,7 @@ if (comprueba_login() == 0) { echo "".$row["evento"]; if ($row["id_agente"] > 0){ echo "".dame_nombre_agente($row["id_agente"]).""; - echo "".dame_nombre_grupo($row["id_grupo"]); + echo " ( ".dame_grupo($id_group)." )"; } else { // for SNMP generated alerts echo "".$lang_label["alert"]." / SNMP"; @@ -277,7 +333,7 @@ if (comprueba_login() == 0) { } echo "
"; } - else {echo "".$lang_label["no_event"]."";} + else {echo "
".$lang_label["no_event"]."
";} } else { audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access event viewer"); diff --git a/pandora_console/operation/incidents/incident.php b/pandora_console/operation/incidents/incident.php index b6c1a239ab..5966688853 100644 --- a/pandora_console/operation/incidents/incident.php +++ b/pandora_console/operation/incidents/incident.php @@ -248,7 +248,7 @@ if (isset($_POST['operacion'])){ $result2=mysql_query($sql1); if (!mysql_num_rows($result2)) { - echo '
'.$lang_label["no_incidents"].'

';} + echo '
'.$lang_label["no_incidents"].'

';} else { while ($row2=mysql_fetch_array($result2)){ // Jump offset records $id_group = $row2["id_grupo"]; @@ -279,7 +279,7 @@ if (isset($_POST['operacion'])){ pagination ($total_incidentes, $url, $offset); echo '
'; // Show headers - echo "
"; + echo "
"; echo ""; echo "
ID"; echo "".$lang_label["status"];