diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3e741990b6..a54e37d880 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2012-11-06 Ramon Novoa + + * pandoradb.sql, + pandoradb.postgreSQL.sql, + pandoradb.oracle.sql, + extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql, + extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql, + extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql: Added a new + column to tagente_estado to store possible errors. + 2012-11-05 Miguel de Dios * operation/events/events_list.php: fixed the lost tag span (with diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql index 46e0d5d683..322f213a37 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql @@ -328,6 +328,7 @@ ALTER TABLE tnetwork_map ADD `show_modules` TINYINT(1) UNSIGNED NOT NULL DEFAULT -- Table `tagente_estado` -- ---------------------------------------------------------------------- ALTER TABLE `tagente_estado` ADD COLUMN `last_known_status` tinyint(4) NOT NULL DEFAULT 0; +ALTER TABLE `tagente_estado` ADD COLUMN `last_error` int(4) NOT NULL DEFAULT '0', -- --------------------------------------------------------------------- -- Table `tevent_response` diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql index fd8ba426f3..b45eb540c4 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql @@ -358,7 +358,8 @@ ALTER TABLE tnetwork_map ADD (show_groups NUMBER(10, 0) default 0 NOT NULL); ------------------------------------------------------------------------ -- Table tagente_estado ------------------------------------------------------------------------ -ALTER TABLE tagente_estado ADD (last_known_status NUMBER(5, 0) default 0 NOT NULL); +ALTER TABLE tagente_estado ADD (last_known_status NUMBER(10, 0) default 0 NOT NULL); +ALTER TABLE tagente_estado ADD (last_error NUMBER(10, 0) default 0 NOT NULL); -- ----------------------------------------------------- -- Table tevent_response diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql index f86294ce23..e08f723293 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql @@ -350,6 +350,7 @@ ALTER TABLE "tnetwork_map" ADD COLUMN "show_groups" INTEGER NOT NULL DEFAULT 0; -- Table "tagente_estado" ------------------------------------------------------------------------ ALTER TABLE "tagente_estado" ADD COLUMN "last_known_status" INTEGER default 0; +ALTER TABLE "tagente_estado" ADD COLUMN "last_error" INTEGER default 0; -- ----------------------------------------------------- -- Table "tevent_response" diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 46e4a0259a..408ef4083c 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -154,7 +154,8 @@ CREATE TABLE tagente_estado ( last_execution_try NUMBER(19, 0) default 0 NOT NULL, status_changes NUMBER(10, 0) default 0, last_status NUMBER(10, 0) default 0, - last_known_status NUMBER(10, 0) default 0 + last_known_status NUMBER(10, 0) default 0, + last_error NUMBER(10, 0) default 0 ); CREATE INDEX tagente_estado_id_agente_idx ON tagente_estado(id_agente); CREATE INDEX tagente_estado_estado_idx ON tagente_estado(estado); diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 85f633ab56..771cb3b755 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -147,7 +147,8 @@ CREATE TABLE "tagente_estado" ( "last_execution_try" BIGINT NOT NULL default 0, "status_changes" INTEGER default 0, "last_status" INTEGER default 0, - "last_known_status" INTEGER default 0 + "last_known_status" INTEGER default 0, + "last_error" INTEGER default 0 ); CREATE INDEX "tagente_estado_id_agente_modulo_idx" ON "tagente_estado"("id_agente_modulo"); CREATE INDEX "tagente_estado_id_agente_idx" ON "tagente_estado"("id_agente"); diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index f411521933..7ea4d3fdb2 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -146,6 +146,7 @@ CREATE TABLE `tagente_estado` ( `status_changes` tinyint(4) default 0, `last_status` tinyint(4) default 0, `last_known_status` tinyint(4) default 0, + `last_error` int(4) NOT NULL default '0', PRIMARY KEY (`id_agente_estado`), KEY `status_index_1` (`id_agente_modulo`), KEY `idx_agente` (`id_agente`),