From 9de866ef60e2a285a29ef74988fa47b75b54cfda Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Tue, 9 Aug 2011 08:54:00 +0000 Subject: [PATCH] 2011-08-09 Ramon Novoa * pandoradb.sql, extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added another index on tevento.estado. Thanks Manuel! :-) git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4688 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql | 1 + pandora_console/pandoradb.sql | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c95dd97fd7..aaaddc1d0d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-08-09 Ramon Novoa + + * pandoradb.sql, extras/pandoradb_migrate_v3.2_to_v4.0.sql: Added + another index on tevento.estado. Thanks Manuel! :-) + 2011-08-08 Juan Manuel Ramon * include/help/en/help_agent_status.php diff --git a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql index 4a4de416f3..858f6ae9ba 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql @@ -107,6 +107,7 @@ ALTER TABLE tusuario_perfil ADD `id_policy` int(10) unsigned NOT NULL default 0; ALTER TABLE `tevento` MODIFY `event_type` enum('unknown','alert_fired','alert_recovered','alert_ceased','alert_manual_validation','recon_host_detected','system','error','new_agent','going_up_warning','going_up_critical','going_down_warning','going_down_normal','going_down_critical','going_up_normal', 'configuration_change') default 'unknown'; ALTER TABLE tevento ADD INDEX criticity (`criticity`); +ALTER TABLE tevento ADD INDEX estado (`estado`); -- ----------------------------------------------------- -- Change the value "0000-00-00 00:00:00" that Pandora use as zero or null date value diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index ae13718671..105d8797d3 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -430,7 +430,8 @@ CREATE TABLE IF NOT EXISTS `tevento` ( KEY `indice_1` (`id_agente`,`id_evento`), KEY `indice_2` (`utimestamp`,`id_evento`), KEY `idx_agentmodule` (`id_agentmodule`), - INDEX criticity (`criticity`) + INDEX criticity (`criticity`), + INDEX estado (`estado`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- Criticity: 0 - Maintance (grey)