diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e3c9f88d9d..8157128633 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,15 @@ +2009-01-14 Sancho Lerena + + * operation/servers/view_server_detail.php: Fixed missing parameter. + Probably because function interface change. + + * pandoradb_migrate_20_to_21.sql: Added some ALTER table sentences + was missing. + + * general/login_page.php: Fixed typo. + + * godmode/menu.php: Bad page rendered for module manage. Fixed. + 2009-01-14 Evi Vanoost * include/functions_db.php: New functions process_sql_insert and diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 94f8e92c5c..f6dc0946d0 100644 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -40,7 +40,7 @@ echo ''; if (!empty ($page) && !empty ($sec)) { foreach ($_POST as $key => $value) { - print_input_hidden ($key, $vale); + print_input_hidden ($key, $value); } } diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index 79b9769899..53517810c9 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -44,7 +44,7 @@ if (give_acl ($config['id_user'], 0, "AW")) { } if (give_acl ($config['id_user'], 0, "PM")) { $menu["gmodules"]["text"] = __('Manage modules'); - $menu["gmodules"]["sec2"] = "godmode/agentes/modificar_agente"; + $menu["gmodules"]["sec2"] = "godmode/modules/module_list"; $menu["gmodules"]["id"] = "god-modules"; $sub = array (); diff --git a/pandora_console/operation/servers/view_server_detail.php b/pandora_console/operation/servers/view_server_detail.php index 11141798f8..5caf09d090 100644 --- a/pandora_console/operation/servers/view_server_detail.php +++ b/pandora_console/operation/servers/view_server_detail.php @@ -52,11 +52,12 @@ echo "

". __('Configuration detail') . " - ".$server_name; echo ' '; echo "

"; + // Show network tasks for Recon Server if ($recon_tasks === false) { $recon_tasks = array (); -} +} $table->cellpadding = 4; $table->cellspacing = 4; $table->width = 725; @@ -119,7 +120,7 @@ foreach ($recon_tasks as $task) { $data[6] = print_group_icon ($task["id_group"], true); - $data[7] = print_os_icon ($task["id_os"], true); + $data[7] = print_os_icon ($task["id_os"], false, true); if ($task["status"] < 0 || $task["status"] > 100) { $data[8] = "-"; diff --git a/pandora_console/pandoradb_migrate_20_to_21.sql b/pandora_console/pandoradb_migrate_20_to_21.sql index 8f73795c43..fca47d071d 100644 --- a/pandora_console/pandoradb_migrate_20_to_21.sql +++ b/pandora_console/pandoradb_migrate_20_to_21.sql @@ -1,3 +1,7 @@ +ALTER TABLE tagente ADD `custom_id` varchar(255) default ''; +ALTER TABLE tagente_modulo ADD `custom_id` varchar(255) default ''; +ALTER TABLE tgrupo ADD `custom_id` varchar(255) default ''; + ALTER TABLE `tagente_datos` DROP INDEX `data_index2`; ALTER TABLE `tagente_datos` DROP `timestamp`, DROP `id_agente`; ALTER TABLE `tagente_datos_inc` DROP `timestamp`; @@ -17,6 +21,14 @@ DEFAULT '0', ADD `min_critical` DOUBLE( 18, 2 ) NOT NULL DEFAULT `min_ff_event` INT( 4 ) UNSIGNED NOT NULL DEFAULT '0', ADD `delete_pending` INT( 1 ) UNSIGNED NOT NULL DEFAULT '0'; +ALTER TABLE `tagente_modulo` ADD `min_warning` double(18,2) default 0; +ALTER TABLE `tagente_modulo` ADD `max_warning` double(18,2) default 0; +ALTER TABLE `tagente_modulo` ADD `min_critical` double(18,2) default 0; +ALTER TABLE `tagente_modulo` ADD `max_critical` double(18,2) default 0; +ALTER TABLE `tagente_modulo` ADD `min_ff_event` int(4) unsigned default '0'; +ALTER TABLE tagente_modulo ADD `delete_pending` int(1) unsigned default 0; + + ALTER TABLE `tagente_modulo` DROP INDEX `tam_plugin`; ALTER TABLE `tagente_modulo` DROP PRIMARY KEY , ADD PRIMARY KEY ( `id_agente_modulo` );