2008-07-30 20:39:40 +02:00
|
|
|
-- Pandora FMS - the Flexible Monitoring System
|
|
|
|
-- ============================================
|
2008-04-07 00:18:33 +02:00
|
|
|
-- Copyright (c) 2008 Artica Soluciones Tecnológicas, http://www.artica.es
|
|
|
|
-- Please see http://pandora.sourceforge.net for full contribution list
|
2008-02-21 16:16:54 +01:00
|
|
|
|
2008-04-07 00:18:33 +02:00
|
|
|
-- 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 !!!
|
2008-12-18 12:41:20 +01:00
|
|
|
-- -----------------------------------------------------------
|
2008-03-26 17:47:39 +01:00
|
|
|
-- Pandora FMS official tables for 2.0 version --
|
2008-12-18 12:41:20 +01:00
|
|
|
-- -----------------------------------------------------------
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `taddress` (
|
|
|
|
`id_a` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`ip` varchar(60) NOT NULL default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`ip_pack` int(10) unsigned NOT NULL default '0',
|
2008-07-09 18:41:13 +02:00
|
|
|
PRIMARY KEY (`id_a`),
|
|
|
|
KEY `ip` (`ip`)
|
2008-08-05 13:42:08 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `taddress_agent` (
|
2007-03-12 18:58:52 +01:00
|
|
|
`id_ag` bigint(20) unsigned NOT NULL auto_increment,
|
|
|
|
`id_a` bigint(20) unsigned NOT NULL default '0',
|
|
|
|
`id_agent` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id_ag`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tagente` (
|
|
|
|
`id_agente` int(10) unsigned NOT NULL auto_increment,
|
2006-03-27 05:37:27 +02:00
|
|
|
`nombre` varchar(100) NOT NULL default '',
|
2008-07-09 18:41:13 +02:00
|
|
|
`direccion` varchar(100) default NULL,
|
2006-03-27 05:37:27 +02:00
|
|
|
`comentarios` varchar(255) default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`id_grupo` int(10) unsigned NOT NULL default '0',
|
2007-04-18 19:17:06 +02:00
|
|
|
`ultimo_contacto` datetime NOT NULL default '0000-00-00 00:00:00',
|
2007-03-12 18:58:52 +01:00
|
|
|
`modo` tinyint(1) NOT NULL default '0',
|
2008-08-05 13:42:08 +02:00
|
|
|
`intervalo` int(11) unsigned NOT NULL default '300',
|
2007-03-28 16:51:39 +02:00
|
|
|
`id_os` int(10) unsigned default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`os_version` varchar(100) default '',
|
|
|
|
`agent_version` varchar(100) default '',
|
|
|
|
`ultimo_contacto_remoto` datetime default '0000-00-00 00:00:00',
|
2007-03-12 18:58:52 +01:00
|
|
|
`disabled` tinyint(2) NOT NULL default '0',
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_network_server` smallint(4) unsigned default '0',
|
|
|
|
`id_plugin_server` smallint(4) unsigned default '0',
|
|
|
|
`id_prediction_server` smallint(4) unsigned default '0',
|
|
|
|
`id_wmi_server` smallint(4) unsigned default '0',
|
|
|
|
`id_parent` int(10) unsigned default '0',
|
2008-12-23 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql, include/config.php, pandoradb.sql,
godmode/groups/configure_group.php,
godmode/groups/group_list.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/agent_manager.php: Added support for a custom ID to
agents, modules and groups.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 14:12:03 +01:00
|
|
|
`custom_id` varchar(255) default '',
|
2008-07-02 21:48:27 +02:00
|
|
|
PRIMARY KEY (`id_agente`),
|
2008-07-09 18:41:13 +02:00
|
|
|
KEY `nombre` (`nombre`),
|
|
|
|
KEY `direccion` (`direccion`),
|
|
|
|
KEY `disabled` (`disabled`),
|
|
|
|
KEY `id_grupo` (`id_grupo`)
|
2008-08-05 13:42:08 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tagente_datos` (
|
|
|
|
`id_agente_datos` bigint(20) unsigned NOT NULL auto_increment,
|
|
|
|
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
2006-09-21 18:30:34 +02:00
|
|
|
`datos` double(18,2) default NULL,
|
2006-03-27 05:37:27 +02:00
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_agente` int(10) unsigned NOT NULL default '0',
|
|
|
|
`utimestamp` bigint(20) default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_agente_datos`),
|
2008-04-09 16:50:15 +02:00
|
|
|
KEY `data_index2` (`id_agente`,`id_agente_modulo`),
|
|
|
|
KEY `data_index1` (`id_agente_modulo`)
|
2008-08-05 13:42:08 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tagente_datos_inc` (
|
|
|
|
`id_adi` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
2007-12-13 23:51:37 +01:00
|
|
|
`datos` double(18,2) default NULL,
|
2006-03-27 05:37:27 +02:00
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
2008-08-05 13:42:08 +02:00
|
|
|
`utimestamp` int(20) unsigned default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_adi`),
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
KEY `data_inc_index_1` (`id_agente_modulo`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tagente_datos_string` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_tagente_datos_string` bigint(20) unsigned NOT NULL auto_increment,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
2008-02-21 16:16:54 +01:00
|
|
|
`datos` text NOT NULL,
|
2006-03-27 05:37:27 +02:00
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_agente` int(10) unsigned NOT NULL default '0',
|
|
|
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_tagente_datos_string`),
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
KEY `data_string_index_1` (`id_agente`,`id_agente_modulo`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
CREATE TABLE `tagente_estado` (
|
|
|
|
`id_agente_estado` int(10) unsigned NOT NULL auto_increment,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_agente_modulo` int(10) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`datos` varchar(255) NOT NULL default '',
|
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
2008-08-05 13:42:08 +02:00
|
|
|
`cambio` int(4) NOT NULL default '0',
|
|
|
|
`estado` int(4) NOT NULL default '0',
|
|
|
|
`id_agente` int(10) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`last_try` datetime default NULL,
|
2007-03-12 18:58:52 +01:00
|
|
|
`utimestamp` bigint(20) NOT NULL default '0',
|
2008-08-05 13:42:08 +02:00
|
|
|
`current_interval` int(8) unsigned NOT NULL default '0',
|
|
|
|
`running_by` smallint(4) unsigned default '0',
|
2007-07-18 20:01:06 +02:00
|
|
|
`last_execution_try` bigint(20) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_agente_estado`),
|
2008-07-09 18:41:13 +02:00
|
|
|
KEY `status_index_1` (`id_agente_modulo`),
|
|
|
|
KEY `status_index_2` (`id_agente_modulo`,`estado`),
|
|
|
|
KEY `current_interval` (`current_interval`),
|
|
|
|
KEY `running_by` (`running_by`),
|
|
|
|
KEY `last_execution_try` (`last_execution_try`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-28 16:51:39 +02:00
|
|
|
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
-- 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
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
|
2007-04-18 11:58:26 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tagente_modulo` (
|
|
|
|
`id_agente_modulo` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`id_agente` int(10) unsigned NOT NULL default '0',
|
|
|
|
`id_tipo_modulo` smallint(5) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`descripcion` varchar(100) NOT NULL default '',
|
|
|
|
`nombre` varchar(100) NOT NULL default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`max` bigint(20) default '0',
|
|
|
|
`min` bigint(20) default '0',
|
|
|
|
`module_interval` int(4) unsigned default '0',
|
|
|
|
`tcp_port` int(4) unsigned default '0',
|
2008-08-05 13:42:08 +02:00
|
|
|
`tcp_send` varchar(255) default '',
|
|
|
|
`tcp_rcv` varchar(255) default '',
|
2006-03-27 05:37:27 +02:00
|
|
|
`snmp_community` varchar(100) default '',
|
|
|
|
`snmp_oid` varchar(255) default '0',
|
|
|
|
`ip_target` varchar(100) default '',
|
|
|
|
`id_module_group` int(4) unsigned default '0',
|
2008-08-05 13:42:08 +02:00
|
|
|
`flag` tinyint(1) unsigned default '1',
|
|
|
|
`id_modulo` int(10) unsigned default '0',
|
|
|
|
`disabled` tinyint(1) unsigned default '0',
|
|
|
|
`id_export` smallint(4) unsigned default '0',
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
`plugin_user` varchar(250) default '',
|
|
|
|
`plugin_pass` varchar(250) default '',
|
2008-07-09 18:41:13 +02:00
|
|
|
`plugin_parameter` text,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_plugin` int(10) default '0',
|
2008-09-18 14:01:32 +02:00
|
|
|
`post_process` double(18,13) default NULL,
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
`prediction_module` bigint(14) default '0',
|
2008-08-05 13:42:08 +02:00
|
|
|
`max_timeout` int(4) unsigned default '0',
|
2008-12-23 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql, include/config.php, pandoradb.sql,
godmode/groups/configure_group.php,
godmode/groups/group_list.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/agent_manager.php: Added support for a custom ID to
agents, modules and groups.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 14:12:03 +01:00
|
|
|
`custom_id` varchar(255) default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
PRIMARY KEY (`id_agente_modulo`),
|
|
|
|
KEY `main_idx` (`id_agente_modulo`,`id_agente`),
|
2008-07-09 18:41:13 +02:00
|
|
|
KEY `tam_agente` (`id_agente`),
|
|
|
|
KEY `id_tipo_modulo` (`id_tipo_modulo`),
|
|
|
|
KEY `tam_plugin` (`id_plugin`),
|
|
|
|
KEY `disabled` (`disabled`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
-- snmp_oid is also used for WMI query
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tagent_access` (
|
|
|
|
`id_ac` bigint(20) unsigned NOT NULL auto_increment,
|
|
|
|
`id_agent` int(10) unsigned NOT NULL default '0',
|
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`utimestamp` bigint(20) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id_ac`),
|
|
|
|
KEY `agent_index` (`id_agent`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `talert_snmp` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_as` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`id_alert` int(10) unsigned NOT NULL default '0',
|
|
|
|
`al_field1` varchar(100) NOT NULL default '',
|
|
|
|
`al_field2` varchar(255) NOT NULL default '',
|
|
|
|
`al_field3` varchar(255) NOT NULL default '',
|
|
|
|
`description` varchar(255) default '',
|
|
|
|
`alert_type` int(2) unsigned NOT NULL default '0',
|
|
|
|
`agent` varchar(100) default '',
|
|
|
|
`custom_oid` varchar(200) default '',
|
|
|
|
`oid` varchar(255) NOT NULL default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`time_threshold` int(11) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`times_fired` int(2) unsigned NOT NULL default '0',
|
2007-04-18 19:17:06 +02:00
|
|
|
`last_fired` datetime NOT NULL default '0000-00-00 00:00:00',
|
2007-03-12 18:58:52 +01:00
|
|
|
`max_alerts` int(11) NOT NULL default '1',
|
|
|
|
`min_alerts` int(11) NOT NULL default '1',
|
2006-03-27 05:37:27 +02:00
|
|
|
`internal_counter` int(2) unsigned NOT NULL default '0',
|
2008-06-13 Sancho Lerena <slerena@gmail.com>
* index.php: Added pure (Fullscreen). HTML code cleanup and user session.
* pandoradb.sql: talert_snmp: Added priority field.
* pandoradb_data.sql: Changes default values in talerta. tconfig_os, tgrupo
and some links.
* header.php: Fixed some user session management.
* logon_ok.php: New design for welcome screen, odometer is over.
* menu.php, godmode/menu.php: Some ACL improvements.
* agent_disk_conf_editor.php: Minor fix in view link.
* configurar_agente.php, agent_manager.php: Added parent combo and better
ACL checks. New remote configuration control for get timestamp info of
config file.
* modify_alert.php: Changes to use new internal Mail alert.
* config.php: Some items moved to config_process. (font, attachment and
default style).
* functions.php: Added form_agent_combo(), form_event_type_combo(),
form_priority() and return_priority() functions.
* functions_db.php: Added smal_event_table() to render a variable table
with latest events (filtered).
* pandora.css. Added pure and priority colors.
* estado_alertas.php: Fixed ACL problems.
* stado_generalagente.php: Graph of modules now represents modules that
has generated events. Old graph is not used anymore. Also display parent.
* estado_grupo.php: Border of boxes is now thicker.
* tactical.php: New screen, almost all code changed. Odometer is not used
anymore, added some new items, like module LAG meter, module sanity, and
other general metrics.
* ver_agente.php: Now renders also event for each agent view. Alert manual
validation generate a new event.
* events.php: New event system. 90% new code. A LOT of new features,
including full screen, coloured (by priority) and filters by six fields.
* snmp_alert.php: Added support for alert priority.
* operation/users/user.php: No longer a user with UM privileges could
see any other user.
* render_view.php: Added fullscreen support for visual maps.
* fgraph.php: Added support for session checking in graphs (at least!).
New graphics for events (some changed it's function like events by group),
and feature added to progress GD implementation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 18:59:54 +02:00
|
|
|
`priority` tinyint(4) default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_as`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `talerta` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_alerta` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`nombre` varchar(100) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`comando` varchar(500) default '',
|
2006-03-27 05:37:27 +02:00
|
|
|
`descripcion` varchar(255) default '',
|
|
|
|
PRIMARY KEY (`id_alerta`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tcompound_alert` (
|
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`id_aam` int(10) unsigned NOT NULL default '0',
|
2008-03-26 17:47:39 +01:00
|
|
|
`operation` enum('NOP', 'AND','OR','XOR','NAND','NOR','NXOR'),
|
|
|
|
PRIMARY KEY (`id`, `id_aam`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2008-02-21 16:16:54 +01:00
|
|
|
|
|
|
|
CREATE TABLE `talerta_agente_modulo` (
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_aam` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`id_agente_modulo` int(10) unsigned NOT NULL default '0',
|
|
|
|
`id_alerta` int(10) unsigned NOT NULL default '0',
|
2008-02-21 16:16:54 +01:00
|
|
|
`al_campo1` varchar(255) default '',
|
|
|
|
`al_campo2` varchar(255) default '',
|
|
|
|
`al_campo3` mediumtext NOT NULL,
|
|
|
|
`descripcion` varchar(255) default '',
|
|
|
|
`dis_max` double(18,2) default NULL,
|
|
|
|
`dis_min` double(18,2) default NULL,
|
2008-08-05 13:42:08 +02:00
|
|
|
`time_threshold` int(10) NOT NULL default '0',
|
2008-02-21 16:16:54 +01:00
|
|
|
`last_fired` datetime NOT NULL default '0000-00-00 00:00:00',
|
2008-08-05 13:42:08 +02:00
|
|
|
`max_alerts` int(4) unsigned NOT NULL default '1',
|
|
|
|
`times_fired` int(3) NOT NULL default '0',
|
|
|
|
`module_type` int(10) unsigned NOT NULL default '0',
|
|
|
|
`min_alerts` int(4) unsigned NOT NULL default '0',
|
2008-02-21 16:16:54 +01:00
|
|
|
`internal_counter` int(4) default '0',
|
|
|
|
`alert_text` varchar(255) default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`disable` tinyint(3) default '0',
|
|
|
|
`time_from` time default '00:00:00',
|
|
|
|
`time_to` time default '00:00:00',
|
|
|
|
`id_agent` int(10) default NULL,
|
|
|
|
`monday` tinyint(1) default '1',
|
|
|
|
`tuesday` tinyint(1) default '1',
|
|
|
|
`wednesday` tinyint(1) default '1',
|
|
|
|
`thursday` tinyint(1) default '1',
|
|
|
|
`friday` tinyint(1) default '1',
|
|
|
|
`saturday` tinyint(1) default '1',
|
|
|
|
`sunday` tinyint(1) default '1',
|
|
|
|
`recovery_notify` tinyint(1) default '0',
|
2008-04-03 17:43:34 +02:00
|
|
|
`priority` tinyint(4) default '0',
|
|
|
|
`al_f2_recovery` varchar(255) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`al_f3_recovery` mediumtext NOT NULL,
|
2009-01-08 12:53:14 +01:00
|
|
|
`flag` tinyint(1) unsigned default '0',
|
2008-07-02 21:48:27 +02:00
|
|
|
PRIMARY KEY (`id_aam`),
|
|
|
|
KEY `id_agente_modulo` (`id_agente_modulo`),
|
|
|
|
KEY `disable` (`disable`)
|
2008-02-21 16:16:54 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2008-04-01 15:53:11 +02:00
|
|
|
|
2008-06-13 Sancho Lerena <slerena@gmail.com>
* index.php: Added pure (Fullscreen). HTML code cleanup and user session.
* pandoradb.sql: talert_snmp: Added priority field.
* pandoradb_data.sql: Changes default values in talerta. tconfig_os, tgrupo
and some links.
* header.php: Fixed some user session management.
* logon_ok.php: New design for welcome screen, odometer is over.
* menu.php, godmode/menu.php: Some ACL improvements.
* agent_disk_conf_editor.php: Minor fix in view link.
* configurar_agente.php, agent_manager.php: Added parent combo and better
ACL checks. New remote configuration control for get timestamp info of
config file.
* modify_alert.php: Changes to use new internal Mail alert.
* config.php: Some items moved to config_process. (font, attachment and
default style).
* functions.php: Added form_agent_combo(), form_event_type_combo(),
form_priority() and return_priority() functions.
* functions_db.php: Added smal_event_table() to render a variable table
with latest events (filtered).
* pandora.css. Added pure and priority colors.
* estado_alertas.php: Fixed ACL problems.
* stado_generalagente.php: Graph of modules now represents modules that
has generated events. Old graph is not used anymore. Also display parent.
* estado_grupo.php: Border of boxes is now thicker.
* tactical.php: New screen, almost all code changed. Odometer is not used
anymore, added some new items, like module LAG meter, module sanity, and
other general metrics.
* ver_agente.php: Now renders also event for each agent view. Alert manual
validation generate a new event.
* events.php: New event system. 90% new code. A LOT of new features,
including full screen, coloured (by priority) and filters by six fields.
* snmp_alert.php: Added support for alert priority.
* operation/users/user.php: No longer a user with UM privileges could
see any other user.
* render_view.php: Added fullscreen support for visual maps.
* fgraph.php: Added support for session checking in graphs (at least!).
New graphics for events (some changed it's function like events by group),
and feature added to progress GD implementation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 18:59:54 +02:00
|
|
|
-- Priority : 0 - Maintance (grey)
|
|
|
|
-- Priority : 1 - Low (green)
|
|
|
|
-- Priority : 2 - Normal (blue)
|
|
|
|
-- Priority : 3 - Warning (yellow)
|
|
|
|
-- Priority : 4 - Critical (red)
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tattachment` (
|
|
|
|
`id_attachment` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`id_incidencia` int(10) unsigned NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_usuario` varchar(60) NOT NULL default '',
|
|
|
|
`filename` varchar(255) NOT NULL default '',
|
|
|
|
`description` varchar(150) default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`size` bigint(20) unsigned NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_attachment`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tconfig` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_config` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`token` varchar(100) NOT NULL default '',
|
|
|
|
`value` varchar(100) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id_config`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tconfig_os` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_os` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(100) NOT NULL default '',
|
|
|
|
`description` varchar(250) default '',
|
|
|
|
`icon_name` varchar(100) default '',
|
|
|
|
PRIMARY KEY (`id_os`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tevento` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_evento` bigint(20) unsigned NOT NULL auto_increment,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_agente` int(10) NOT NULL default '0',
|
|
|
|
`id_usuario` varchar(100) NOT NULL default '0',
|
|
|
|
`id_grupo` mediumint(4) NOT NULL default '0',
|
|
|
|
`estado` tinyint(3) unsigned NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`evento` varchar(255) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`utimestamp` bigint(20) NOT NULL default '0',
|
|
|
|
`event_type` enum('unknown','monitor_up','monitor_down','alert_fired','alert_recovered','alert_ceased','alert_manual_validation','recon_host_detected','system','error','new_agent') default 'unknown',
|
|
|
|
`id_agentmodule` int(10) NOT NULL default '0',
|
|
|
|
`id_alert_am` int(10) NOT NULL default '0',
|
|
|
|
`criticity` int(4) unsigned NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_evento`),
|
2007-03-12 18:58:52 +01:00
|
|
|
KEY `indice_1` (`id_agente`,`id_evento`),
|
2008-02-25 19:08:52 +01:00
|
|
|
KEY `indice_2` (`utimestamp`,`id_evento`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-06-13 Sancho Lerena <slerena@gmail.com>
* index.php: Added pure (Fullscreen). HTML code cleanup and user session.
* pandoradb.sql: talert_snmp: Added priority field.
* pandoradb_data.sql: Changes default values in talerta. tconfig_os, tgrupo
and some links.
* header.php: Fixed some user session management.
* logon_ok.php: New design for welcome screen, odometer is over.
* menu.php, godmode/menu.php: Some ACL improvements.
* agent_disk_conf_editor.php: Minor fix in view link.
* configurar_agente.php, agent_manager.php: Added parent combo and better
ACL checks. New remote configuration control for get timestamp info of
config file.
* modify_alert.php: Changes to use new internal Mail alert.
* config.php: Some items moved to config_process. (font, attachment and
default style).
* functions.php: Added form_agent_combo(), form_event_type_combo(),
form_priority() and return_priority() functions.
* functions_db.php: Added smal_event_table() to render a variable table
with latest events (filtered).
* pandora.css. Added pure and priority colors.
* estado_alertas.php: Fixed ACL problems.
* stado_generalagente.php: Graph of modules now represents modules that
has generated events. Old graph is not used anymore. Also display parent.
* estado_grupo.php: Border of boxes is now thicker.
* tactical.php: New screen, almost all code changed. Odometer is not used
anymore, added some new items, like module LAG meter, module sanity, and
other general metrics.
* ver_agente.php: Now renders also event for each agent view. Alert manual
validation generate a new event.
* events.php: New event system. 90% new code. A LOT of new features,
including full screen, coloured (by priority) and filters by six fields.
* snmp_alert.php: Added support for alert priority.
* operation/users/user.php: No longer a user with UM privileges could
see any other user.
* render_view.php: Added fullscreen support for visual maps.
* fgraph.php: Added support for session checking in graphs (at least!).
New graphics for events (some changed it's function like events by group),
and feature added to progress GD implementation.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-13 18:59:54 +02:00
|
|
|
-- Criticity: 0 - Maintance (grey)
|
|
|
|
-- Criticity: 1 - Low (green)
|
|
|
|
-- Criticity: 2 - Normal (blue)
|
|
|
|
-- Criticity: 3 - Warning (yellow)
|
|
|
|
-- Criticity: 4 - Critical (red)
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tgrupo` (
|
|
|
|
`id_grupo` mediumint(4) unsigned NOT NULL auto_increment,
|
2006-03-27 05:37:27 +02:00
|
|
|
`nombre` varchar(100) NOT NULL default '',
|
|
|
|
`icon` varchar(50) default NULL,
|
2008-08-05 13:42:08 +02:00
|
|
|
`parent` mediumint(4) unsigned NOT NULL default '0',
|
|
|
|
`disabled` tinyint(3) unsigned NOT NULL default '0',
|
2008-12-23 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql, include/config.php, pandoradb.sql,
godmode/groups/configure_group.php,
godmode/groups/group_list.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/agent_manager.php: Added support for a custom ID to
agents, modules and groups.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1303 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-23 14:12:03 +01:00
|
|
|
`custom_id` varchar(255) default '',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_grupo`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tincidencia` (
|
2008-12-10 21:15:38 +01:00
|
|
|
`id_incidencia` bigint(6) unsigned zerofill NOT NULL auto_increment,
|
2006-03-27 05:37:27 +02:00
|
|
|
`inicio` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`cierre` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`titulo` varchar(100) NOT NULL default '',
|
|
|
|
`descripcion` mediumtext NOT NULL,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_usuario` varchar(60) NOT NULL default '',
|
2006-03-27 05:37:27 +02:00
|
|
|
`origen` varchar(100) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`estado` int(10) NOT NULL default '0',
|
|
|
|
`prioridad` int(10) NOT NULL default '0',
|
|
|
|
`id_grupo` mediumint(4) unsigned NOT NULL default '0',
|
2008-12-10 21:15:38 +01:00
|
|
|
`actualizacion` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_creator` varchar(60) default NULL,
|
2008-12-10 21:15:38 +01:00
|
|
|
`id_lastupdate` varchar(60) default NULL,
|
|
|
|
`id_agente_modulo` bigint(100) NOT NULL,
|
2008-08-05 13:42:08 +02:00
|
|
|
`notify_email` tinyint(3) unsigned NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_incidencia`),
|
2008-12-10 21:15:38 +01:00
|
|
|
KEY `incident_index_1` (`id_usuario`,`id_incidencia`),
|
|
|
|
KEY `id_agente_modulo` (`id_agente_modulo`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS`tlanguage` (
|
2007-03-19 22:27:10 +01:00
|
|
|
`id_language` varchar(6) NOT NULL default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`name` varchar(100) NOT NULL default '',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_language`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tlink` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_link` int(10) unsigned zerofill NOT NULL auto_increment,
|
|
|
|
`name` varchar(100) NOT NULL default '',
|
|
|
|
`link` varchar(255) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id_link`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tmensajes` (
|
|
|
|
`id_mensaje` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`id_usuario_origen` varchar(60) NOT NULL default '',
|
|
|
|
`id_usuario_destino` varchar(60) NOT NULL default '',
|
2006-03-27 05:37:27 +02:00
|
|
|
`mensaje` tinytext NOT NULL,
|
2007-04-18 19:17:06 +02:00
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
2006-03-27 05:37:27 +02:00
|
|
|
`subject` varchar(255) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`estado` int(4) unsigned NOT NULL default '0',
|
2007-03-12 18:58:52 +01:00
|
|
|
PRIMARY KEY (`id_mensaje`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tmodule_group` (
|
|
|
|
`id_mg` tinyint(4) unsigned NOT NULL auto_increment,
|
2006-03-27 05:37:27 +02:00
|
|
|
`name` varchar(150) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id_mg`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tnetwork_component` (
|
|
|
|
`id_nc` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(80) NOT NULL,
|
2007-03-12 18:58:52 +01:00
|
|
|
`description` varchar(250) default NULL,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_group` int(6) NOT NULL default '1',
|
2007-03-12 18:58:52 +01:00
|
|
|
`type` smallint(6) NOT NULL default '6',
|
|
|
|
`max` bigint(20) NOT NULL default '0',
|
|
|
|
`min` bigint(20) NOT NULL default '0',
|
|
|
|
`module_interval` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`tcp_port` int(10) unsigned NOT NULL default '0',
|
|
|
|
`tcp_send` varchar(255) NOT NULL,
|
|
|
|
`tcp_rcv` varchar(255) NOT NULL default 'NULL',
|
|
|
|
`snmp_community` varchar(255) NOT NULL default 'NULL',
|
|
|
|
`snmp_oid` varchar(400) NOT NULL,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_module_group` tinyint(4) unsigned NOT NULL default '0',
|
|
|
|
`id_modulo` int(10) unsigned default '0',
|
2008-07-31 Ramon Novoa <rnovoa@artica.es>
* include/help/en/help_wmiquery.php,
include/help/en/help_wmifield.php,
include/help/en/help_wmikey.php: Added to repository. WMI help pages.
* include/languages/language_en.php, pandoradb.sql,
pandoradb_data.sql,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_components.php: Added support for WMI
modules, including components and templates.
* godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php: Added to
repository. Component editors.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@991 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-07-31 13:26:02 +02:00
|
|
|
`plugin_user` varchar(250) default '',
|
|
|
|
`plugin_pass` varchar(250) default '',
|
|
|
|
`plugin_parameter` text,
|
|
|
|
`max_timeout` tinyint(3) unsigned default '0',
|
2007-03-12 18:58:52 +01:00
|
|
|
PRIMARY KEY (`id_nc`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tnetwork_component_group` (
|
|
|
|
`id_sg` int(10) unsigned NOT NULL auto_increment,
|
2007-03-12 18:58:52 +01:00
|
|
|
`name` varchar(200) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`parent` mediumint(8) unsigned NOT NULL default '0',
|
2007-03-12 18:58:52 +01:00
|
|
|
PRIMARY KEY (`id_sg`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tnetwork_profile` (
|
|
|
|
`id_np` int(10) unsigned NOT NULL auto_increment,
|
2007-03-12 18:58:52 +01:00
|
|
|
`name` varchar(100) NOT NULL default '',
|
|
|
|
`description` varchar(250) default '',
|
|
|
|
PRIMARY KEY (`id_np`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tnetwork_profile_component` (
|
2008-10-20 19:25:37 +02:00
|
|
|
`id_nc` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`id_np` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
KEY `id_np` (`id_np`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tnota` (
|
2008-12-10 21:15:38 +01:00
|
|
|
`id_nota` bigint(6) unsigned zerofill NOT NULL auto_increment,
|
|
|
|
`id_incident` bigint(6) unsigned zerofill NOT NULL,
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_usuario` varchar(100) NOT NULL default '0',
|
2008-12-10 21:15:38 +01:00
|
|
|
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
2006-03-27 05:37:27 +02:00
|
|
|
`nota` mediumtext NOT NULL,
|
2008-12-10 21:15:38 +01:00
|
|
|
PRIMARY KEY (`id_nota`),
|
|
|
|
KEY `id_incident` (`id_incident`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `torigen` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`origen` varchar(100) NOT NULL default ''
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tperfil` (
|
2007-03-12 18:58:52 +01:00
|
|
|
`id_perfil` int(10) unsigned NOT NULL auto_increment,
|
2006-03-27 05:37:27 +02:00
|
|
|
`name` varchar(60) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`incident_edit` tinyint(3) NOT NULL default '0',
|
|
|
|
`incident_view` tinyint(3) NOT NULL default '0',
|
|
|
|
`incident_management` tinyint(3) NOT NULL default '0',
|
|
|
|
`agent_view` tinyint(3) NOT NULL default '0',
|
|
|
|
`agent_edit` tinyint(3) NOT NULL default '0',
|
|
|
|
`alert_edit` tinyint(3) NOT NULL default '0',
|
|
|
|
`user_management` tinyint(3) NOT NULL default '0',
|
|
|
|
`db_management` tinyint(3) NOT NULL default '0',
|
|
|
|
`alert_management` tinyint(3) NOT NULL default '0',
|
|
|
|
`pandora_management` tinyint(3) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_perfil`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `trecon_task` (
|
2007-03-12 18:58:52 +01:00
|
|
|
`id_rt` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(100) NOT NULL default '',
|
|
|
|
`description` varchar(250) NOT NULL default '',
|
2007-03-28 15:08:10 +02:00
|
|
|
`subnet` varchar(64) NOT NULL default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`id_network_profile` int(10) unsigned NOT NULL default '0',
|
|
|
|
`create_incident` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`id_group` int(10) unsigned NOT NULL default '1',
|
|
|
|
`utimestamp` bigint(20) unsigned NOT NULL default '0',
|
|
|
|
`status` tinyint(4) NOT NULL default '0',
|
2007-03-28 15:08:10 +02:00
|
|
|
`interval_sweep` int(10) unsigned NOT NULL default '0',
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_recon_server` int(10) unsigned NOT NULL default '0',
|
|
|
|
`id_os` tinyint(4) NOT NULL default '0',
|
2008-07-09 18:41:13 +02:00
|
|
|
PRIMARY KEY (`id_rt`),
|
2008-08-05 13:42:08 +02:00
|
|
|
KEY `recon_task_daemon` (`id_recon_server`)
|
2008-07-09 18:41:13 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tserver` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_server` int(10) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(100) NOT NULL default '',
|
|
|
|
`ip_address` varchar(100) NOT NULL default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`status` int(11) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`laststart` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`keepalive` datetime NOT NULL default '0000-00-00 00:00:00',
|
2007-03-12 18:58:52 +01:00
|
|
|
`snmp_server` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`network_server` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`data_server` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`master` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`checksum` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`description` varchar(255) default NULL,
|
|
|
|
`recon_server` tinyint(3) unsigned NOT NULL default '0',
|
2007-03-28 15:08:10 +02:00
|
|
|
`version` varchar(20) NOT NULL default '',
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
`plugin_server` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`prediction_server` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`wmi_server` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
`export_server` tinyint(3) unsigned NOT NULL default '0',
|
2008-07-02 21:48:27 +02:00
|
|
|
PRIMARY KEY (`id_server`),
|
|
|
|
KEY `name` (`name`),
|
|
|
|
KEY `keepalive` (`keepalive`),
|
|
|
|
KEY `status` (`status`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tsesion` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`ID_sesion` bigint(4) unsigned NOT NULL auto_increment,
|
|
|
|
`ID_usuario` varchar(60) NOT NULL default '0',
|
|
|
|
`IP_origen` varchar(100) NOT NULL default '',
|
|
|
|
`accion` varchar(100) NOT NULL default '',
|
|
|
|
`descripcion` varchar(200) NOT NULL default '',
|
|
|
|
`fecha` datetime NOT NULL default '0000-00-00 00:00:00',
|
2007-03-28 15:08:10 +02:00
|
|
|
`utimestamp` bigint(20) unsigned NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`ID_sesion`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `ttipo_modulo` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_tipo` smallint(5) unsigned NOT NULL auto_increment,
|
|
|
|
`nombre` varchar(100) NOT NULL default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`categoria` int(11) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`descripcion` varchar(100) NOT NULL default '',
|
|
|
|
`icon` varchar(100) default NULL,
|
|
|
|
PRIMARY KEY (`id_tipo`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `ttrap` (
|
2007-03-12 18:58:52 +01:00
|
|
|
`id_trap` bigint(20) unsigned NOT NULL auto_increment,
|
2006-03-27 05:37:27 +02:00
|
|
|
`source` varchar(50) NOT NULL default '',
|
|
|
|
`oid` varchar(255) NOT NULL default '',
|
|
|
|
`oid_custom` varchar(255) default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`type` int(11) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`type_custom` varchar(100) default '',
|
|
|
|
`value` varchar(255) default '',
|
|
|
|
`value_custom` varchar(255) default '',
|
2007-03-12 18:58:52 +01:00
|
|
|
`alerted` smallint(6) NOT NULL default '0',
|
|
|
|
`status` smallint(6) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_usuario` varchar(150) default '',
|
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
2008-10-22 17:05:15 +02:00
|
|
|
`priority` tinyint(4) unsigned NOT NULL default '2',
|
2006-03-27 05:37:27 +02:00
|
|
|
PRIMARY KEY (`id_trap`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tusuario` (
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_usuario` varchar(60) NOT NULL default '0',
|
|
|
|
`nombre_real` varchar(125) NOT NULL default '',
|
|
|
|
`password` varchar(45) default NULL,
|
|
|
|
`comentarios` varchar(200) default NULL,
|
|
|
|
`fecha_registro` datetime NOT NULL default '0000-00-00 00:00:00',
|
|
|
|
`direccion` varchar(100) default '',
|
|
|
|
`telefono` varchar(100) default '',
|
2008-10-22 11:36:09 +02:00
|
|
|
`nivel` tinyint(1) NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id_usuario`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tusuario_perfil` (
|
|
|
|
`id_up` bigint(10) unsigned NOT NULL auto_increment,
|
2006-03-27 05:37:27 +02:00
|
|
|
`id_usuario` varchar(100) NOT NULL default '',
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_perfil` int(10) unsigned NOT NULL default '0',
|
|
|
|
`id_grupo` int(10) NOT NULL default '0',
|
2006-03-27 05:37:27 +02:00
|
|
|
`assigned_by` varchar(100) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id_up`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2007-03-12 18:58:52 +01:00
|
|
|
|
2007-04-13 20:47:58 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tnews` (
|
2007-04-13 20:47:58 +02:00
|
|
|
`id_news` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`author` varchar(255) NOT NULL DEFAULT '',
|
|
|
|
`subject` varchar(255) NOT NULL DEFAULT '',
|
2007-04-18 19:17:06 +02:00
|
|
|
`text` TEXT NOT NULL,
|
2007-06-08 17:55:53 +02:00
|
|
|
`timestamp` DATETIME NOT NULL DEFAULT 0,
|
2007-04-13 20:47:58 +02:00
|
|
|
PRIMARY KEY(`id_news`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tgraph` (
|
2007-04-19 20:50:07 +02:00
|
|
|
`id_graph` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_user` varchar(100) NOT NULL default '',
|
|
|
|
`name` varchar(150) NOT NULL default '',
|
|
|
|
`description` TEXT NOT NULL,
|
|
|
|
`period` int(11) NOT NULL default '0',
|
|
|
|
`width` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
|
|
|
|
`height` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
|
|
|
|
`private` tinyint(1) UNSIGNED NOT NULL default 0,
|
|
|
|
`events` tinyint(1) UNSIGNED NOT NULL default 0,
|
2008-04-24 01:29:50 +02:00
|
|
|
`stacked` tinyint(1) UNSIGNED NOT NULL default 0,
|
2007-04-19 20:50:07 +02:00
|
|
|
PRIMARY KEY(`id_graph`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tgraph_source` (
|
2007-04-19 20:50:07 +02:00
|
|
|
`id_gs` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_graph` int(11) NOT NULL default 0,
|
|
|
|
`id_agent_module` int(11) NOT NULL default 0,
|
|
|
|
`weight` smallint(5) UNSIGNED NOT NULL DEFAULT 0,
|
|
|
|
PRIMARY KEY(`id_gs`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `treport` (
|
2007-04-19 20:50:07 +02:00
|
|
|
`id_report` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_user` varchar(100) NOT NULL default '',
|
|
|
|
`name` varchar(150) NOT NULL default '',
|
|
|
|
`description` TEXT NOT NULL,
|
|
|
|
`private` tinyint(1) UNSIGNED NOT NULL default 0,
|
2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:30:44 +02:00
|
|
|
`id_group` mediumint(8) unsigned NULL default NULL,
|
|
|
|
PRIMARY KEY(`id_report`),
|
|
|
|
FOREIGN KEY (`id_group`) REFERENCES tgrupo(`id_grupo`)
|
|
|
|
ON UPDATE CASCADE ON DELETE CASCADE
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `treport_content` (
|
2007-04-19 20:50:07 +02:00
|
|
|
`id_rc` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_report` INTEGER UNSIGNED NOT NULL default 0,
|
2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:30:44 +02:00
|
|
|
`id_gs` INTEGER UNSIGNED NULL default NULL,
|
|
|
|
`id_agent_module` bigint(14) unsigned NULL default NULL,
|
|
|
|
`type` enum ('simple_graph', 'custom_graph', 'SLA', 'event_report', 'alert_report', 'monitor_report', 'avg_value', 'max_value', 'min_value', 'sumatory', 'general_group_report', 'monitor_health', 'agents_detailed') default 'simple_graph',
|
2007-04-19 20:50:07 +02:00
|
|
|
`period` int(11) NOT NULL default 0,
|
2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:30:44 +02:00
|
|
|
`order` int (11) NOT NULL default 0,
|
2008-06-17 18:03:33 +02:00
|
|
|
PRIMARY KEY(`id_rc`)
|
2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:30:44 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `treport_content_sla_combined` (
|
2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:30:44 +02:00
|
|
|
`id` INTEGER UNSIGNED NOT NULL auto_increment,
|
|
|
|
`id_report_content` INTEGER UNSIGNED NOT NULL,
|
2008-08-05 13:42:08 +02:00
|
|
|
`id_agent_module` int(10) unsigned NOT NULL,
|
2007-06-07 19:46:38 +02:00
|
|
|
`sla_max` int(11) NOT NULL default 0,
|
|
|
|
`sla_min` int(11) NOT NULL default 0,
|
|
|
|
`sla_limit` int(11) NOT NULL default 0,
|
2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:30:44 +02:00
|
|
|
PRIMARY KEY(`id`),
|
|
|
|
FOREIGN KEY (`id_report_content`) REFERENCES treport_content(`id_rc`)
|
2008-08-05 13:42:08 +02:00
|
|
|
ON UPDATE CASCADE ON DELETE CASCADE,
|
2008-06-17 Esteban Sanchez <estebans@artica.es>
* ajax.php: Added to repository. AJAX interface for Pandora. A new
time is coming...
* pandoradb.sql: Added id_group to treport. A report is now assigned
to a group of agents. Changes in treport_content to add an order
field, drop sla fields and use an enum for the type. NOTE: This will
break all your current defined reports, update under your
responsabillity. Added table treport_content_sla_combined to define
SLAs in the SLA types reports.
* godmode/reporting/graph_builder.php: Use Pandora functions. Adde
javascript code to display the module icon when changing from the
dropdown menu.
* godmode/reporting/reporting_builder.php: Almost complet rewritten to
use Pandora HTML functions. Style correction.
* include/functions.php: Added new report types. Style correction.
* include/functions_db.php: Use Pandora database functions to get
simple values. Added functions get_agents_in_group(),
get_modules_in_agent(), get_simple_alerts_in_agent(),
get_combined_alerts_in_agent(), get_alerts_in_agent(),
get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(),
get_alert_fires_in_period(),
get_alert_last_fire_timestamp_in_period(). Deleted debug output and
fixed calling to an inexistent function in
return_moduledata_sum_value().
* include/functions_html.php: Tab style correction. Thanks to Ramon
for the advice. Fixed some errors on print_table that was causing not
to work fine if rowclass or colspan was defined.
* include/functions_reporting.php: Adde date support to
return_module_SLA(), event_reporting(). Added alert_reporting(),
monitor_health_reporting(), general_group_reporting() and
agents_detailed_reporting() to implement new report types. Style
correction.
* include/javascript/pandora.js: Added html_entity_decode() function
to decode some AJAX results.
* javascript/jquery.js: Added to repository. jQuery version 1.2.4a
* include/javascript/jquery.timeentry.js: jQuery plugin to manage time
inputs.
* include/javascript/jquery.ui.datepicker.js: jQuery plugin to manage
date inputs in a dropdown calendar.
* include/languages/date_*.js, include/languages/time_*.js: Added to
repository. Translation of date and time strings for the new calendar
javascript support.
* include/languages/language_en.php: Added new strings relatives to
reports.
* include/languages/language_de.php,
include/languages/language_fr.php, include/languages/language_gl.php,
include/languages/language_pt_br.php: Fixed a variable name.
* godmode/groups/group_list.php: Avoid the use of an extra indentation
by returning if no success on comprueba_login().
* include/styles/pandora.css: Add some classes. Tab style correction.
* operation/agentes/ver_agente.php: Added AJAX support to agent
operations.
* operation/reporting/graph_viewer.php: Period dropdown selection
improved and printed with Pandora functions.
* operation/reporting/reporting_viewer.php: Massive rewritten.
Implemented date and time support, added new report types, use Pandora
functions...
* reporting/fgraph.php: Documentation fix. Added a new graphic to show
monitors health.
* godmode/agentes/agent_manager.php,
operation/reporting/custom_reporting.php: Style correction.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@869 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-06-17 16:30:44 +02:00
|
|
|
FOREIGN KEY (`id_agent_module`) REFERENCES tagente_modulo(`id_agente_modulo`)
|
2008-08-05 13:42:08 +02:00
|
|
|
ON UPDATE CASCADE ON DELETE CASCADE
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tlayout` (
|
2007-05-20 19:12:31 +02:00
|
|
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`name` varchar(50) NOT NULL,
|
|
|
|
`id_group` INTEGER UNSIGNED NOT NULL,
|
|
|
|
`background` varchar(200) NOT NULL,
|
|
|
|
`fullscreen` tinyint(1) UNSIGNED NOT NULL default 0,
|
|
|
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
PRIMARY KEY(`id`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2007-05-20 19:12:31 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tlayout_data` (
|
2007-05-20 19:12:31 +02:00
|
|
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`id_layout` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
`pos_x` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
`pos_y` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
`height` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
`width` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
`label` varchar(200) DEFAULT "",
|
|
|
|
`image` varchar(200) DEFAULT "",
|
|
|
|
`type` tinyint(1) UNSIGNED NOT NULL default 0,
|
|
|
|
`period` INTEGER UNSIGNED NOT NULL default 3600,
|
|
|
|
`id_agente_modulo` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`id_layout_linked` INTEGER unsigned NOT NULL default '0',
|
|
|
|
`parent_item` INTEGER UNSIGNED NOT NULL default 0,
|
|
|
|
`label_color` varchar(20) DEFAULT "",
|
2007-05-23 08:11:08 +02:00
|
|
|
`no_link_color` tinyint(1) UNSIGNED NOT NULL default 0,
|
2007-05-20 19:12:31 +02:00
|
|
|
PRIMARY KEY(`id`)
|
2007-08-20 17:32:27 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2008-02-21 16:16:54 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS tplugin (
|
2008-02-25 19:08:52 +01:00
|
|
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
`name` varchar(200) NOT NULL,
|
|
|
|
`description` mediumtext default "",
|
|
|
|
`max_timeout` int(4) UNSIGNED 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 '',
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
PRIMARY KEY(`id`)
|
2008-02-21 16:16:54 +01:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tmodule` (
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
`id_module` int(11) unsigned NOT NULL auto_increment,
|
|
|
|
`name` varchar(100) NOT NULL default '',
|
|
|
|
PRIMARY KEY (`id_module`)
|
2008-02-21 16:16:54 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tserver_export` (
|
2008-02-25 19:08:52 +01:00
|
|
|
`id` int(10) unsigned NOT NULL auto_increment,
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
`name` varchar(100) NOT NULL default '',
|
|
|
|
`preffix` varchar(100) NOT NULL default '',
|
|
|
|
`interval` int(5) unsigned NOT NULL default '300',
|
|
|
|
`ip_server` varchar(100) NOT NULL default '',
|
2008-07-30 20:39:40 +02:00
|
|
|
`connect_mode` enum ('tentacle', 'ssh', 'local') default 'local',
|
|
|
|
`id_export_server` int(10) unsigned default NULL,
|
|
|
|
`user` varchar(100) NOT NULL default '',
|
|
|
|
`pass` varchar(100) NOT NULL default '',
|
2008-09-18 14:06:21 +02:00
|
|
|
`port` int(4) unsigned default '0',
|
|
|
|
`directory` varchar(100) NOT NULL default '',
|
|
|
|
`options` varchar(100) NOT NULL default '',
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
PRIMARY KEY (`id`)
|
2008-02-25 19:08:52 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2008-03-06 Sancho Lerena <slerena@gmail.com>
Pandora FMS 2.0 development first commit. 1.4 version is now 2.0
* pandoradb_data.sql: Added correct tnetwork_components, fixed
ttipo_modulo (categoria values).
* include/styles/pandora.css: Added some server icons, tab style
for module editor has been improved.
* include/functions_db.php: added new functions, lang_string and
check_login, and a first review of several functions that currently
need change for new config session parameters in array $config[]
* include/javascript/pandora.js: Added a new global include for
spare javascript functions before included into a few pages.
* include/languages/language_en.php: New tokens.
* include/help*: New contextual help system.
* include/config_process.php: New way to manage config.
* include/functions.php: Added new functions to manage global
* operation/agentes/estado_ultimopaquete.php: removed old javascript
code from there.
* operation/agentes/estado_agente.php: Removed references to deprecated
field "agent_type".
* operation/agentes/tactical.php: Some code cleanup and progressbar
issues merged from 1.3.1 branch. Need to add support to new server
types and new module types.
* operation/servers/view_server.php: Added support to new servers, code
cleanup.
* reporting/fgraph.php: Code cleanup, changes to use new config method,
and a lot of style change.
* general/pandora_help.php: New source for contextual help in the way
of moodle.
* general/footer.php, general/noaccess.php: Code cleanup and uses of
new config.
* module_manager_editor: New editors for each module family. Need
finish and implement EDITION of data, now only inserts data.
* godmode/agentes/agent_manager.php: Implemented new server assigment
and edition.
* godmode/agentes/configurar_agente.php: Small changes that affects
module management, visualization and agent management.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@739 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-03-07 17:22:16 +01:00
|
|
|
|
2008-07-30 20:39:40 +02:00
|
|
|
-- id_export_server is real pandora fms export server process that manages this server
|
|
|
|
-- id is the "destination" server to export
|
2008-03-26 17:47:39 +01:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tserver_export_data` (
|
2008-03-26 17:47:39 +01:00
|
|
|
`id` int(20) unsigned NOT NULL auto_increment,
|
|
|
|
`id_export_server` int(10) unsigned default NULL,
|
2008-09-18 14:06:21 +02:00
|
|
|
`agent_name` varchar(100) NOT NULL default '',
|
|
|
|
`module_name` varchar(100) NOT NULL default '',
|
|
|
|
`module_type` varchar(100) NOT NULL default '',
|
2008-07-30 20:39:40 +02:00
|
|
|
`data` varchar(255) default NULL,
|
2008-09-18 14:06:21 +02:00
|
|
|
`timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
|
2008-03-26 17:47:39 +01:00
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tplanned_downtime` (
|
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
|
|
|
`id` MEDIUMINT( 8 ) NOT NULL AUTO_INCREMENT,
|
|
|
|
`name` VARCHAR( 100 ) NOT NULL,
|
|
|
|
`description` TEXT NOT NULL,
|
2008-08-21 21:16:16 +02:00
|
|
|
`date_from` bigint(20) NOT NULL default '0',
|
|
|
|
`date_to` bigint(20) NOT NULL default '0',
|
2008-10-22 14:01:36 +02:00
|
|
|
`executed` tinyint(1) UNSIGNED NOT NULL default 0,
|
2008-08-21 21:16:16 +02:00
|
|
|
PRIMARY KEY ( `id` )
|
2008-07-30 20:19:58 +02:00
|
|
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
2008-07-25 20:37:32 +02:00
|
|
|
|
2008-08-05 13:42:08 +02:00
|
|
|
CREATE TABLE IF NOT EXISTS `tplanned_downtime_agents` (
|
2008-07-25 20:37:32 +02:00
|
|
|
`id` int(20) unsigned NOT NULL auto_increment,
|
|
|
|
`id_agent` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
`id_downtime` mediumint(8) unsigned NOT NULL default '0',
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|