2011-02-09 15:16:27 +01:00
|
|
|
-- Pandora FMS - the Flexible Monitoring System
|
|
|
|
-- ============================================
|
|
|
|
-- Copyright (c) 2005-2011 Artica Soluciones Tecnológicas, http://www.artica.es
|
|
|
|
-- Please see http://pandora.sourceforge.net for full contribution list
|
|
|
|
|
|
|
|
-- This program is free software; you can redistribute it and/or
|
|
|
|
-- modify it under the terms of the GNU General Public License
|
|
|
|
-- as published by the Free Software Foundation for version 2.
|
|
|
|
-- This program is distributed in the hope that it will be useful,
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
-- GNU General Public License for more details.
|
|
|
|
-- You should have received a copy of the GNU General Public License
|
|
|
|
-- along with this program; if not, write to the Free Software
|
|
|
|
-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
-- PLEASE NO NOT USE MULTILINE COMMENTS
|
|
|
|
-- Because Pandora Installer don't understand them
|
|
|
|
-- and fails creating database !!!
|
|
|
|
-- -----------------------------------------------------------
|
|
|
|
-- Pandora FMS official tables for 3.2 version --
|
|
|
|
-- -----------------------------------------------------------
|
|
|
|
|
|
|
|
-- The charset is for all DB not only table.
|
2011-02-27 06:25:53 +01:00
|
|
|
--CREATE DATABASE "pandora" WITH ENCODING 'utf8';
|
2011-02-09 15:16:27 +01:00
|
|
|
|
2011-02-27 06:25:53 +01:00
|
|
|
--\c "pandora"
|
2011-02-09 15:16:27 +01:00
|
|
|
|
2014-07-21 14:24:16 +02:00
|
|
|
-- For previous PostgreSQL version 9.0
|
|
|
|
CREATE LANGUAGE plpgsql;
|
2011-02-09 15:16:27 +01:00
|
|
|
|
2011-04-13 18:32:30 +02:00
|
|
|
CREATE OR REPLACE FUNCTION unix_timestamp(TIMESTAMP without time zone = CURRENT_TIMESTAMP) RETURNS double precision AS 'SELECT ceil(date_part(''epoch'', $1)); ' LANGUAGE SQL;
|
2011-02-09 15:16:27 +01:00
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table `taddress`
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
CREATE TABLE "taddress" (
|
|
|
|
"id_a" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"ip" VARCHAR(60) NOT NULL default '',
|
|
|
|
"ip_pack" INTEGER NOT NULL default 0
|
|
|
|
);
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE INDEX "taddress_ip_idx" ON "taddress"("ip");
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table `taddress_agent`
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
CREATE TABLE "taddress_agent" (
|
|
|
|
"id_ag" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_a" BIGINT NOT NULL default 0,
|
|
|
|
"id_agent" BIGINT NOT NULL default 0
|
|
|
|
);
|
2011-02-09 15:16:27 +01:00
|
|
|
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table `tagente`
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagente" (
|
|
|
|
"id_agente" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"nombre" varchar(600) NOT NULL default '',
|
|
|
|
"direccion" varchar(100) default NULL,
|
|
|
|
"comentarios" varchar(255) default '',
|
|
|
|
"id_grupo" INTEGER NOT NULL default 0,
|
2011-05-09 17:10:31 +02:00
|
|
|
"ultimo_contacto" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"modo" SMALLINT NOT NULL default 0,
|
|
|
|
"intervalo" INTEGER NOT NULL default 300,
|
|
|
|
"id_os" INTEGER default 0,
|
|
|
|
"os_version" varchar(100) default '',
|
|
|
|
"agent_version" varchar(100) default '',
|
2011-05-09 17:10:31 +02:00
|
|
|
"ultimo_contacto_remoto" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"disabled" SMALLINT NOT NULL default 0,
|
|
|
|
"id_parent" INTEGER default 0,
|
|
|
|
"custom_id" varchar(255) default '',
|
|
|
|
"server_name" varchar(100) default '',
|
|
|
|
"cascade_protection" SMALLINT NOT NULL default 0,
|
2011-02-27 06:25:53 +01:00
|
|
|
--number of hours of diference with the server timezone
|
|
|
|
"timezone_offset" SMALLINT NULL DEFAULT 0,
|
|
|
|
--path in the server to the image of the icon representing the agent
|
|
|
|
"icon_path" VARCHAR(127) NULL DEFAULT NULL,
|
|
|
|
--set it to one to update the position data (altitude, longitude, latitude) when getting information from the agent or to 0 to keep the last value and don\'t update it
|
2012-01-23 19:36:22 +01:00
|
|
|
"update_gis_data" SMALLINT NOT NULL DEFAULT 1,
|
2012-08-21 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.oracle.sql, operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php,
operation/agentes/ver_agente.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/agent_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php, pandoradb.sql,
pandoradb.postgreSQL.sql: added the feature to set a agent in
"Quiet" mode.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6896 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-21 19:12:02 +02:00
|
|
|
"url_address" TEXT NULL default '',
|
2012-11-14 19:54:27 +01:00
|
|
|
"quiet" SMALLINT NOT NULL default 0,
|
|
|
|
"normal_count" INTEGER NOT NULL default 0,
|
|
|
|
"warning_count" INTEGER NOT NULL default 0,
|
|
|
|
"critical_count" INTEGER NOT NULL default 0,
|
|
|
|
"unknown_count" INTEGER NOT NULL default 0,
|
|
|
|
"notinit_count" INTEGER NOT NULL default 0,
|
2012-11-20 Ramon Novoa <rnovoa@artica.es>
* include/functions_groups.php,
include/functions_agents.php,
include/functions_modules.php,
include/functions_treeview.php,
include/functions_os.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
install.php,
pandoradb.oracle.sql,
operation/tree.php,
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: Improved tree
view performance.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7170 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-11-20 17:14:45 +01:00
|
|
|
"total_count" INTEGER NOT NULL default 0,
|
2014-05-11 10:10:48 +02:00
|
|
|
"fired_count" INTEGER NOT NULL default 0,
|
2013-03-19 18:24:40 +01:00
|
|
|
"update_module_count" SMALLINT NOT NULL DEFAULT 1,
|
2014-05-11 10:10:48 +02:00
|
|
|
"update_alert_count" SMALLINT NOT NULL DEFAULT 1
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "tagente_nombre_idx" ON "tagente"("nombre");
|
|
|
|
CREATE INDEX "tagente_direccion_idx" ON "tagente"("direccion");
|
|
|
|
CREATE INDEX "tagente_disabled_idx" ON "tagente"("disabled");
|
|
|
|
CREATE INDEX "tagente_id_grupo_idx" ON "tagente"("id_grupo");
|
|
|
|
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table `tagente_datos`
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagente_datos" (
|
|
|
|
"id_agente_modulo" INTEGER NOT NULL default 0,
|
|
|
|
"datos" DOUBLE PRECISION default NULL,
|
|
|
|
"utimestamp" BIGINT default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tagente_datos_id_agente_modulo_idx" ON "tagente_datos"("id_agente_modulo");
|
|
|
|
CREATE INDEX "tagente_datos_utimestamp_idx" ON "tagente_datos"("utimestamp");
|
|
|
|
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table `tagente_datos_inc`
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagente_datos_inc" (
|
|
|
|
"id_agente_modulo" INTEGER NOT NULL default 0,
|
|
|
|
"datos" DOUBLE PRECISION default NULL,
|
|
|
|
"utimestamp" INTEGER NOT NULL default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tagente_datos_inc_id_agente_modulo_idx" ON "tagente_datos_inc"("id_agente_modulo");
|
|
|
|
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table `tagente_datos_string`
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagente_datos_string" (
|
2011-05-09 12:13:35 +02:00
|
|
|
"id_agente_modulo" INTEGER NOT NULL default 0,
|
2011-02-09 15:16:27 +01:00
|
|
|
"datos" TEXT NOT NULL,
|
|
|
|
"utimestamp" INTEGER NOT NULL default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tagente_datos_string_id_agente_modulo_idx" ON "tagente_datos_string"("id_agente_modulo");
|
|
|
|
CREATE INDEX "tagente_datos_string_utimestamp_idx" ON "tagente_datos_string"("utimestamp");
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tagente_datos_log4x`
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagente_datos_log4x" (
|
|
|
|
"id_tagente_datos_log4x" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_agente_modulo" INTEGER NOT NULL default 0,
|
|
|
|
"severity" text NOT NULL,
|
|
|
|
"message" text NOT NULL,
|
|
|
|
"stacktrace" text NOT NULL,
|
|
|
|
"utimestamp" INTEGER NOT NULL default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tagente_datos_log4x_id_agente_modulo_idx" ON "tagente_datos_log4x"("id_agente_modulo");
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table `tagente_estado`
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagente_estado" (
|
|
|
|
"id_agente_estado" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_agente_modulo" INTEGER NOT NULL default 0,
|
|
|
|
"datos" text NOT NULL default '',
|
2011-05-09 17:10:31 +02:00
|
|
|
"timestamp" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"estado" INTEGER NOT NULL default 0,
|
|
|
|
"id_agente" INTEGER NOT NULL default 0,
|
2011-05-09 17:10:31 +02:00
|
|
|
"last_try" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"utimestamp" BIGINT NOT NULL default 0,
|
|
|
|
"current_interval" INTEGER NOT NULL default 0,
|
|
|
|
"running_by" INTEGER default 0,
|
|
|
|
"last_execution_try" BIGINT NOT NULL default 0,
|
|
|
|
"status_changes" INTEGER default 0,
|
2012-10-01 16:04:30 +02:00
|
|
|
"last_status" INTEGER default 0,
|
2012-11-06 18:57:24 +01:00
|
|
|
"last_known_status" INTEGER default 0,
|
2014-05-31 15:36:53 +02:00
|
|
|
"last_error" INTEGER default 0,
|
|
|
|
"ff_start_utimestamp" BIGINT default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
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");
|
|
|
|
CREATE INDEX "tagente_estado_estado_idx" ON "tagente_estado"("estado");
|
|
|
|
CREATE INDEX "tagente_estado_current_interval_idx" ON "tagente_estado"("current_interval");
|
|
|
|
CREATE INDEX "tagente_estado_running_by_idx" ON "tagente_estado"("running_by");
|
|
|
|
CREATE INDEX "tagente_estado_last_execution_try_idx" ON "tagente_estado"("last_execution_try");
|
|
|
|
|
|
|
|
-- Probably last_execution_try index is not useful and loads more than benefits
|
|
|
|
|
|
|
|
-- id_modulo now uses tmodule
|
|
|
|
-- ---------------------------
|
|
|
|
-- 1 - Data server modules (agent related modules)
|
|
|
|
-- 2 - Network server modules
|
|
|
|
-- 4 - Plugin server
|
|
|
|
-- 5 - Predictive server
|
|
|
|
-- 6 - WMI server
|
|
|
|
-- 7 - WEB Server (enteprise)
|
|
|
|
|
2013-01-23 15:20:54 +01:00
|
|
|
CREATE TYPE type_tagente_modulo_wizard_level AS ENUM ('basic','advanced','nowizard');
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagente_modulo" (
|
|
|
|
"id_agente_modulo" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_agente" INTEGER NOT NULL default 0,
|
|
|
|
"id_tipo_modulo" INTEGER NOT NULL default 0,
|
|
|
|
"descripcion" TEXT NOT NULL default '',
|
2011-08-10 18:51:42 +02:00
|
|
|
"extended_info" TEXT NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"nombre" TEXT NOT NULL default '',
|
2011-05-25 11:57:05 +02:00
|
|
|
"unit" TEXT default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"id_policy_module" INTEGER NOT NULL default 0,
|
|
|
|
"max" BIGINT NOT NULL default 0,
|
|
|
|
"min" BIGINT NOT NULL default 0,
|
|
|
|
"module_interval" INTEGER NOT NULL default 0,
|
2012-10-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_cron.php: Added to repository. Cron related
functions.
* include/functions_html.php, 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,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php: Added support for remote
cron modules.
* godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
operation/netflow/nf_view.php,
include/functions_netflow.php: Added a description to report items.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7083 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-23 12:45:25 +02:00
|
|
|
"cron_interval" varchar(100) default '',
|
2012-02-03 13:33:45 +01:00
|
|
|
"module_ff_interval" INTEGER NOT NULL default 0,
|
2011-02-09 15:16:27 +01:00
|
|
|
"tcp_port" INTEGER NOT NULL default 0,
|
|
|
|
"tcp_send" TEXT default '',
|
|
|
|
"tcp_rcv" TEXT default '',
|
|
|
|
"snmp_community" varchar(100) default '',
|
|
|
|
"snmp_oid" varchar(255) default '0',
|
|
|
|
"ip_target" varchar(100) default '',
|
|
|
|
"id_module_group" INTEGER NOT NULL default 0,
|
|
|
|
"flag" SMALLINT NOT NULL default 1,
|
|
|
|
"id_modulo" INTEGER NOT NULL default 0,
|
|
|
|
"disabled" SMALLINT NOT NULL default 0,
|
|
|
|
"id_export" INTEGER NOT NULL default 0,
|
|
|
|
"plugin_user" text default '',
|
|
|
|
"plugin_pass" text default '',
|
|
|
|
"plugin_parameter" text,
|
|
|
|
"id_plugin" INTEGER default 0,
|
|
|
|
"post_process" DOUBLE PRECISION default NULL,
|
|
|
|
"prediction_module" BIGINT default 0,
|
|
|
|
"max_timeout" INTEGER default 0,
|
2012-10-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php,
include/javascript/pandora_modules.js,
include/functions_network_components.php,
include/functions_api.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/menu.php,
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,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/servers/plugin.php,
godmode/menu.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: Added support for
custom timeout and retries to remote modules.
* operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf.php: Deleted from repository. Netflow reports are
now integrated into custom reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-29 11:13:49 +01:00
|
|
|
"max_retries" INTEGER default 0,
|
2011-02-09 15:16:27 +01:00
|
|
|
"custom_id" varchar(255) default '',
|
|
|
|
"history_data" SMALLINT default 1,
|
|
|
|
"min_warning" DOUBLE PRECISION default 0,
|
|
|
|
"max_warning" DOUBLE PRECISION default 0,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
"str_warning" text,
|
2011-02-09 15:16:27 +01:00
|
|
|
"min_critical" DOUBLE PRECISION default 0,
|
|
|
|
"max_critical" DOUBLE PRECISION default 0,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
"str_critical" text,
|
2011-02-09 15:16:27 +01:00
|
|
|
"min_ff_event" INTEGER default 0,
|
|
|
|
"delete_pending" SMALLINT NOT NULL default 0,
|
|
|
|
"policy_linked" SMALLINT NOT NULL default 0,
|
|
|
|
"policy_adopted" SMALLINT NOT NULL default 0,
|
|
|
|
"custom_string_1" text default '',
|
|
|
|
"custom_string_2" text default '',
|
|
|
|
"custom_string_3" text default '',
|
|
|
|
"custom_integer_1" INTEGER default 0,
|
2012-07-05 18:45:40 +02:00
|
|
|
"custom_integer_2" INTEGER default 0,
|
2012-07-19 16:32:34 +02:00
|
|
|
"wizard_level" type_tagente_modulo_wizard_level default 'nowizard',
|
2012-08-17 20:11:02 +02:00
|
|
|
"macros" TEXT default '',
|
|
|
|
"critical_instructions" TEXT default '',
|
2013-04-18 17:04:51 +02:00
|
|
|
"warning_instructions" TEXT default '',
|
|
|
|
"unknown_instructions" TEXT default '',
|
|
|
|
"quiet" SMALLINT NOT NULL default 0,
|
2012-09-18 11:46:05 +02:00
|
|
|
"critical_inverse" SMALLINT NOT NULL default 0,
|
2012-12-05 13:55:44 +01:00
|
|
|
"warning_inverse" SMALLINT NOT NULL default 0,
|
2013-08-27 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
godmode/agentes/module_manager_editor.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/configurar_agente.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php,
include/functions_events.php, include/functions.php,
include/javascript/pandora_modules.js,
include/functions_network_components.php,
include/functions_modules.php, include/constants.php, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: first version of
disabled unknown events for modules, now it is implemented in
modules, massive operations and components, but it is necesary in
local component, policy, api, cli, pandora server and recond task.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8701 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-27 15:05:30 +02:00
|
|
|
"id_category" INTEGER NOT NULL default 0,
|
2013-09-05 Ramon Novoa <rnovoa@artica.es>
* extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager_editor.php,
include/functions_modules.php,
pandoradb.sql: Added support for module macros.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8747 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-05 18:46:21 +02:00
|
|
|
"disabled_types_event" TEXT default '',
|
2014-05-21 10:25:10 +02:00
|
|
|
"module_macros" TEXT default '',
|
|
|
|
"min_ff_event_normal" INTEGER default 0,
|
2014-07-21 14:24:16 +02:00
|
|
|
"min_ff_event_warning" INTEGER default 0,
|
|
|
|
"min_ff_event_critical" INTEGER default 0,
|
|
|
|
"each_ff" SMALLINT default 0,
|
|
|
|
"ff_timeout" INTEGER default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "tagente_modulo_id_agente_idx" ON "tagente_modulo"("id_agente");
|
|
|
|
CREATE INDEX "tagente_modulo_id_tipo_modulo_idx" ON "tagente_modulo"("id_tipo_modulo");
|
|
|
|
CREATE INDEX "tagente_modulo_disabled_idx" ON "tagente_modulo"("disabled");
|
|
|
|
|
|
|
|
-- snmp_oid is also used for WMI query
|
|
|
|
|
|
|
|
CREATE TABLE "tagent_access" (
|
|
|
|
"id_agent" INTEGER NOT NULL default 0,
|
|
|
|
"utimestamp" BIGINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tagent_access_id_agent_idx" ON "tagent_access"("id_agent");
|
|
|
|
CREATE INDEX "tagent_access_utimestamp_idx" ON "tagent_access"("utimestamp");
|
|
|
|
|
|
|
|
CREATE TABLE "talert_snmp" (
|
|
|
|
"id_as" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_alert" INTEGER NOT NULL default 0,
|
|
|
|
"al_field1" text NOT NULL default '',
|
|
|
|
"al_field2" text NOT NULL default '',
|
|
|
|
"al_field3" text NOT NULL default '',
|
2013-03-05 15:57:35 +01:00
|
|
|
"al_field4" text NOT NULL default '',
|
|
|
|
"al_field5" text NOT NULL default '',
|
|
|
|
"al_field6" text NOT NULL default '',
|
|
|
|
"al_field7" text NOT NULL default '',
|
|
|
|
"al_field8" text NOT NULL default '',
|
|
|
|
"al_field9" text NOT NULL default '',
|
|
|
|
"al_field10" text NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"description" varchar(255) default '',
|
|
|
|
"alert_type" SMALLINT NOT NULL default 0,
|
|
|
|
"agent" varchar(100) default '',
|
2011-08-17 22:14:56 +02:00
|
|
|
"custom_oid" text default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"oid" varchar(255) NOT NULL default '',
|
|
|
|
"time_threshold" INTEGER NOT NULL default 0,
|
|
|
|
"times_fired" SMALLINT NOT NULL default 0,
|
2011-05-09 17:10:31 +02:00
|
|
|
"last_fired" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"max_alerts" INTEGER NOT NULL default 1,
|
|
|
|
"min_alerts" INTEGER NOT NULL default 1,
|
|
|
|
"internal_counter" INTEGER NOT NULL default 0,
|
2012-02-02 13:00:30 +01:00
|
|
|
"priority" INTEGER default 0,
|
|
|
|
"_snmp_f1_" text DEFAULT '',
|
|
|
|
"_snmp_f2_" text DEFAULT '',
|
|
|
|
"_snmp_f3_" text DEFAULT '',
|
|
|
|
"_snmp_f4_" text DEFAULT '',
|
|
|
|
"_snmp_f5_" text DEFAULT '',
|
|
|
|
"_snmp_f6_" text DEFAULT '',
|
2013-07-10 18:49:05 +02:00
|
|
|
"_snmp_f7_" text DEFAULT '',
|
|
|
|
"_snmp_f8_" text DEFAULT '',
|
|
|
|
"_snmp_f9_" text DEFAULT '',
|
|
|
|
"_snmp_f10_" text DEFAULT '',
|
2014-03-19 12:29:56 +01:00
|
|
|
"_snmp_f11_" text DEFAULT '',
|
|
|
|
"_snmp_f12_" text DEFAULT '',
|
|
|
|
"_snmp_f13_" text DEFAULT '',
|
|
|
|
"_snmp_f14_" text DEFAULT '',
|
|
|
|
"_snmp_f15_" text DEFAULT '',
|
|
|
|
"_snmp_f16_" text DEFAULT '',
|
|
|
|
"_snmp_f17_" text DEFAULT '',
|
|
|
|
"_snmp_f18_" text DEFAULT '',
|
|
|
|
"_snmp_f19_" text DEFAULT '',
|
|
|
|
"_snmp_f20_" text DEFAULT '',
|
2012-02-02 13:00:30 +01:00
|
|
|
"trap_type" INTEGER NOT NULL DEFAULT '-1',
|
2013-07-17 19:39:27 +02:00
|
|
|
"single_value" varchar(255) DEFAULT '',
|
2014-03-18 17:08:20 +01:00
|
|
|
"position" INTEGER NOT NULL default 0,
|
2014-03-27 11:48:19 +01:00
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
|
|
|
"order_1" INTEGER NOT NULL default 1,
|
|
|
|
"order_2" INTEGER NOT NULL default 2,
|
|
|
|
"order_3" INTEGER NOT NULL default 3,
|
|
|
|
"order_4" INTEGER NOT NULL default 4,
|
|
|
|
"order_5" INTEGER NOT NULL default 5,
|
|
|
|
"order_6" INTEGER NOT NULL default 6,
|
|
|
|
"order_7" INTEGER NOT NULL default 7,
|
|
|
|
"order_8" INTEGER NOT NULL default 8,
|
|
|
|
"order_9" INTEGER NOT NULL default 9,
|
|
|
|
"order_10" INTEGER NOT NULL default 10,
|
|
|
|
"order_11" INTEGER NOT NULL default 11,
|
|
|
|
"order_12" INTEGER NOT NULL default 12,
|
|
|
|
"order_13" INTEGER NOT NULL default 13,
|
|
|
|
"order_14" INTEGER NOT NULL default 14,
|
|
|
|
"order_15" INTEGER NOT NULL default 15,
|
|
|
|
"order_16" INTEGER NOT NULL default 16,
|
|
|
|
"order_17" INTEGER NOT NULL default 17,
|
|
|
|
"order_18" INTEGER NOT NULL default 18,
|
|
|
|
"order_19" INTEGER NOT NULL default 19,
|
2014-05-11 10:10:48 +02:00
|
|
|
"order_20" INTEGER NOT NULL default 20
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE "talert_commands" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default '',
|
|
|
|
"command" text default '',
|
|
|
|
"description" text default '',
|
2012-10-29 09:45:06 +01:00
|
|
|
"internal" SMALLINT default 0,
|
|
|
|
"fields_descriptions" text default '',
|
|
|
|
"fields_values" text default ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE "talert_actions" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" text default '',
|
2012-05-10 14:09:00 +02:00
|
|
|
"id_alert_command" INTEGER NOT NULL default 0 REFERENCES talert_commands("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
2011-02-09 15:16:27 +01:00
|
|
|
"field1" text NOT NULL default '',
|
2012-10-29 09:45:06 +01:00
|
|
|
"field2" text NOT NULL default '',
|
|
|
|
"field3" text NOT NULL default '',
|
|
|
|
"field4" text NOT NULL default '',
|
|
|
|
"field5" text NOT NULL default '',
|
|
|
|
"field6" text NOT NULL default '',
|
|
|
|
"field7" text NOT NULL default '',
|
|
|
|
"field8" text NOT NULL default '',
|
|
|
|
"field9" text NOT NULL default '',
|
|
|
|
"field10" text NOT NULL default '',
|
2011-02-15 18:39:26 +01:00
|
|
|
"id_group" BIGINT NOT NULL default 0,
|
2014-03-05 12:43:03 +01:00
|
|
|
"action_threshold" BIGINT NOT NULL default 0,
|
|
|
|
"field1_recovery" text NOT NULL default '',
|
|
|
|
"field2_recovery" text NOT NULL default '',
|
|
|
|
"field3_recovery" text NOT NULL default '',
|
|
|
|
"field4_recovery" text NOT NULL default '',
|
|
|
|
"field5_recovery" text NOT NULL default '',
|
|
|
|
"field6_recovery" text NOT NULL default '',
|
|
|
|
"field7_recovery" text NOT NULL default '',
|
|
|
|
"field8_recovery" text NOT NULL default '',
|
|
|
|
"field9_recovery" text NOT NULL default '',
|
|
|
|
"field10_recovery" text NOT NULL default ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2011-07-08 11:56:18 +02:00
|
|
|
CREATE TYPE type_talert_templates_alert_template AS ENUM ('regex', 'max_min', 'max', 'min', 'equal', 'not_equal', 'warning', 'critical', 'onchange', 'unknown', 'always');
|
2013-01-23 15:20:54 +01:00
|
|
|
CREATE TYPE type_talert_templates_wizard_level AS ENUM ('basic','advanced','nowizard');
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "talert_templates" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" text default '',
|
|
|
|
"description" TEXT,
|
2011-02-27 06:25:53 +01:00
|
|
|
"id_alert_action" INTEGER REFERENCES talert_actions("id") ON DELETE SET NULL ON UPDATE CASCADE,
|
2012-10-29 09:45:06 +01:00
|
|
|
"field1" text NOT NULL default '',
|
|
|
|
"field2" text NOT NULL default '',
|
|
|
|
"field3" text NOT NULL default '',
|
|
|
|
"field4" text NOT NULL default '',
|
|
|
|
"field5" text NOT NULL default '',
|
|
|
|
"field6" text NOT NULL default '',
|
|
|
|
"field7" text NOT NULL default '',
|
|
|
|
"field8" text NOT NULL default '',
|
|
|
|
"field9" text NOT NULL default '',
|
|
|
|
"field10" text NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"type" type_talert_templates_alert_template,
|
|
|
|
"value" varchar(255) default '',
|
|
|
|
"matches_value" SMALLINT default 0,
|
|
|
|
"max_value" DOUBLE PRECISION default NULL,
|
|
|
|
"min_value" DOUBLE PRECISION default NULL,
|
|
|
|
"time_threshold" INTEGER NOT NULL default 0,
|
|
|
|
"max_alerts" INTEGER NOT NULL default 1,
|
|
|
|
"min_alerts" INTEGER NOT NULL default 0,
|
|
|
|
"time_from" TIME without time zone default '00:00:00',
|
|
|
|
"time_to" TIME without time zone default '00:00:00',
|
|
|
|
"monday" SMALLINT default 1,
|
|
|
|
"tuesday" SMALLINT default 1,
|
|
|
|
"wednesday" SMALLINT default 1,
|
|
|
|
"thursday" SMALLINT default 1,
|
|
|
|
"friday" SMALLINT default 1,
|
|
|
|
"saturday" SMALLINT default 1,
|
|
|
|
"sunday" SMALLINT default 1,
|
|
|
|
"recovery_notify" SMALLINT default 0,
|
2014-03-05 12:43:03 +01:00
|
|
|
"field1_recovery" text NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"field2_recovery" text NOT NULL default '',
|
2012-10-29 09:45:06 +01:00
|
|
|
"field3_recovery" text NOT NULL default '',
|
|
|
|
"field4_recovery" text NOT NULL default '',
|
|
|
|
"field5_recovery" text NOT NULL default '',
|
|
|
|
"field6_recovery" text NOT NULL default '',
|
|
|
|
"field7_recovery" text NOT NULL default '',
|
|
|
|
"field8_recovery" text NOT NULL default '',
|
|
|
|
"field9_recovery" text NOT NULL default '',
|
|
|
|
"field10_recovery" text NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"priority" INTEGER NOT NULL default 0,
|
2012-01-25 Junichi Satoh <junichi@rworks.jp>
* godmode/menu.php, godmode/alerts/alert_special_days.php,
godmode/alerts/configure_alert_special_days.php,
godmode/alerts/configure_alert_template.php,
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql,
pandoradb.oracle.sql, pandoradb.postgreSQL.sql, pandoradb.sql,
include/functions_alerts.php: Added special days feature. It allows
to define special days (holidays and special working days) for
alert templates.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-25 07:13:43 +01:00
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
2012-12-04 16:34:57 +01:00
|
|
|
"special_day" SMALLINT default 0,
|
|
|
|
"wizard_level" type_talert_templates_wizard_level default 'nowizard'
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "talert_templates_id_alert_action_idx" ON "talert_templates"("id_alert_action");
|
|
|
|
|
|
|
|
CREATE TABLE "talert_template_modules" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_agent_module" INTEGER NOT NULL REFERENCES tagente_modulo("id_agente_modulo") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
"id_alert_template" INTEGER NOT NULL REFERENCES talert_templates("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
"id_policy_alerts" INTEGER NOT NULL default 0,
|
|
|
|
"internal_counter" INTEGER default 0,
|
|
|
|
"last_fired" BIGINT NOT NULL default 0,
|
|
|
|
"last_reference" BIGINT NOT NULL default 0,
|
|
|
|
"times_fired" INTEGER NOT NULL default 0,
|
|
|
|
"disabled" SMALLINT default 0,
|
|
|
|
"standby" SMALLINT default 0,
|
|
|
|
"priority" INTEGER default 0,
|
|
|
|
"force_execution" SMALLINT default 0
|
|
|
|
);
|
|
|
|
CREATE UNIQUE INDEX "talert_template_modules_id_agent_module_idx" ON "talert_template_modules"("id_agent_module");
|
|
|
|
|
|
|
|
CREATE TABLE "talert_template_module_actions" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_alert_template_module" INTEGER NOT NULL REFERENCES talert_template_modules("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
"id_alert_action" INTEGER NOT NULL REFERENCES talert_actions("id") ON DELETE CASCADE ON UPDATE CASCADE,
|
|
|
|
"fires_min" INTEGER NOT NULL default 0,
|
|
|
|
"fires_max" INTEGER NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
2012-01-25 Junichi Satoh <junichi@rworks.jp>
* godmode/menu.php, godmode/alerts/alert_special_days.php,
godmode/alerts/configure_alert_special_days.php,
godmode/alerts/configure_alert_template.php,
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql,
pandoradb.oracle.sql, pandoradb.postgreSQL.sql, pandoradb.sql,
include/functions_alerts.php: Added special days feature. It allows
to define special days (holidays and special working days) for
alert templates.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-25 07:13:43 +01:00
|
|
|
CREATE TYPE type_talert_special_days_same_day AS ENUM ('monday','tuesday','wednesday','thursday','friday','saturday','sunday');
|
|
|
|
CREATE TABLE "talert_special_days" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
2013-04-02 08:29:38 +02:00
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
2012-03-25 03:45:57 +02:00
|
|
|
"date" DATE NOT NULL default '0001-01-01',
|
2012-01-25 Junichi Satoh <junichi@rworks.jp>
* godmode/menu.php, godmode/alerts/alert_special_days.php,
godmode/alerts/configure_alert_special_days.php,
godmode/alerts/configure_alert_template.php,
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql,
pandoradb.oracle.sql, pandoradb.postgreSQL.sql, pandoradb.sql,
include/functions_alerts.php: Added special days feature. It allows
to define special days (holidays and special working days) for
alert templates.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-25 07:13:43 +01:00
|
|
|
"same_day" type_talert_special_days_same_day NOT NULL default 'sunday',
|
|
|
|
"description" TEXT
|
|
|
|
);
|
|
|
|
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Priority : 0 - Maintance (grey)
|
|
|
|
-- Priority : 1 - Low (green)
|
|
|
|
-- Priority : 2 - Normal (blue)
|
|
|
|
-- Priority : 3 - Warning (yellow)
|
|
|
|
-- Priority : 4 - Critical (red)
|
|
|
|
CREATE TABLE "tattachment" (
|
|
|
|
"id_attachment" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_incidencia" INTEGER NOT NULL default 0,
|
|
|
|
"id_usuario" varchar(60) NOT NULL default '',
|
|
|
|
"filename" varchar(255) NOT NULL default '',
|
|
|
|
"description" varchar(150) default '',
|
|
|
|
"size" BIGINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE "tconfig" (
|
|
|
|
"id_config" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"token" varchar(100) NOT NULL default '',
|
2012-02-10 11:32:05 +01:00
|
|
|
"value" text NOT NULL default ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE "tconfig_os" (
|
|
|
|
"id_os" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default '',
|
|
|
|
"description" varchar(250) default '',
|
|
|
|
"icon_name" varchar(100) default ''
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tevento`
|
|
|
|
-- ---------------------------------------------------------------------
|
2012-09-13 16:06:08 +02:00
|
|
|
CREATE TYPE type_tevento_event AS ENUM ('going_unknown','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');
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tevento" (
|
|
|
|
"id_evento" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_agente" INTEGER NOT NULL default 0,
|
|
|
|
"id_usuario" varchar(100) NOT NULL default '0',
|
|
|
|
"id_grupo" INTEGER NOT NULL default 0,
|
|
|
|
"estado" INTEGER NOT NULL default 0,
|
2011-05-09 17:10:31 +02:00
|
|
|
"timestamp" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"evento" text NOT NULL default '',
|
|
|
|
"utimestamp" BIGINT NOT NULL default 0,
|
|
|
|
"event_type" type_tevento_event default 'unknown',
|
|
|
|
"id_agentmodule" INTEGER NOT NULL default 0,
|
|
|
|
"id_alert_am" INTEGER NOT NULL default 0,
|
|
|
|
"criticity" INTEGER NOT NULL default 0,
|
2011-06-10 12:38:16 +02:00
|
|
|
"user_comment" text NOT NULL,
|
2012-02-01 12:04:41 +01:00
|
|
|
"tags" text NOT NULL,
|
|
|
|
"source" text NOT NULL default '',
|
2012-09-10 18:00:14 +02:00
|
|
|
"id_extra" text NOT NULL default '',
|
|
|
|
"critical_instructions" TEXT default '',
|
|
|
|
"warning_instructions" TEXT default '',
|
2012-10-01 16:04:30 +02:00
|
|
|
"unknown_instructions" TEXT default '',
|
|
|
|
"owner_user" varchar(100) NOT NULL default '0',
|
2013-09-09 18:21:45 +02:00
|
|
|
"ack_utimestamp" BIGINT NOT NULL default 0,
|
|
|
|
"custom_data" text NOT NULL
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "tevento_id_1_idx" ON "tevento"("id_agente", "id_evento");
|
|
|
|
CREATE INDEX "tevento_id_2_idx" ON "tevento"("utimestamp", "id_evento");
|
|
|
|
CREATE INDEX "tevento_id_agentmodule_idx" ON "tevento"("id_agentmodule");
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tgrupo`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Criticity: 0 - Maintance (grey)
|
|
|
|
-- Criticity: 1 - Informational (blue)
|
|
|
|
-- Criticity: 2 - Normal (green) (status 0)
|
|
|
|
-- Criticity: 3 - Warning (yellow) (status 2)
|
|
|
|
-- Criticity: 4 - Critical (red) (status 1)
|
|
|
|
CREATE TABLE "tgrupo" (
|
|
|
|
"id_grupo" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"nombre" text NOT NULL default '',
|
|
|
|
"icon" varchar(50) default 'world',
|
|
|
|
"parent" INTEGER NOT NULL default 0,
|
|
|
|
"propagate" SMALLINT default 0,
|
|
|
|
"disabled" SMALLINT default 0,
|
2011-05-13 13:16:18 +02:00
|
|
|
"custom_id" varchar(255) default '',
|
2012-09-12 10:13:57 +02:00
|
|
|
"id_skin" INTEGER NOT NULL DEFAULT 0,
|
2012-10-24 10:57:36 +02:00
|
|
|
"description" text,
|
|
|
|
"contact" text,
|
|
|
|
"other" text
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tincidencia`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tincidencia" (
|
|
|
|
"id_incidencia" BIGSERIAL NOT NULL PRIMARY KEY,
|
2011-05-09 17:10:31 +02:00
|
|
|
"inicio" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
|
|
|
"cierre" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"titulo" text NOT NULL default '',
|
|
|
|
"descripcion" text NOT NULL,
|
|
|
|
"id_usuario" varchar(60) NOT NULL default '',
|
|
|
|
"origen" varchar(100) NOT NULL default '',
|
|
|
|
"estado" INTEGER NOT NULL default 0,
|
|
|
|
"prioridad" INTEGER NOT NULL default 0,
|
|
|
|
"id_grupo" INTEGER NOT NULL default 0,
|
|
|
|
"actualizacion" TIMESTAMP without time zone default CURRENT_TIMESTAMP,
|
|
|
|
"id_creator" varchar(60) default NULL,
|
|
|
|
"id_lastupdate" varchar(60) default NULL,
|
|
|
|
"id_agente_modulo" BIGINT NOT NULL,
|
2012-01-23 18:01:00 +01:00
|
|
|
"notify_email" INTEGER NOT NULL default 0,
|
2012-03-25 03:45:57 +02:00
|
|
|
"id_agent" INTEGER NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "tincidencia_id_1_idx" ON "tincidencia"("id_usuario","id_incidencia");
|
|
|
|
CREATE INDEX "tincidencia_id_agente_modulo_idx" ON "tincidencia"("id_agente_modulo");
|
|
|
|
--This function is for to tranlate "on update CURRENT_TIMESTAMP" of MySQL.
|
2011-02-27 06:25:53 +01:00
|
|
|
--It is in only one line because the parser of Pandora installer execute the code at the end with ;
|
|
|
|
CREATE OR REPLACE FUNCTION update_tincidencia_actualizacion() RETURNS TRIGGER AS $$ BEGIN NEW.actualizacion = now(); RETURN NEW; END; $$ language 'plpgsql';
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TRIGGER trigger_tincidencia_actualizacion BEFORE UPDATE ON tincidencia FOR EACH ROW EXECUTE PROCEDURE update_tincidencia_actualizacion();
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tlanguage`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tlanguage" (
|
2011-02-27 06:25:53 +01:00
|
|
|
"id_language" varchar(6) NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"name" varchar(100) NOT NULL default ''
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tlink`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tlink" (
|
|
|
|
"id_link" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default '',
|
|
|
|
"link" varchar(255) NOT NULL default ''
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tmensajes`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tmensajes" (
|
|
|
|
"id_mensaje" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_usuario_origen" varchar(60) NOT NULL default '',
|
|
|
|
"id_usuario_destino" varchar(60) NOT NULL default '',
|
|
|
|
"mensaje" TEXT NOT NULL,
|
|
|
|
"timestamp" BIGINT NOT NULL default 0,
|
|
|
|
"subject" varchar(255) NOT NULL default '',
|
|
|
|
"estado" INTEGER NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tmodule_group`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tmodule_group" (
|
|
|
|
"id_mg" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(150) NOT NULL default ''
|
|
|
|
);
|
|
|
|
|
2014-03-18 Alejandro Gallardo <alejandro.gallardo@artica.es>
* pandoradb.data.oracle.sql,
pandoradb.data.postgreSQL.sql,
pandoradb.sql,
extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql,
extras/pandoradb_migrate_5.0.x_to_5.1.oracle.sql,
extras/pandoradb_migrate_5.0.x_to_5.1.postgreSQL.sql:
Added the table "tmodule_relationship".
* operation/agentes/estado_generalagente.php: Added a
new table to show the network interfaces of the agent.
Minor fixes.
* include/styles/pandora.css: Added properties for the
class transparent'.
* include/ajax/module.php: Fixed an error and added code
to retrieve a module autocomplete input or add, remove
or update a module relation via ajax.
* include/functions_modules.php: Added the functions
"modules_get_relations", "modules_relation_exists",
"modules_add_relation", "modules_delete_relation" and
"modules_change_relation_lock".
* godmode/agentes/module_manager_editor_common.php:
Added a table and control to show, add or delete
relations with other modules. Added the javascript
functions "change_modules_autocomplete_input",
"add_new_relation", "change_lock_relation" and
"delete_relation".
* godmode/agentes/module_manager_editor.php: Added a
line to show the module relations table and control.
* godmode/agentes/module_manager_editor_network.php:
Minor fix.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9610 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-18 12:49:33 +01:00
|
|
|
-- ----------------------------------------------------------------------
|
|
|
|
-- Table `tmodule_relationship`
|
|
|
|
-- ----------------------------------------------------------------------
|
|
|
|
CREATE TABLE "tmodule_relationship" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"module_a" INTEGER NOT NULL REFERENCES tagente_modulo("id_agente_modulo")
|
|
|
|
ON DELETE CASCADE,
|
|
|
|
"module_b" INTEGER NOT NULL REFERENCES tagente_modulo("id_agente_modulo")
|
|
|
|
ON DELETE CASCADE,
|
|
|
|
"disable_update" SMALLINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tnetwork_component`
|
|
|
|
-- ---------------------------------------------------------------------
|
2013-01-23 15:20:54 +01:00
|
|
|
CREATE TYPE type_tlocal_component_wizard_level AS ENUM ('basic','advanced','nowizard');
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tnetwork_component" (
|
|
|
|
"id_nc" SERIAL NOT NULL PRIMARY KEY,
|
2013-09-16 11:55:48 +02:00
|
|
|
"name" text NOT NULL,
|
2014-05-11 10:10:48 +02:00
|
|
|
"description" text NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"id_group" INTEGER NOT NULL default 1,
|
|
|
|
"type" INTEGER NOT NULL default 6,
|
|
|
|
"max" BIGINT NOT NULL default 0,
|
|
|
|
"min" BIGINT NOT NULL default 0,
|
|
|
|
"module_interval" BIGINT NOT NULL default 0,
|
|
|
|
"tcp_port" INTEGER NOT NULL default 0,
|
|
|
|
"tcp_send" text NOT NULL,
|
|
|
|
"tcp_rcv" text NOT NULL,
|
|
|
|
"snmp_community" varchar(255) NOT NULL default 'NULL',
|
|
|
|
"snmp_oid" varchar(400) NOT NULL,
|
|
|
|
"id_module_group" INTEGER NOT NULL default 0,
|
|
|
|
"id_modulo" INTEGER NOT NULL default 0,
|
|
|
|
"id_plugin" INTEGER default 0,
|
|
|
|
"plugin_user" text default '',
|
|
|
|
"plugin_pass" text default '',
|
|
|
|
"plugin_parameter" text,
|
|
|
|
"max_timeout" INTEGER default 0,
|
2012-10-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php,
include/javascript/pandora_modules.js,
include/functions_network_components.php,
include/functions_api.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/menu.php,
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,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/servers/plugin.php,
godmode/menu.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: Added support for
custom timeout and retries to remote modules.
* operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf.php: Deleted from repository. Netflow reports are
now integrated into custom reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-29 11:13:49 +01:00
|
|
|
"max_retries" INTEGER default 0,
|
2011-02-09 15:16:27 +01:00
|
|
|
"history_data" SMALLINT default 1,
|
|
|
|
"min_warning" DOUBLE PRECISION default 0,
|
|
|
|
"max_warning" DOUBLE PRECISION default 0,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
"str_warning" text,
|
2011-02-09 15:16:27 +01:00
|
|
|
"min_critical" DOUBLE PRECISION default 0,
|
|
|
|
"max_critical" DOUBLE PRECISION default 0,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
"str_critical" text,
|
2011-02-09 15:16:27 +01:00
|
|
|
"min_ff_event" INTEGER default 0,
|
|
|
|
"custom_string_1" text default '',
|
|
|
|
"custom_string_2" text default '',
|
|
|
|
"custom_string_3" text default '',
|
|
|
|
"custom_integer_1" INTEGER default 0,
|
|
|
|
"custom_integer_2" INTEGER default 0,
|
2012-05-10 17:35:28 +02:00
|
|
|
"post_process" DOUBLE PRECISION default 0,
|
2012-07-05 18:45:40 +02:00
|
|
|
"unit" TEXT default '',
|
2013-01-23 15:20:54 +01:00
|
|
|
"wizard_level" type_tlocal_component_wizard_level default 'nowizard',
|
2012-09-10 18:00:14 +02:00
|
|
|
"macros" TEXT default '',
|
|
|
|
"critical_instructions" TEXT default '',
|
|
|
|
"warning_instructions" TEXT default '',
|
2012-09-18 11:46:05 +02:00
|
|
|
"unknown_instructions" TEXT default '',
|
|
|
|
"critical_inverse" SMALLINT NOT NULL default 0,
|
2012-12-05 13:55:44 +01:00
|
|
|
"warning_inverse" SMALLINT NOT NULL default 0,
|
2012-12-10 11:50:20 +01:00
|
|
|
"id_category" INTEGER NOT NULL default 0,
|
2013-08-27 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
godmode/agentes/module_manager_editor.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/configurar_agente.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php,
include/functions_events.php, include/functions.php,
include/javascript/pandora_modules.js,
include/functions_network_components.php,
include/functions_modules.php, include/constants.php, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: first version of
disabled unknown events for modules, now it is implemented in
modules, massive operations and components, but it is necesary in
local component, policy, api, cli, pandora server and recond task.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8701 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-08-27 15:05:30 +02:00
|
|
|
"tags" text NOT NULL,
|
2013-09-05 Ramon Novoa <rnovoa@artica.es>
* extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager_editor.php,
include/functions_modules.php,
pandoradb.sql: Added support for module macros.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8747 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-09-05 18:46:21 +02:00
|
|
|
"disabled_types_event" TEXT default '',
|
2014-05-25 09:55:26 +02:00
|
|
|
"module_macros" TEXT default '',
|
|
|
|
"min_ff_event_normal" INTEGER default 0,
|
|
|
|
"min_ff_event_warning" INTEGER default 0,
|
|
|
|
"min_ff_event_critical" INTEGER default 0,
|
|
|
|
"each_ff" SMALLINT default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tnetwork_component_group`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tnetwork_component_group" (
|
|
|
|
"id_sg" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(200) NOT NULL default '',
|
|
|
|
"parent" BIGINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tnetwork_profile`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tnetwork_profile" (
|
|
|
|
"id_np" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default '',
|
|
|
|
"description" varchar(250) default ''
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tnetwork_profile_component`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tnetwork_profile_component" (
|
|
|
|
"id_nc" BIGINT NOT NULL default 0,
|
|
|
|
"id_np" BIGINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tnetwork_profile_id_np_idx" ON "tnetwork_profile_component"("id_np");
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tnota`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tnota" (
|
|
|
|
"id_nota" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_incident" BIGINT NOT NULL,
|
|
|
|
"id_usuario" varchar(100) NOT NULL default '0',
|
|
|
|
"timestamp" TIMESTAMP without time zone default CURRENT_TIMESTAMP,
|
|
|
|
"nota" TEXT NOT NULL
|
|
|
|
);
|
|
|
|
CREATE INDEX "tnota_id_incident_idx" ON "tnota"("id_incident");
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `torigen`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "torigen" (
|
|
|
|
"origen" varchar(100) NOT NULL default ''
|
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `tperfil`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tperfil" (
|
|
|
|
"id_perfil" SERIAL NOT NULL PRIMARY KEY,
|
2011-04-14 06:50:54 +02:00
|
|
|
"name" TEXT NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"incident_edit" SMALLINT NOT NULL default 0,
|
|
|
|
"incident_view" SMALLINT NOT NULL default 0,
|
|
|
|
"incident_management" SMALLINT NOT NULL default 0,
|
|
|
|
"agent_view" SMALLINT NOT NULL default 0,
|
|
|
|
"agent_edit" SMALLINT NOT NULL default 0,
|
|
|
|
"alert_edit" SMALLINT NOT NULL default 0,
|
|
|
|
"user_management" SMALLINT NOT NULL default 0,
|
|
|
|
"db_management" SMALLINT NOT NULL default 0,
|
|
|
|
"alert_management" SMALLINT NOT NULL default 0,
|
2012-12-26 13:16:39 +01:00
|
|
|
"pandora_management" SMALLINT NOT NULL default 0,
|
|
|
|
"report_view" SMALLINT NOT NULL default 0,
|
|
|
|
"report_edit" SMALLINT NOT NULL default 0,
|
|
|
|
"report_management" SMALLINT NOT NULL default 0,
|
|
|
|
"event_view" SMALLINT NOT NULL default 0,
|
|
|
|
"event_edit" SMALLINT NOT NULL default 0,
|
2013-01-11 14:18:27 +01:00
|
|
|
"event_management" SMALLINT NOT NULL default 0,
|
|
|
|
"agent_disable" SMALLINT NOT NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `trecon_script`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "trecon_script" (
|
|
|
|
"id_recon_script" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) default '',
|
|
|
|
"description" TEXT default NULL,
|
2014-04-22 11:26:55 +02:00
|
|
|
"script" varchar(250) default '',
|
|
|
|
"macros" TEXT NOT NULL default ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table `trecon_task`
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "trecon_task" (
|
|
|
|
"id_rt" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default '',
|
|
|
|
"description" varchar(250) NOT NULL default '',
|
2012-08-16 17:46:49 +02:00
|
|
|
"subnet" TEXT default NULL,
|
2011-02-09 15:16:27 +01:00
|
|
|
"id_network_profile" INTEGER NOT NULL default 0,
|
|
|
|
"create_incident" INTEGER NOT NULL default 0,
|
|
|
|
"id_group" INTEGER NOT NULL default 1,
|
|
|
|
"utimestamp" BIGINT NOT NULL default 0,
|
|
|
|
"status" INTEGER NOT NULL default 0,
|
|
|
|
"interval_sweep" INTEGER NOT NULL default 0,
|
|
|
|
"id_recon_server" INTEGER NOT NULL default 0,
|
|
|
|
"id_os" INTEGER NOT NULL default 0,
|
|
|
|
"recon_ports" varchar(250) NOT NULL default '',
|
|
|
|
"snmp_community" varchar(64) NOT NULL default 'public',
|
|
|
|
"id_recon_script" INTEGER,
|
2012-08-16 17:46:49 +02:00
|
|
|
"field1" TEXT default NULL,
|
2011-02-09 15:16:27 +01:00
|
|
|
"field2" varchar(250) NOT NULL default '',
|
|
|
|
"field3" varchar(250) NOT NULL default '',
|
2011-07-01 14:41:56 +02:00
|
|
|
"field4" varchar(250) NOT NULL default '',
|
|
|
|
"os_detect" SMALLINT NOT NULL default 1,
|
|
|
|
"resolve_names" SMALLINT NOT NULL default 1,
|
|
|
|
"parent_detection" SMALLINT NOT NULL default 1,
|
2011-07-07 12:07:19 +02:00
|
|
|
"parent_recursion" SMALLINT NOT NULL default 1,
|
2014-04-22 11:26:55 +02:00
|
|
|
"disabled" SMALLINT NOT NULL default 1,
|
|
|
|
"macros" TEXT NOT NULL default ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "trecon_task_id_recon_server_idx" ON "trecon_task"("id_recon_server");
|
|
|
|
|
|
|
|
CREATE TABLE "tserver" (
|
|
|
|
"id_server" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default '',
|
|
|
|
"ip_address" varchar(100) NOT NULL default '',
|
|
|
|
"status" INTEGER NOT NULL default 0,
|
2011-05-09 17:10:31 +02:00
|
|
|
"laststart" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
|
|
|
"keepalive" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"snmp_server" INTEGER NOT NULL default 0,
|
|
|
|
"network_server" INTEGER NOT NULL default 0,
|
|
|
|
"data_server" INTEGER NOT NULL default 0,
|
|
|
|
"master" INTEGER NOT NULL default 0,
|
|
|
|
"checksum" INTEGER NOT NULL default 0,
|
|
|
|
"description" varchar(255) default NULL,
|
|
|
|
"recon_server" INTEGER NOT NULL default 0,
|
|
|
|
"version" varchar(20) NOT NULL default '',
|
|
|
|
"plugin_server" INTEGER NOT NULL default 0,
|
|
|
|
"prediction_server" INTEGER NOT NULL default 0,
|
|
|
|
"wmi_server" INTEGER NOT NULL default 0,
|
|
|
|
"export_server" INTEGER NOT NULL default 0,
|
|
|
|
"server_type" INTEGER NOT NULL default 0,
|
|
|
|
"queued_modules" INTEGER NOT NULL default 0,
|
|
|
|
"threads" INTEGER NOT NULL default 0,
|
|
|
|
"lag_time" INTEGER NOT NULL default 0,
|
|
|
|
"lag_modules" INTEGER NOT NULL default 0,
|
|
|
|
"total_modules_running" INTEGER NOT NULL default 0,
|
|
|
|
"my_modules" INTEGER NOT NULL default 0,
|
|
|
|
"stat_utimestamp" BIGINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tserver_name_idx" ON "tserver"("name");
|
|
|
|
CREATE INDEX "tserver_keepalive_idx" ON "tserver"("keepalive");
|
|
|
|
CREATE INDEX "tserver_status_idx" ON "tserver"("status");
|
|
|
|
|
|
|
|
-- server types:
|
|
|
|
-- 0 data
|
|
|
|
-- 1 network
|
|
|
|
-- 2 snmp trap console
|
|
|
|
-- 3 recon
|
|
|
|
-- 4 plugin
|
|
|
|
-- 5 prediction
|
|
|
|
-- 6 wmi
|
|
|
|
-- 7 export
|
|
|
|
-- 8 inventory
|
|
|
|
-- 9 web
|
|
|
|
-- TODO: drop 2.x xxxx_server fields, unused since server_type exists.
|
|
|
|
|
|
|
|
CREATE TABLE "tsesion" (
|
2011-04-19 18:30:53 +02:00
|
|
|
"id_sesion" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_usuario" varchar(60) NOT NULL default '0',
|
|
|
|
"ip_origen" varchar(100) NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"accion" varchar(100) NOT NULL default '',
|
|
|
|
"descripcion" text NOT NULL default '',
|
2011-05-09 17:10:31 +02:00
|
|
|
"fecha" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-09 15:16:27 +01:00
|
|
|
"utimestamp" BIGINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
CREATE INDEX "tsesion_utimestamp_idx" ON "tsesion"("utimestamp");
|
2011-04-19 18:30:53 +02:00
|
|
|
CREATE INDEX "tsesion_id_usuario_idx" ON "tsesion"("id_usuario");
|
2011-02-09 15:16:27 +01:00
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `ttipo_modulo`
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "ttipo_modulo" (
|
|
|
|
"id_tipo" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"nombre" varchar(100) NOT NULL default '',
|
|
|
|
"categoria" INTEGER NOT NULL default 0,
|
|
|
|
"descripcion" varchar(100) NOT NULL default '',
|
|
|
|
"icon" varchar(100) default NULL
|
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `ttrap`
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "ttrap" (
|
|
|
|
"id_trap" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"source" varchar(50) NOT NULL default '',
|
|
|
|
"oid" text NOT NULL default '',
|
|
|
|
"oid_custom" text default '',
|
|
|
|
"type" INTEGER NOT NULL default 0,
|
|
|
|
"type_custom" varchar(100) default '',
|
|
|
|
"value" text default '',
|
|
|
|
"value_custom" text default '',
|
|
|
|
"alerted" SMALLINT NOT NULL default 0,
|
|
|
|
"status" SMALLINT NOT NULL default 0,
|
|
|
|
"id_usuario" varchar(150) default '',
|
2011-05-09 17:10:31 +02:00
|
|
|
"timestamp" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-05-13 13:16:18 +02:00
|
|
|
"priority" INTEGER NOT NULL default 2,
|
|
|
|
"text" varchar(255) default '',
|
|
|
|
"description" varchar(255) default '',
|
|
|
|
"severity" INTEGER NOT NULL default 2
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tusuario`
|
|
|
|
-- -----------------------------------------------------
|
2013-01-23 15:20:54 +01:00
|
|
|
CREATE TYPE type_tusuario_metaconsole_access AS ENUM ('basic','advanced');
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tusuario" (
|
|
|
|
"id_user" varchar(60) NOT NULL PRIMARY KEY,
|
|
|
|
"fullname" varchar(255) NOT NULL,
|
|
|
|
"firstname" varchar(255) NOT NULL,
|
|
|
|
"lastname" varchar(255) NOT NULL,
|
2011-03-09 16:50:18 +01:00
|
|
|
"middlename" varchar(255) NOT NULL default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"password" varchar(45) default NULL,
|
|
|
|
"comments" varchar(200) default NULL,
|
|
|
|
"last_connect" BIGINT NOT NULL default 0,
|
|
|
|
"registered" BIGINT NOT NULL default 0,
|
|
|
|
"email" varchar(100) default NULL,
|
|
|
|
"phone" varchar(100) default NULL,
|
|
|
|
"is_admin" SMALLINT NOT NULL default 0,
|
|
|
|
"language" varchar(10) default NULL,
|
2011-02-14 13:17:29 +01:00
|
|
|
"timezone" varchar(50) default '',
|
|
|
|
"block_size" INTEGER NOT NULL default 20,
|
2011-05-13 13:16:18 +02:00
|
|
|
"flash_chart" INTEGER NOT NULL default 1,
|
2012-01-03 14:07:40 +01:00
|
|
|
"id_skin" INTEGER NOT NULL DEFAULT 0,
|
2014-05-11 11:01:59 +02:00
|
|
|
"disabled" INTEGER NOT NULL default 0,
|
2012-03-08 17:42:31 +01:00
|
|
|
"shortcut" SMALLINT DEFAULT 0,
|
2012-03-08 19:09:21 +01:00
|
|
|
"shortcut_data" text default '',
|
2012-03-25 03:45:57 +02:00
|
|
|
"section" varchar(255) NOT NULL DEFAULT '',
|
2012-05-17 13:08:11 +02:00
|
|
|
"data_section" varchar(255) NOT NULL DEFAULT '',
|
|
|
|
"force_change_pass" SMALLINT NOT NULL default 0,
|
|
|
|
"last_pass_change" BIGINT NOT NULL default 0,
|
|
|
|
"last_failed_login" BIGINT NOT NULL default 0,
|
2012-05-21 11:25:52 +02:00
|
|
|
"failed_attempt" INTEGER NOT NULL DEFAULT 0,
|
2012-07-05 18:45:40 +02:00
|
|
|
"login_blocked" SMALLINT NOT NULL default 0,
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
"not_login" SMALLINT NOT NULL default 0,
|
2013-04-22 12:31:20 +02:00
|
|
|
"metaconsole_agents_manager" SMALLINT DEFAULT 0,
|
|
|
|
"metaconsole_assigned_server" INTEGER NOT NULL default 0,
|
|
|
|
"metaconsole_access_node" SMALLINT DEFAULT 0,
|
2013-01-23 15:20:54 +01:00
|
|
|
"metaconsole_access" type_tusuario_metaconsole_access default 'basic'
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tusuario_perfil`
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tusuario_perfil" (
|
|
|
|
"id_up" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_usuario" varchar(100) NOT NULL default '',
|
|
|
|
"id_perfil" INTEGER NOT NULL default 0,
|
|
|
|
"id_grupo" INTEGER NOT NULL default 0,
|
2011-05-13 13:16:18 +02:00
|
|
|
"assigned_by" varchar(100) NOT NULL default '',
|
2013-01-09 10:25:07 +01:00
|
|
|
"id_policy" INTEGER DEFAULT 0 NOT NULL,
|
|
|
|
"tags" text NOT NULL
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tnews`
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tnews" (
|
|
|
|
"id_news" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"author" varchar(255) NOT NULL DEFAULT '',
|
|
|
|
"subject" varchar(255) NOT NULL DEFAULT '',
|
|
|
|
"text" TEXT NOT NULL,
|
2014-05-30 11:27:20 +02:00
|
|
|
"timestamp" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
|
|
|
"modal" SMALLINT DEFAULT 0,
|
|
|
|
"expire" SMALLINT DEFAULT 0,
|
|
|
|
"expire_timestamp" TIMESTAMP without time zone default '1970-01-01 00:00:00'
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tgraph`
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tgraph" (
|
|
|
|
"id_graph" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_user" varchar(100) NOT NULL default '',
|
|
|
|
"name" varchar(150) NOT NULL default '',
|
|
|
|
"description" TEXT NOT NULL,
|
|
|
|
"period" INTEGER NOT NULL default 0,
|
|
|
|
"width" INTEGER NOT NULL default 0,
|
|
|
|
"height" INTEGER NOT NULL default 0,
|
|
|
|
"private" SMALLINT NOT NULL default 0,
|
|
|
|
"events" SMALLINT NOT NULL default 0,
|
|
|
|
"stacked" SMALLINT NOT NULL default 0,
|
2012-02-23 12:28:26 +01:00
|
|
|
"id_group" BIGINT NOT NULL default 0,
|
|
|
|
"id_graph_template" INTEGER NOT NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tgraph_source`
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tgraph_source" (
|
|
|
|
"id_gs" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_graph" BIGINT NOT NULL default 0,
|
|
|
|
"id_agent_module" BIGINT NOT NULL default 0,
|
|
|
|
"weight" DOUBLE PRECISION default 0
|
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/reporting_builder.main.php,
godmode/reporting/reporting_builder.php,
include/functions_reports.php, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: now the reports
can set the group can edit or private edition.
* include/functions_users.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 15:12:53 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "treport"
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "treport" (
|
|
|
|
"id_report" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_user" varchar(100) NOT NULL default '',
|
|
|
|
"name" varchar(150) NOT NULL default '',
|
|
|
|
"description" TEXT NOT NULL,
|
|
|
|
"private" SMALLINT NOT NULL default 0,
|
|
|
|
"id_group" BIGINT NOT NULL default 0,
|
|
|
|
"custom_logo" varchar(200) default NULL,
|
|
|
|
"header" TEXT default NULL,
|
|
|
|
"first_page" TEXT default NULL,
|
|
|
|
"footer" TEXT default NULL,
|
2012-02-22 15:55:28 +01:00
|
|
|
"custom_font" varchar(200) default NULL,
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/reporting_builder.main.php,
godmode/reporting/reporting_builder.php,
include/functions_reports.php, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: now the reports
can set the group can edit or private edition.
* include/functions_users.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6889 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 15:12:53 +02:00
|
|
|
"id_template" BIGINT NOT NULL default 0,
|
2012-09-07 14:01:23 +02:00
|
|
|
"id_group_edit" BIGINT NOT NULL default 0,
|
2014-04-07 12:34:16 +02:00
|
|
|
"metaconsole" SMALLINT DEFAULT 0,
|
|
|
|
"non_interactive" SMALLINT DEFAULT 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "treport_content"
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "treport_content" (
|
|
|
|
"id_rc" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_report" INTEGER NOT NULL default 0 REFERENCES treport("id_report") ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
"id_gs" INTEGER default NULL,
|
|
|
|
"id_agent_module" BIGINT default NULL,
|
|
|
|
"type" varchar(30) default 'simple_graph',
|
|
|
|
"period" BIGINT NOT NULL default 0,
|
|
|
|
"order" BIGINT NOT NULL default 0,
|
2014-04-10 12:19:02 +02:00
|
|
|
"name" varchar(150) NULL,
|
2011-02-09 15:16:27 +01:00
|
|
|
"description" TEXT,
|
|
|
|
"id_agent" BIGINT NOT NULL default 0,
|
|
|
|
"text" TEXT default NULL,
|
|
|
|
"external_source" TEXT default NULL,
|
|
|
|
"treport_custom_sql_id" INTEGER default 0,
|
|
|
|
"header_definition" TEXT default NULL,
|
|
|
|
"column_separator" TEXT default NULL,
|
|
|
|
"line_separator" TEXT default NULL,
|
|
|
|
"time_from" TIME without time zone default '00:00:00',
|
|
|
|
"time_to" TIME without time zone default '00:00:00',
|
|
|
|
"monday" SMALLINT NOT NULL default 1,
|
|
|
|
"tuesday" SMALLINT NOT NULL default 1,
|
|
|
|
"wednesday" SMALLINT NOT NULL default 1,
|
|
|
|
"thursday" SMALLINT NOT NULL default 1,
|
|
|
|
"friday" SMALLINT NOT NULL default 1,
|
|
|
|
"saturday" SMALLINT NOT NULL default 1,
|
2011-02-09 15:53:35 +01:00
|
|
|
"sunday" SMALLINT NOT NULL default 1,
|
2011-03-23 13:57:26 +01:00
|
|
|
"only_display_wrong" SMALLINT NOT NULL default 0,
|
|
|
|
"top_n" INTEGER NOT NULL default 0,
|
|
|
|
"top_n_value" INTEGER NOT NULL default 10,
|
|
|
|
"exception_condition" INTEGER NOT NULL default 0,
|
|
|
|
"exception_condition_value" DOUBLE PRECISION NOT NULL default 0,
|
|
|
|
"show_resume" INTEGER NOT NULL default 0,
|
|
|
|
"order_uptodown" INTEGER NOT NULL default 0,
|
|
|
|
"show_graph" INTEGER NOT NULL default 0,
|
2011-03-28 16:35:08 +02:00
|
|
|
"group_by_agent" INTEGER NOT NULL default 0,
|
2011-04-06 17:42:05 +02:00
|
|
|
"style" TEXT NOT NULL DEFAULT '',
|
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
2011-05-20 13:44:35 +02:00
|
|
|
"id_module_group" INTEGER NOT NULL default 0,
|
|
|
|
"server_name" TEXT DEFAULT ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "treport_content_sla_combined"
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "treport_content_sla_combined" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_report_content" INTEGER NOT NULL REFERENCES treport_content("id_rc") ON UPDATE CASCADE ON DELETE CASCADE,
|
2011-05-20 13:44:35 +02:00
|
|
|
"id_agent_module" INTEGER NOT NULL,
|
2011-02-09 15:16:27 +01:00
|
|
|
"sla_max" DOUBLE PRECISION NOT NULL default 0,
|
|
|
|
"sla_min" DOUBLE PRECISION NOT NULL default 0,
|
2011-05-20 13:44:35 +02:00
|
|
|
"sla_limit" DOUBLE PRECISION NOT NULL default 0,
|
|
|
|
"server_name" TEXT DEFAULT ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "treport_content_item"
|
|
|
|
-- -----------------------------------------------------
|
2011-03-23 13:57:26 +01:00
|
|
|
CREATE TABLE "treport_content_item" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
2012-02-22 15:55:28 +01:00
|
|
|
"id_report_content" INTEGER NOT NULL REFERENCES treport_content("id_rc") ON UPDATE CASCADE ON DELETE CASCADE,
|
2011-05-20 13:44:35 +02:00
|
|
|
"id_agent_module" INTEGER NOT NULL,
|
2012-03-22 17:05:42 +01:00
|
|
|
"server_name" TEXT DEFAULT '',
|
|
|
|
"operation" TEXT DEFAULT ''
|
2011-03-23 13:57:26 +01:00
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "treport_custom_sql"
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "treport_custom_sql" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(150) NOT NULL default '',
|
|
|
|
"sql" TEXT default NULL
|
|
|
|
);
|
|
|
|
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "tlayout"
|
|
|
|
-- -----------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tlayout" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(50) NOT NULL,
|
|
|
|
"id_group" INTEGER NOT NULL,
|
|
|
|
"background" varchar(200) NOT NULL,
|
|
|
|
"fullscreen" SMALLINT NOT NULL default 0,
|
|
|
|
"height" INTEGER NOT NULL default 0,
|
|
|
|
"width" INTEGER NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-20 Miguel de Dios <miguel.dedios@artica.es>
* index.php, extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
general/login_page.php, general/logon_failed.php,
godmode/users/configure_user.php, include/api.php,
include/auth/mysql.php, pandoradb.sql, pandoradb.postgreSQL.sql,
pandoradb.oracle.sql: added the feature to set any user with
"not login" for only the user can work across the API.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6891 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-20 20:06:04 +02:00
|
|
|
-- Table "tlayout_data"
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tlayout_data" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_layout" INTEGER NOT NULL default 0,
|
|
|
|
"pos_x" INTEGER NOT NULL default 0,
|
|
|
|
"pos_y" INTEGER NOT NULL default 0,
|
|
|
|
"height" INTEGER NOT NULL default 0,
|
|
|
|
"width" INTEGER NOT NULL default 0,
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
"label" TEXT default '',
|
2011-02-09 15:16:27 +01:00
|
|
|
"image" varchar(200) DEFAULT '',
|
|
|
|
"type" SMALLINT NOT NULL default 0,
|
|
|
|
"period" INTEGER NOT NULL default 3600,
|
|
|
|
"id_agente_modulo" BIGINT NOT NULL default 0,
|
|
|
|
"id_agent" INTEGER NOT NULL default 0,
|
|
|
|
"id_layout_linked" INTEGER NOT NULL default 0,
|
|
|
|
"parent_item" INTEGER NOT NULL default 0,
|
|
|
|
"label_color" varchar(20) DEFAULT '',
|
2012-08-21 10:52:44 +02:00
|
|
|
"no_link_color" SMALLINT NOT NULL default 0,
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
"enable_link" SMALLINT NOT NULL default 1,
|
2014-03-20 Miguel de Dios <miguel.dedios@artica.es>
* images/group_green.disabled.png, images/group_green.png,
extras/pandoradb_migrate_5.0.x_to_5.1.postgreSQL.sql,
extras/pandoradb_migrate_5.0.x_to_5.1.oracle.sql,
extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql,
godmode/reporting/visual_console_builder.editor.js,
godmode/agentes/configurar_agente.php, include/styles/pandora.css,
include/functions_networkmap.php, include/functions_agents.php,
include/functions_visual_map_editor.php,
include/functions_modules.php, include/functions_groups.php,
include/constants.php, include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: added the feature to
show the item for groups in visualmap.
Incident: #671
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9621 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-20 17:43:42 +01:00
|
|
|
"id_metaconsole" INTEGER NOT NULL default 0,
|
2014-05-27 Miguel de Dios <miguel.dedios@artica.es>
* extras/pandoradb_migrate_5.0.x_to_5.1.postgreSQL.sql,
extras/pandoradb_migrate_5.0.x_to_5.1.oracle.sql,
extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql,
godmode/reporting/visual_console_builder.editor.js,
include/functions_custom_graphs.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_graph.php, include/functions_visual_map.php,
include/functions_visual_map_editor.php, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
operation/reporting/graph_viewer.php, pandoradb_data.sql: added the
custom graphs into the visualmaps.
Incident: #367
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10018 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-05-27 14:59:56 +02:00
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
|
|
|
"id_custom_graph" INTEGER NOT NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table "tplugin"
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tplugin" (
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(200) NOT NULL,
|
|
|
|
"description" TEXT,
|
|
|
|
"max_timeout" INTEGER NOT NULL default 0,
|
|
|
|
"max_retries" INTEGER NOT NULL default 0,
|
|
|
|
"execute" varchar(250) NOT NULL,
|
|
|
|
"net_dst_opt" varchar(50) default '',
|
|
|
|
"net_port_opt" varchar(50) default '',
|
|
|
|
"user_opt" varchar(50) default '',
|
|
|
|
"pass_opt" varchar(50) default '',
|
|
|
|
"plugin_type" SMALLINT NOT NULL default 0,
|
|
|
|
"macros" TEXT default '',
|
|
|
|
"parameters" TEXT default ''
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table "tmodule"
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tmodule" (
|
|
|
|
"id_module" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default ''
|
|
|
|
);
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table "tserver_export"
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TYPE type_tserver_export_connect_mode AS ENUM ('tentacle', 'ssh', 'local');
|
|
|
|
CREATE TABLE "tserver_export" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(100) NOT NULL default '',
|
|
|
|
"preffix" varchar(100) NOT NULL default '',
|
|
|
|
"interval" INTEGER NOT NULL default 300,
|
|
|
|
"ip_server" varchar(100) NOT NULL default '',
|
|
|
|
"connect_mode" type_tserver_export_connect_mode default 'local',
|
|
|
|
"id_export_server" INTEGER default NULL ,
|
|
|
|
"user" varchar(100) NOT NULL default '',
|
|
|
|
"pass" varchar(100) NOT NULL default '',
|
|
|
|
"port" INTEGER NOT NULL default 0,
|
|
|
|
"directory" varchar(100) NOT NULL default '',
|
|
|
|
"options" varchar(100) NOT NULL default '',
|
2011-02-27 06:25:53 +01:00
|
|
|
--Number of hours of diference with the server timezone
|
|
|
|
"timezone_offset" SMALLINT NOT NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table "tserver_export_data"
|
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- id_export_server is real pandora fms export server process that manages this server
|
|
|
|
-- id is the "destination" server to export
|
|
|
|
CREATE TABLE "tserver_export_data" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_export_server" INTEGER NOT NULL default 0,
|
|
|
|
"agent_name" varchar(100) NOT NULL default '',
|
|
|
|
"module_name" varchar(100) NOT NULL default '',
|
|
|
|
"module_type" varchar(100) NOT NULL default '',
|
|
|
|
"data" varchar(255) default NULL,
|
2011-05-09 17:10:31 +02:00
|
|
|
"timestamp" TIMESTAMP without time zone default '1970-01-01 00:00:00'
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-29 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
include/db/mysql.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/planned_downtime.list.php,
godmode/agentes/planned_downtime.editor.php, godmode/menu.php,
include/ajax/planned_downtime.ajax.php: refactoriced the code for
planned downtime, now this have new feature such as set a downtime
with a periodicity each week, each month and set the agents and
the modules with Quiet state instead the old form (but the old still
is). And the page is more easy and quickly to set or config a
planned downtime.
* godmode/alerts/configure_alert_template.php,
include/javascript/pandora.js: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 11:46:05 +02:00
|
|
|
-- Table "tplanned_downtime"
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tplanned_downtime" (
|
|
|
|
"id" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" VARCHAR( 100 ) NOT NULL,
|
|
|
|
"description" TEXT NOT NULL,
|
|
|
|
"date_from" BIGINT NOT NULL default 0,
|
|
|
|
"date_to" BIGINT NOT NULL default 0,
|
|
|
|
"executed" SMALLINT NOT NULL default 0,
|
2011-07-07 12:50:49 +02:00
|
|
|
"id_group" BIGINT NOT NULL default 0,
|
2012-08-29 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
include/db/mysql.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/planned_downtime.list.php,
godmode/agentes/planned_downtime.editor.php, godmode/menu.php,
include/ajax/planned_downtime.ajax.php: refactoriced the code for
planned downtime, now this have new feature such as set a downtime
with a periodicity each week, each month and set the agents and
the modules with Quiet state instead the old form (but the old still
is). And the page is more easy and quickly to set or config a
planned downtime.
* godmode/alerts/configure_alert_template.php,
include/javascript/pandora.js: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 11:46:05 +02:00
|
|
|
"only_alerts" SMALLINT NOT NULL default 0,
|
|
|
|
"monday" SMALLINT default 0,
|
|
|
|
"tuesday" SMALLINT default 0,
|
|
|
|
"wednesday" SMALLINT default 0,
|
|
|
|
"thursday" SMALLINT default 0,
|
|
|
|
"friday" SMALLINT default 0,
|
|
|
|
"saturday" SMALLINT default 0,
|
|
|
|
"sunday" SMALLINT default 0,
|
|
|
|
"periodically_time_from" TIME default NULL,
|
|
|
|
"periodically_time_to" TIME default NULL,
|
|
|
|
"periodically_day_from" SMALLINT default NULL,
|
|
|
|
"periodically_day_to" SMALLINT default NULL,
|
|
|
|
"type_downtime" VARCHAR( 100 ) NOT NULL default 'disabled_agents_alerts',
|
|
|
|
"type_execution" VARCHAR( 100 ) NOT NULL default 'once',
|
2013-03-07 18:20:41 +01:00
|
|
|
"type_periodicity" VARCHAR( 100 ) NOT NULL default 'weekly',
|
|
|
|
"id_user" varchar(100) NOT NULL default '0'
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-29 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
include/db/mysql.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/planned_downtime.list.php,
godmode/agentes/planned_downtime.editor.php, godmode/menu.php,
include/ajax/planned_downtime.ajax.php: refactoriced the code for
planned downtime, now this have new feature such as set a downtime
with a periodicity each week, each month and set the agents and
the modules with Quiet state instead the old form (but the old still
is). And the page is more easy and quickly to set or config a
planned downtime.
* godmode/alerts/configure_alert_template.php,
include/javascript/pandora.js: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 11:46:05 +02:00
|
|
|
-- Table "tplanned_downtime_agents"
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tplanned_downtime_agents" (
|
|
|
|
"id" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_agent" BIGINT NOT NULL default 0,
|
2014-05-11 10:10:48 +02:00
|
|
|
"id_downtime" BIGINT NOT NULL REFERENCES tplanned_downtime("id") ON DELETE CASCADE,
|
2012-08-29 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
include/db/mysql.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/planned_downtime.list.php,
godmode/agentes/planned_downtime.editor.php, godmode/menu.php,
include/ajax/planned_downtime.ajax.php: refactoriced the code for
planned downtime, now this have new feature such as set a downtime
with a periodicity each week, each month and set the agents and
the modules with Quiet state instead the old form (but the old still
is). And the page is more easy and quickly to set or config a
planned downtime.
* godmode/alerts/configure_alert_template.php,
include/javascript/pandora.js: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 11:46:05 +02:00
|
|
|
"all_modules" SMALLINT default 1
|
|
|
|
);
|
|
|
|
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-29 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
include/db/mysql.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/planned_downtime.list.php,
godmode/agentes/planned_downtime.editor.php, godmode/menu.php,
include/ajax/planned_downtime.ajax.php: refactoriced the code for
planned downtime, now this have new feature such as set a downtime
with a periodicity each week, each month and set the agents and
the modules with Quiet state instead the old form (but the old still
is). And the page is more easy and quickly to set or config a
planned downtime.
* godmode/alerts/configure_alert_template.php,
include/javascript/pandora.js: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 11:46:05 +02:00
|
|
|
-- Table "tplanned_downtime_modules"
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-08-29 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
include/db/mysql.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/planned_downtime.list.php,
godmode/agentes/planned_downtime.editor.php, godmode/menu.php,
include/ajax/planned_downtime.ajax.php: refactoriced the code for
planned downtime, now this have new feature such as set a downtime
with a periodicity each week, each month and set the agents and
the modules with Quiet state instead the old form (but the old still
is). And the page is more easy and quickly to set or config a
planned downtime.
* godmode/alerts/configure_alert_template.php,
include/javascript/pandora.js: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 11:46:05 +02:00
|
|
|
CREATE TABLE "tplanned_downtime_modules" (
|
|
|
|
"id" BIGSERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_agent" BIGINT NOT NULL default 0,
|
|
|
|
"id_agent_module" INTEGER NOT NULL default 0,
|
|
|
|
"id_downtime" BIGINT NOT NULL REFERENCES tplanned_downtime("id") ON DELETE CASCADE
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2012-08-29 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
include/db/mysql.php,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
godmode/agentes/planned_downtime.list.php,
godmode/agentes/planned_downtime.editor.php, godmode/menu.php,
include/ajax/planned_downtime.ajax.php: refactoriced the code for
planned downtime, now this have new feature such as set a downtime
with a periodicity each week, each month and set the agents and
the modules with Quiet state instead the old form (but the old still
is). And the page is more easy and quickly to set or config a
planned downtime.
* godmode/alerts/configure_alert_template.php,
include/javascript/pandora.js: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6919 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-29 11:46:05 +02:00
|
|
|
-- GIS extension Tables
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Table "tgis_data_history"
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
--Table to store historical GIS information of the agents
|
|
|
|
CREATE TABLE "tgis_data_history" (
|
2011-02-27 06:25:53 +01:00
|
|
|
--key of the table
|
|
|
|
"id_tgis_data" SERIAL NOT NULL PRIMARY KEY,
|
2011-02-09 15:16:27 +01:00
|
|
|
"longitude" DOUBLE PRECISION NOT NULL,
|
|
|
|
"latitude" DOUBLE PRECISION NOT NULL,
|
|
|
|
"altitude" DOUBLE PRECISION NOT NULL,
|
2011-02-27 06:25:53 +01:00
|
|
|
--timestamp on wich the agente started to be in this position
|
|
|
|
"start_timestamp" TIMESTAMP without time zone DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
--timestamp on wich the agent was placed for last time on this position
|
2011-05-09 17:10:31 +02:00
|
|
|
"end_timestamp" TIMESTAMP without time zone default '1970-01-01 00:00:00',
|
2011-02-27 06:25:53 +01:00
|
|
|
--description of the region correoponding to this placemnt
|
|
|
|
"description" TEXT DEFAULT NULL,
|
|
|
|
-- 0 to show that the position cames from the agent, 1 to show that the position was established manualy
|
|
|
|
"manual_placement" SMALLINT NOT NULL default 0,
|
|
|
|
-- Number of data packages received with this position from the start_timestampa to the_end_timestamp
|
|
|
|
"number_of_packages" INTEGER NOT NULL default 1,
|
|
|
|
--reference to the agent
|
|
|
|
"tagente_id_agente" INTEGER NOT NULL
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "tgis_data_history_start_timestamp_idx" ON "tgis_data_history"("start_timestamp");
|
|
|
|
CREATE INDEX "tgis_data_history_end_timestamp_idx" ON "tgis_data_history"("end_timestamp");
|
|
|
|
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Table "tgis_data_status"
|
2013-01-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql, pandoradb.oracle.sql, pandoradb.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql: changed in the
table "tlayout_data" the field "label" to text without limits.
* godmode/extensions.php, include/functions_tags.php,
include/functions_ui.php, include/functions_agents.php,
include/functions_config.php: cleaned source code style.
* godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/styles/pandora.css, include/styles/pandora_legacy.css,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/functions_visual_map_editor.php: added the formatted label
into the item label with the help of tiny_mce.
* include/javascript/tiny_mce/*: update the last version of
tiny_mce.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-24 12:30:37 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
--Table to store last GIS information of the agents
|
|
|
|
CREATE TABLE "tgis_data_status" (
|
2011-02-27 06:25:53 +01:00
|
|
|
--Reference to the agent
|
|
|
|
"tagente_id_agente" INTEGER NOT NULL REFERENCES "tagente"("id_agente") ON DELETE CASCADE ON UPDATE NO ACTION,
|
|
|
|
--Last received longitude
|
|
|
|
"current_longitude" DOUBLE PRECISION NOT NULL,
|
|
|
|
--Last received latitude
|
|
|
|
"current_latitude" DOUBLE PRECISION NOT NULL,
|
|
|
|
--Last received altitude
|
|
|
|
"current_altitude" DOUBLE PRECISION NOT NULL,
|
|
|
|
--Reference longitude to see if the agent has moved
|
|
|
|
"stored_longitude" DOUBLE PRECISION NOT NULL,
|
|
|
|
--Reference latitude to see if the agent has moved
|
|
|
|
"stored_latitude" DOUBLE PRECISION NOT NULL,
|
|
|
|
--Reference altitude to see if the agent has moved
|
|
|
|
"stored_altitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--Number of data packages received with this position since start_timestampa
|
|
|
|
"number_of_packages" INTEGER NOT NULL default 1,
|
|
|
|
--Timestamp on wich the agente started to be in this position
|
|
|
|
"start_timestamp" TIMESTAMP without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
--0 to show that the position cames from the agent, 1 to show that the position was established manualy
|
|
|
|
"manual_placement" SMALLINT NOT NULL default 0,
|
|
|
|
--description of the region correoponding to this placemnt
|
|
|
|
"description" TEXT NULL,
|
2011-02-09 15:16:27 +01:00
|
|
|
PRIMARY KEY("tagente_id_agente")
|
|
|
|
);
|
|
|
|
CREATE INDEX "tgis_data_status_start_timestamp_idx" ON "tgis_data_status"("start_timestamp");
|
|
|
|
CREATE INDEX "tgis_data_status_tagente_id_agente_idx" ON "tgis_data_status"("tagente_id_agente");
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "tgis_map"
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
--Table containing information about a gis map
|
|
|
|
CREATE TABLE "tgis_map" (
|
2011-02-27 06:25:53 +01:00
|
|
|
--table identifier
|
|
|
|
"id_tgis_map" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
--Name of the map
|
|
|
|
"map_name" VARCHAR(63) NOT NULL,
|
|
|
|
--longitude of the center of the map when it\'s loaded
|
|
|
|
"initial_longitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--latitude of the center of the map when it\'s loaded
|
|
|
|
"initial_latitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--altitude of the center of the map when it\'s loaded
|
|
|
|
"initial_altitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--Zoom level to show when the map is loaded.
|
|
|
|
"zoom_level" SMALLINT NOT NULL default 1,
|
|
|
|
--path on the server to the background image of the map
|
|
|
|
"map_background" VARCHAR(127) DEFAULT NULL,
|
|
|
|
--default longitude for the agents placed on the map
|
|
|
|
"default_longitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--default latitude for the agents placed on the map
|
|
|
|
"default_latitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--default altitude for the agents placed on the map
|
|
|
|
"default_altitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--Group that owns the map
|
|
|
|
"group_id" INTEGER NOT NULL default 0,
|
|
|
|
--1 if this is the default map, 0 in other case
|
|
|
|
"default_map" SMALLINT NOT NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "tgis_map_tagente_map_name_idx" ON "tgis_map"("map_name");
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "tgis_map_connection"
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
--Table to store the map connection information
|
|
|
|
CREATE TABLE "tgis_map_connection" (
|
2011-02-27 06:25:53 +01:00
|
|
|
--table id
|
|
|
|
"id_tmap_connection" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
--Name of the connection (name of the base layer)
|
|
|
|
"conection_name" VARCHAR(45) DEFAULT NULL,
|
|
|
|
--Type of map server to connect
|
|
|
|
"connection_type" VARCHAR(45) DEFAULT NULL,
|
|
|
|
--connection information (this can probably change to fit better the possible connection parameters)
|
|
|
|
"conection_data" TEXT DEFAULT NULL,
|
|
|
|
--Number of zoom levels available
|
|
|
|
"num_zoom_levels" SMALLINT DEFAULT NULL,
|
|
|
|
--Default Zoom Level for the connection
|
|
|
|
"default_zoom_level" SMALLINT NOT NULL default 16,
|
|
|
|
--default longitude for the agents placed on the map
|
|
|
|
"default_longitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--default latitude for the agents placed on the map
|
|
|
|
"default_latitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--default altitude for the agents placed on the map
|
|
|
|
"default_altitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--longitude of the center of the map when it\'s loaded
|
|
|
|
"initial_longitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--latitude of the center of the map when it\'s loaded
|
|
|
|
"initial_latitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--altitude of the center of the map when it\'s loaded
|
|
|
|
"initial_altitude" DOUBLE PRECISION DEFAULT NULL,
|
|
|
|
--Group that owns the map
|
|
|
|
"group_id" INTEGER NOT NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "tgis_map_has_tgis_map_connection"
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
--Table to asociate a connection to a gis map
|
|
|
|
CREATE TABLE "tgis_map_has_tgis_map_connection" (
|
2011-02-27 06:25:53 +01:00
|
|
|
--reference to tgis_map
|
|
|
|
"tgis_map_id_tgis_map" INTEGER NOT NULL REFERENCES "tgis_map"("id_tgis_map") ON DELETE CASCADE ON UPDATE NO ACTION,
|
|
|
|
--reference to tgis_map_connection
|
|
|
|
"tgis_map_connection_id_tmap_connection" INTEGER NOT NULL REFERENCES "tgis_map_connection" ("id_tmap_connection") ON DELETE CASCADE ON UPDATE NO ACTION,
|
|
|
|
--Last Modification Time of the Connection
|
|
|
|
"modification_time" TIMESTAMP without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
--Flag to mark the default map connection of a map
|
|
|
|
"default_map_connection" SMALLINT NOT NULL default 0,
|
2011-02-09 15:16:27 +01:00
|
|
|
PRIMARY KEY ("tgis_map_id_tgis_map", "tgis_map_connection_id_tmap_connection")
|
|
|
|
);
|
|
|
|
CREATE INDEX "tgis_map_has_tgis_map_connection_map_tgis_map_id_tgis_map_idx" ON "tgis_map_has_tgis_map_connection"("tgis_map_id_tgis_map");
|
|
|
|
CREATE INDEX "tgis_map_has_tgis_map_connection_map_tgis_map_connection_id_tmap_connection_idx" ON "tgis_map_has_tgis_map_connection"("tgis_map_connection_id_tmap_connection");
|
|
|
|
--This function is for to tranlate "ON UPDATE CURRENT_TIMESTAMP" of MySQL.
|
2011-02-27 06:25:53 +01:00
|
|
|
--It is in only one line because the parser of Pandora installer execute the code at the end with ;
|
|
|
|
CREATE OR REPLACE FUNCTION update_tgis_map_has_tgis_map_connection_modification_time() RETURNS TRIGGER AS $$ BEGIN NEW.modification_time = now(); RETURN NEW; END; $$ language 'plpgsql';
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TRIGGER trigger_tgis_map_has_tgis_map_connection_modification_time BEFORE UPDATE ON tgis_map_has_tgis_map_connection FOR EACH ROW EXECUTE PROCEDURE update_tgis_map_has_tgis_map_connection_modification_time();
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "tgis_map_layer"
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
--Table containing information about the map layers
|
|
|
|
CREATE TABLE "tgis_map_layer" (
|
2011-02-27 06:25:53 +01:00
|
|
|
--table id
|
|
|
|
"id_tmap_layer" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
--Name of the layer
|
|
|
|
"layer_name" VARCHAR(45) NOT NULL,
|
|
|
|
--True if the layer must be shown
|
|
|
|
"view_layer" SMALLINT NOT NULL default 1,
|
|
|
|
--Number of order of the layer in the layer stack, bigger means upper on the stack.\n
|
|
|
|
"layer_stack_order" SMALLINT NOT NULL default 0,
|
|
|
|
--reference to the map containing the layer
|
|
|
|
"tgis_map_id_tgis_map" INTEGER NOT NULL default 0 REFERENCES "tgis_map"("id_tgis_map") ON DELETE CASCADE ON UPDATE NO ACTION,
|
|
|
|
--reference to the group shown in the layer
|
|
|
|
"tgrupo_id_grupo" BIGINT NOT NULL
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
CREATE INDEX "tgis_map_layer_id_tmap_layer_idx" ON "tgis_map_layer"("id_tmap_layer");
|
|
|
|
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "tgis_map_layer_has_tagente"
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
--Table to define wich agents are shown in a layer
|
|
|
|
CREATE TABLE "tgis_map_layer_has_tagente" (
|
|
|
|
"tgis_map_layer_id_tmap_layer" INTEGER NOT NULL REFERENCES "tgis_map_layer"("id_tmap_layer") ON DELETE CASCADE ON UPDATE NO ACTION,
|
|
|
|
"tagente_id_agente" INTEGER NOT NULL REFERENCES "tagente"("id_agente") ON DELETE CASCADE ON UPDATE NO ACTION,
|
|
|
|
PRIMARY KEY ("tgis_map_layer_id_tmap_layer", "tagente_id_agente")
|
|
|
|
);
|
|
|
|
CREATE INDEX "tgis_map_layer_has_tagente_tgis_map_layer_id_tmap_layer_idx" ON "tgis_map_layer_has_tagente"("tgis_map_layer_id_tmap_layer");
|
|
|
|
CREATE INDEX "tgis_map_layer_has_tagente_tagente_id_agente_idx" ON "tgis_map_layer_has_tagente"("tagente_id_agente");
|
|
|
|
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Table "tgroup_stat"
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
--Table to store global system stats per group
|
|
|
|
CREATE TABLE "tgroup_stat" (
|
|
|
|
"id_group" INTEGER NOT NULL default 0 PRIMARY KEY,
|
|
|
|
"modules" INTEGER NOT NULL default 0,
|
|
|
|
"normal" INTEGER NOT NULL default 0,
|
|
|
|
"critical" INTEGER NOT NULL default 0,
|
|
|
|
"warning" INTEGER NOT NULL default 0,
|
|
|
|
"unknown" INTEGER NOT NULL default 0,
|
|
|
|
"non-init" INTEGER NOT NULL default 0,
|
|
|
|
"alerts" INTEGER NOT NULL default 0,
|
|
|
|
"alerts_fired" INTEGER NOT NULL default 0,
|
|
|
|
"agents" INTEGER NOT NULL default 0,
|
|
|
|
"agents_unknown" INTEGER NOT NULL default 0,
|
|
|
|
"utimestamp" INTEGER NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Table "tnetwork_map"
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tnetwork_map" (
|
|
|
|
"id_networkmap" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_user" VARCHAR(60) NOT NULL,
|
|
|
|
"name" VARCHAR(100) NOT NULL,
|
|
|
|
"type" VARCHAR(20) NOT NULL,
|
|
|
|
"layout" VARCHAR(20) NOT NULL,
|
|
|
|
"nooverlap" SMALLINT NOT NULL default 0,
|
|
|
|
"simple" SMALLINT NOT NULL default 0,
|
|
|
|
"regenerate" SMALLINT NOT NULL default 1,
|
|
|
|
"font_size" INTEGER NOT NULL default 12,
|
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
|
|
|
"id_module_group" INTEGER NOT NULL default 0,
|
|
|
|
"id_policy" INTEGER NOT NULL default 0,
|
|
|
|
"depth" VARCHAR(20) NOT NULL,
|
|
|
|
"only_modules_with_alerts" SMALLINT NOT NULL default 0,
|
|
|
|
"hide_policy_modules" SMALLINT NOT NULL default 0,
|
|
|
|
"zoom" DOUBLE PRECISION default 1,
|
|
|
|
"distance_nodes" DOUBLE PRECISION default 2.5,
|
|
|
|
"center" INTEGER NOT NULL default 0,
|
2011-07-04 15:07:04 +02:00
|
|
|
"contracted_nodes" TEXT,
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
"show_snmp_modules" SMALLINT NOT NULL default 0,
|
|
|
|
"text_filter" VARCHAR(100) DEFAULT '',
|
2012-10-09 17:51:33 +02:00
|
|
|
"dont_show_subgroups" INTEGER NOT NULL default 0,
|
2012-10-24 16:01:54 +02:00
|
|
|
"pandoras_children" INTEGER NOT NULL default 0,
|
|
|
|
"show_modules" INTEGER NOT NULL default 0,
|
2012-11-13 17:06:21 +01:00
|
|
|
"show_groups" INTEGER NOT NULL default 0,
|
|
|
|
"id_agent" INTEGER NOT NULL default 0,
|
|
|
|
"server_name" VARCHAR(100) NOT NULL,
|
2014-03-19 17:43:08 +01:00
|
|
|
"show_modulegroup" INTEGER NOT NULL default 0,
|
|
|
|
"l2_network" SMALLINT NOT NULL default 0
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
|
|
|
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Table "tsnmp_filter"
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tsnmp_filter" (
|
|
|
|
"id_snmp_filter" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"description" varchar(255) default '',
|
|
|
|
"filter" varchar(255) default ''
|
|
|
|
);
|
|
|
|
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Table "tagent_custom_fields"
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
------------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagent_custom_fields" (
|
|
|
|
"id_field" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(45) NOT NULL default '',
|
|
|
|
"display_on_front" SMALLINT NOT NULL default 0
|
|
|
|
);
|
|
|
|
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
-- Table "tagent_custom_data"
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-02-09 15:16:27 +01:00
|
|
|
CREATE TABLE "tagent_custom_data" (
|
|
|
|
"id_field" INTEGER NOT NULL REFERENCES tagent_custom_fields("id_field") ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
"id_agent" INTEGER NOT NULL REFERENCES tagente("id_agente") ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
"description" text default '',
|
2012-11-13 17:06:21 +01:00
|
|
|
PRIMARY KEY ("id_field", "id_agent")
|
2011-02-09 15:16:27 +01:00
|
|
|
);
|
2011-05-26 12:51:17 +02:00
|
|
|
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-05-26 12:51:17 +02:00
|
|
|
-- Table "ttag"
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-05-26 12:51:17 +02:00
|
|
|
|
|
|
|
CREATE TABLE "ttag" (
|
2012-11-13 17:06:21 +01:00
|
|
|
"id_tag" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" VARCHAR(100) NOT NULL default '',
|
|
|
|
"description" text NOT NULL default '',
|
2012-12-31 09:01:28 +01:00
|
|
|
"url" text NOT NULL default '',
|
2013-09-03 10:50:25 +02:00
|
|
|
"email" text NULL,
|
|
|
|
"phone" text NULL
|
2011-05-26 12:51:17 +02:00
|
|
|
);
|
|
|
|
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-05-26 12:51:17 +02:00
|
|
|
-- Table "ttag_module"
|
2012-11-13 17:06:21 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2011-05-26 12:51:17 +02:00
|
|
|
|
|
|
|
CREATE TABLE "ttag_module" (
|
|
|
|
"id_tag" INTEGER NOT NULL,
|
|
|
|
"id_agente_modulo" INTEGER NOT NULL DEFAULT 0,
|
|
|
|
PRIMARY KEY (id_tag, id_agente_modulo)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX "ttag_module_id_ag_modulo_idx" ON "ttag_module"("id_agente_modulo");
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table "ttag_policy_module"
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
CREATE TABLE "ttag_policy_module" (
|
|
|
|
"id_tag" INTEGER NOT NULL,
|
|
|
|
"id_policy_module" INTEGER NOT NULL DEFAULT 0,
|
|
|
|
PRIMARY KEY (id_tag, id_policy_module)
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX "ttag_poli_mod_id_pol_mo_idx" ON "ttag_policy_module"("id_policy_module");
|
|
|
|
|
2012-01-09 12:45:00 +01:00
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tnetflow_filter`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "tnetflow_filter" (
|
|
|
|
"id_sg" SERIAL NOT NULL PRIMARY KEY,
|
2012-01-17 15:01:49 +01:00
|
|
|
"id_name" varchar(600) NOT NULL default '',
|
2012-01-12 13:55:17 +01:00
|
|
|
"id_group" INTEGER,
|
2012-01-17 15:01:49 +01:00
|
|
|
"ip_dst" TEXT NOT NULL,
|
|
|
|
"ip_src" TEXT NOT NULL,
|
|
|
|
"dst_port" TEXT NOT NULL,
|
|
|
|
"src_port" TEXT NOT NULL,
|
|
|
|
"advanced_filter" TEXT NOT NULL,
|
2012-01-24 Ramon Novoa <rnovoa@artica.es>
* include/functions_config.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/configurar_agente.php,
godmode/menu.php,
godmode/netflow/nf_edit_form.php: Added support for enterprise
netflow modules.
* godmode/netflow/nf_manage.php: Moved to
godmode/setup/setup_netflow.php.
* godmode/netflow/nf_option_form.php: Removed from repository. Not used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5416 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-24 18:11:12 +01:00
|
|
|
"filter_args" TEXT NOT NULL,
|
2012-01-09 12:45:00 +01:00
|
|
|
"aggregate" varchar(60),
|
2012-01-10 16:23:56 +01:00
|
|
|
"output" varchar(60)
|
2012-01-09 12:45:00 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tnetflow_report`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "tnetflow_report" (
|
|
|
|
"id_report" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_name" varchar(150) NOT NULL default '',
|
|
|
|
"description" TEXT,
|
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
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,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
|
|
|
"id_group" INTEGER,
|
|
|
|
"server_name" TEXT
|
2012-01-09 12:45:00 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tnetflow_report_content`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "tnetflow_report_content" (
|
|
|
|
"id_rc" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_report" INTEGER NOT NULL default 0 REFERENCES tnetflow_report("id_report") ON DELETE CASCADE,
|
|
|
|
"id_filter" INTEGER NOT NULL default 0 REFERENCES tnetflow_filter("id_sg") ON DELETE CASCADE,
|
2012-10-23 Ramon Novoa <rnovoa@artica.es>
* include/functions_cron.php: Added to repository. Cron related
functions.
* include/functions_html.php, 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,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php: Added support for remote
cron modules.
* godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
operation/netflow/nf_view.php,
include/functions_netflow.php: Added a description to report items.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7083 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-23 12:45:25 +02:00
|
|
|
"description" TEXT,
|
2012-01-09 12:45:00 +01:00
|
|
|
"date" BIGINT NOT NULL default 0,
|
|
|
|
"period" INTEGER NOT NULL default 0,
|
|
|
|
"max" INTEGER NOT NULL default 0,
|
2012-01-13 13:11:00 +01:00
|
|
|
"show_graph" varchar(60),
|
|
|
|
"order" INTEGER NOT NULL default 0
|
2012-01-09 12:45:00 +01:00
|
|
|
);
|
2012-02-08 14:04:18 +01:00
|
|
|
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-02-08 14:04:18 +01:00
|
|
|
-- Table `tevent_filter`
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-02-08 14:04:18 +01:00
|
|
|
CREATE TABLE "tevent_filter" (
|
2012-11-07 18:49:31 +01:00
|
|
|
"id_filter" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_group_filter" INTEGER NOT NULL default 0,
|
|
|
|
"id_name" varchar(600) NOT NULL,
|
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
|
|
|
"event_type" TEXT NOT NULL default '',
|
|
|
|
"severity" INTEGER NOT NULL default -1,
|
|
|
|
"status" INTEGER NOT NULL default -1,
|
|
|
|
"search" TEXT default '',
|
|
|
|
"text_agent" TEXT default '',
|
|
|
|
"pagination" INTEGER NOT NULL default 25,
|
|
|
|
"event_view_hr" INTEGER NOT NULL default 8,
|
|
|
|
"id_user_ack" TEXT,
|
|
|
|
"group_rep" INTEGER NOT NULL default 0,
|
|
|
|
"tag_with" text NOT NULL,
|
|
|
|
"tag_without" text NOT NULL,
|
|
|
|
"filter_only_alert" INTEGER NOT NULL default -1
|
|
|
|
);
|
|
|
|
|
|
|
|
-- ---------------------------------------------------------------------
|
2012-05-30 14:07:26 +02:00
|
|
|
-- Table `tpassword_history`
|
2012-11-07 18:49:31 +01:00
|
|
|
-- ---------------------------------------------------------------------
|
2012-07-08 16:34:50 +02:00
|
|
|
CREATE TABLE "tpassword_history" (
|
2012-11-07 18:49:31 +01:00
|
|
|
"id_pass" INTEGER NOT NULL PRIMARY KEY,
|
|
|
|
"id_user" varchar(60) NOT NULL,
|
|
|
|
"password" varchar(45) default NULL,
|
|
|
|
"date_begin" BIGINT NOT NULL default 0,
|
2014-05-11 10:10:48 +02:00
|
|
|
"date_end" BIGINT NOT NULL default 0
|
2012-05-30 14:07:26 +02:00
|
|
|
);
|
2012-10-10 12:46:19 +02:00
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tevent_response`
|
|
|
|
-- -----------------------------------------------------
|
2014-07-21 14:24:16 +02:00
|
|
|
CREATE TABLE "tevent_response" (
|
2012-10-10 12:46:19 +02:00
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"name" varchar(600) NOT NULL default '',
|
|
|
|
"description" TEXT,
|
|
|
|
"target" TEXT,
|
|
|
|
"type" varchar(60) NOT NULL,
|
|
|
|
"id_group" INTEGER NOT NULL default 0,
|
|
|
|
"modal_width" INTEGER NOT NULL DEFAULT 0,
|
|
|
|
"modal_height" INTEGER NOT NULL DEFAULT 0,
|
|
|
|
"new_window" INTEGER NOT NULL DEFAULT 0,
|
2014-05-11 10:10:48 +02:00
|
|
|
"params" TEXT
|
2012-10-10 12:46:19 +02:00
|
|
|
);
|
2012-12-05 13:55:44 +01:00
|
|
|
|
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table "tcategory"
|
|
|
|
-- ---------------------------------------------------------------------
|
2014-07-21 14:24:16 +02:00
|
|
|
CREATE TABLE "tcategory" (
|
2012-12-05 13:55:44 +01:00
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
2014-05-11 10:10:48 +02:00
|
|
|
"name" varchar(600) NOT NULL default ''
|
2012-12-05 13:55:44 +01:00
|
|
|
);
|
2012-12-10 16:52:51 +01:00
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tupdate_settings`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "tupdate_settings" (
|
|
|
|
"key" varchar(255) default '' PRIMARY KEY,
|
|
|
|
"value" varchar(255) default ''
|
|
|
|
);
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tupdate_package`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "tupdate_package"(
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"timestamp" TIMESTAMP without time zone default NULL,
|
|
|
|
"description" varchar(255) default ''
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TYPE type_tupdate_type AS ENUM ('code', 'db_data', 'db_schema', 'binary');
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tupdate`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "tupdate" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"type" type_tupdate_type,
|
|
|
|
"id_update_package" INTEGER default 0 REFERENCES "tupdate_package"("id") ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
"filename" varchar(250) default '',
|
|
|
|
"checksum" varchar(250) default '',
|
|
|
|
"previous_checksum" varchar(250) default '',
|
|
|
|
"svn_version" INTEGER default 0,
|
|
|
|
"data" TEXT default '',
|
|
|
|
"data_rollback" TEXT default '',
|
|
|
|
"description" TEXT default '',
|
|
|
|
"db_table_name" varchar(140) default '',
|
|
|
|
"db_field_name" varchar(140) default '',
|
|
|
|
"db_field_value" varchar(1024) default ''
|
|
|
|
);
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
-- Table `tupdate_journal`
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
CREATE TABLE "tupdate_journal" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_update" INTEGER default 0 REFERENCES "tupdate"("id") ON UPDATE CASCADE ON DELETE CASCADE
|
|
|
|
);
|
|
|
|
|
2014-03-31 17:00:16 +02:00
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
-- Table talert_snmp_action
|
|
|
|
-- ---------------------------------------------------------------------
|
|
|
|
CREATE TABLE "talert_snmp_action" (
|
|
|
|
"id" SERIAL NOT NULL PRIMARY KEY,
|
|
|
|
"id_alert_snmp" INTEGER default 0,
|
|
|
|
"alert_type" INTEGER default 0,
|
|
|
|
"al_field1" TEXT default '',
|
|
|
|
"al_field2" TEXT default '',
|
|
|
|
"al_field3" TEXT default '',
|
|
|
|
"al_field4" TEXT default '',
|
|
|
|
"al_field5" TEXT default '',
|
|
|
|
"al_field6" TEXT default '',
|
|
|
|
"al_field7" TEXT default '',
|
|
|
|
"al_field8" TEXT default '',
|
|
|
|
"al_field9" TEXT default '',
|
|
|
|
"al_field10" TEXT default ''
|
|
|
|
);
|