From 660665348c720717e9b0e32b5c1644638ffbf2df Mon Sep 17 00:00:00 2001 From: slerena Date: Wed, 18 Apr 2007 09:58:26 +0000 Subject: [PATCH] 2007-04-18 Sancho Lerena * include/styles/pandora.css: Added frame and changed basic form input styles (fixed the old problem with radio and checkboxes). * include/functions_db.php: Finished function agent_add_address(). Added functions: agent_delete_address(), give_agent_address() and give_agent_address_from_list(). * include/languages/language_en.php: More strings ! * include/functions.php: Added numeric render for graph Y scale and for numeric data output in screen: format_for_graph(). * pandoradb.sql: Several small fixes and cleanup (deleted drop check). * operation/agentes/estado_alertas.php: Fixed old bug with visualization of alerts (min/max) vs (max/min). Now alert is a real value, not integer. * operation/agentes/datos_agente.php: Better render for numeric (float) data. * operation/agentes/estado_ultimopaquete.php: Better render for numeric (float) data and fixed a small costemic bug. * operation/agentes/estado_generalagente.php: Fixed a small costemic bug, list of ip's have some white space before and this have better visualization for user due to combo style stripping some space. * reporting/fgraph.php: Graph improvement: graphs now could show alerts associated to an agent and draw alert limits. Preprocessor function is now used to render axis label with (M,K) symbols and decimal commas. Title and subtitle has been improved. * reporting/stat_win.php: Graph menu improvement. Fully completed work. This should work for final version without more changes. * godmode/agentes/agent_template.php: Template/Wizard module assigment form for agent. * godmode/agentes/alert_manager.php: Several fixes (links) and alert max/min render. * godmode/agentes/configurar_agente.php: Fixed several navitation bugs. Added agent ip addition/deletion code. * godmode/agentes/agent_manager.php: Address list management code. * godmode/modules/module_list.php: Deleted link to "module type editor" and create button: This has no sense since there is no moduletype editor yet :-) git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@425 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 54 ++++ .../godmode/agentes/agent_manager.php | 30 ++- .../godmode/agentes/agent_template.php | 171 ++++++++++++ .../godmode/agentes/alert_manager.php | 21 +- .../godmode/agentes/configurar_agente.php | 30 ++- .../godmode/modules/module_list.php | 6 +- pandora_console/include/functions.php | 14 + pandora_console/include/functions_db.php | 127 +++++++-- .../include/languages/language_en.php | 3 + pandora_console/include/styles/pandora.css | 56 +++- .../operation/agentes/datos_agente.php | 21 +- .../operation/agentes/estado_alertas.php | 17 +- .../agentes/estado_generalagente.php | 8 +- .../agentes/estado_ultimopaquete.php | 23 +- pandora_console/pandoradb.sql | 216 ++------------- pandora_console/reporting/fgraph.php | 114 ++++++-- pandora_console/reporting/stat_win.php | 248 ++++++++++++------ 17 files changed, 761 insertions(+), 398 deletions(-) create mode 100644 pandora_console/godmode/agentes/agent_template.php diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2ccf61612b..bcb90ac590 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,57 @@ +2007-04-18 Sancho Lerena + + * include/styles/pandora.css: Added frame and changed basic form input + styles (fixed the old problem with radio and checkboxes). + + * include/functions_db.php: Finished function + agent_add_address(). Added functions: agent_delete_address(), + give_agent_address() and give_agent_address_from_list(). + + * include/languages/language_en.php: More strings ! + + * include/functions.php: Added numeric render for graph Y scale + and for numeric data output in screen: format_for_graph(). + + * pandoradb.sql: Several small fixes and cleanup (deleted drop check). + + * operation/agentes/estado_alertas.php: Fixed old bug with + visualization of alerts (min/max) vs (max/min). Now alert is a + real value, not integer. + + * operation/agentes/datos_agente.php: Better render for numeric + (float) data. + + * operation/agentes/estado_ultimopaquete.php: Better render for numeric + (float) data and fixed a small costemic bug. + + * operation/agentes/estado_generalagente.php: Fixed a small + costemic bug, list of ip's have some white space before and this + have better visualization for user due to combo style stripping + some space. + + * reporting/fgraph.php: Graph improvement: graphs now could show + alerts associated to an agent and draw alert limits. Preprocessor + function is now used to render axis label with (M,K) symbols and + decimal commas. Title and subtitle has been improved. + + * reporting/stat_win.php: Graph menu improvement. Fully completed + work. This should work for final version without more changes. + + * godmode/agentes/agent_template.php: Template/Wizard module + assigment form for agent. + + * godmode/agentes/alert_manager.php: Several fixes (links) and + alert max/min render. + + * godmode/agentes/configurar_agente.php: Fixed several navitation + bugs. Added agent ip addition/deletion code. + + * godmode/agentes/agent_manager.php: Address list management code. + + * godmode/modules/module_list.php: Deleted link to "module type + editor" and create button: This has no sense since there is no + moduletype editor yet :-) + 2007-04-16 Manuel Arostegui * pandora_console.spec: Small changes to adapt the RPM to the diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index eee62ab532..617dbdc4d5 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -71,15 +71,27 @@ if (isset($_GET["creacion"])){ sec2=operation/agentes/ver_agente&id_agente=".$id_agente."'> "; } -?> - - - - - -'; +echo "    "; + +echo ' ".$lang_label["delete_sel"]; +echo ""; + +echo ''.$lang_label["group"].''; +echo '"; +$sql1='SELECT * FROM tnetwork_profile ORDER BY name'; +$result=mysql_query($sql1); +if (mysql_num_rows($result)) + while ($row=mysql_fetch_array($result)) + echo "