diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog
index b0bfbbb3ed..ad73713fe3 100644
--- a/pandora_console/ChangeLog
+++ b/pandora_console/ChangeLog
@@ -1,3 +1,15 @@
+2006-12-25 Raul Mateos ".$lang_label["delete_module_no"]."
";
else
echo "".$lang_label["delete_module_ok"]."
";
// Then delete all staus
- $sql_delete = "DELETE FROM tagente_estado WHERE id_agente_modulo = ".$id_borrar_modulo;
- //echo "DEBUG SQL_DELETE $sql_delete
";
+ $sql_delete = "DELETE FROM tagente_estado
+ WHERE id_agente_modulo = ".$id_borrar_modulo;
$result=mysql_query($sql_delete);
- // And finally, delete all data of this module
- $sql_delete = "DELETE FROM tagente_datos WHERE id_agente_modulo = ".$id_borrar_modulo;
- //echo "DEBUG SQL_DELETE $sql_delete
";
+ $sql_delete = "DELETE FROM tagente_datos
+ WHERE id_agente_modulo = ".$id_borrar_modulo;
$result=mysql_query($sql_delete);
- $sql_delete = "DELETE FROM tagente_datos_string WHERE id_agente_modulo = ".$id_borrar_modulo;
- //echo "DEBUG SQL_DELETE $sql_delete
";
+ $sql_delete = "DELETE FROM tagente_datos_string
+ WHERE id_agente_modulo = ".$id_borrar_modulo;
$result=mysql_query($sql_delete);
- $sql_delete = "DELETE FROM tagente_datos_inc WHERE id_agente_modulo = ".$id_borrar_modulo;
- //echo "DEBUG SQL_DELETE $sql_delete
";
+ $sql_delete = "DELETE FROM tagente_datos_inc
+ WHERE id_agente_modulo = ".$id_borrar_modulo;
$result=mysql_query($sql_delete);
}
@@ -601,9 +618,17 @@ if (give_acl($id_user, 0, "AW")==1) {
// ========================
echo "".$lang_label["agent_conf"]."
";
-if (isset($_GET["creacion"])){echo "".$lang_label["create_agent"]." ".$lang_label["help"]."
";}
-else {echo "".$lang_label["update_agent"]." ".$lang_label["help"]."
";}
-echo '
The description of all the monitors defined in the server can be viewed from the "View Agents">"Monitor detail" option in the Operation menu.
+The description of all the monitors (a monitor is a module of "proc" type) defined in the server can be viewed from the "View Agents">"Monitor detail" option in the Operation menu.
@@ -541,10 +541,10 @@ values from the modules the agent sends after each time interval. Field #3 (Full Text): Define the used value for the "_field3_" variable.- Min number of alerts: Minimun + Min number of alerts: Minimum number of alerts that can be sent consecutively.
- Max number of alerts: Maximun + Max number of alerts: Maximum number of alerts that can be sent consecutively.
Time threshold: Minimum duration between the firing of two consecutive diff --git a/pandora_console/help/es/chap3.php b/pandora_console/help/es/chap3.php index 5a8bed3c92..b612f792ab 100644 --- a/pandora_console/help/es/chap3.php +++ b/pandora_console/help/es/chap3.php @@ -452,7 +452,7 @@ simplemente con una rápida mirada, gracias a un sistema de bombillas de d
Desde «Ver agentes» > «Detalle monitores» en el menú de operación, se puede ver la descripción de todos los monitores definidos en el servidor.
+Desde «Ver agentes» > «Detalle monitores» en el menú de operación, se puede ver la descripción de todos los monitores definidos en el servidor (un monitor es un módulo de tipo proc).
diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index e84612da93..afc1d356f9 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -462,25 +462,23 @@ function pagination ($count, $url, $offset ) { // get offset for index calculation } - // End of subrouting to navigate throught blocks - - /* Now you have a header with blocks rendered, and only need to jump offset records. - Tasks you need to do now: - - Skip offset records - - $query1="SELECT * FROM $table $filter $order"; - $result=mysql_query($query1); - mysql_data_seek($result, $offset); - $offset_counter = 0; - - Start viewing data - - while ($row=mysql_fetch_array($result) and ($offset_counter < $block_size) ){ - $data=$row["ID_xxx"]; - . - . - . - */ } + +function list_group ($id_user){ + $mis_grupos[]=""; // Define array mis_grupos to put here all groups with Agent Read permission + $iconindex_g[]=""; + $sql='SELECT id_grupo, icon FROM tgrupo'; + $result=mysql_query($sql); + while ($row=mysql_fetch_array($result)){ + $iconindex_g[$row["id_grupo"]] = $row["icon"]; + if ($row["id_grupo"] != 1){ + if (give_acl($id_user,$row["id_grupo"], "AR") == 1){ + echo ""; + $mis_grupos[]=$row["id_grupo"]; //Put in an array all the groups the user belongs + } + } + } +} + ?> diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index eecc30333a..5bde0ff846 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -384,6 +384,9 @@ td.datosf9i, td.datos2f9i { margin-top: 15px; text-align: justify; } +.mr40 { + margin-right: 40px; +} ul.mn { list-style: none; padding: 0px 0px 0px 0px; diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 34acd60fc1..614e179744 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -21,7 +21,8 @@ require("include/config.php"); if (comprueba_login() == 0) { - if ((give_acl($id_user, 0, "AR")==1) or (give_acl($id_user,0,"AW")) or (dame_admin($id_user)==1)) { + if ((give_acl($id_user, 0, "AR")==1) or (give_acl($id_user,0,"AW")) + or (dame_admin($id_user)==1)) { if (isset($_POST["ag_group"])) $ag_group = $_POST["ag_group"]; @@ -34,50 +35,65 @@ if (comprueba_login() == 0) { $ag_group = $_GET["ag_group_refresh"]; } echo "