From 16f3379b81dd7af6234549af3fb3c85865ea67c0 Mon Sep 17 00:00:00 2001 From: slerena Date: Wed, 25 Apr 2012 19:54:40 +0000 Subject: [PATCH] 2012-04-25 Sancho Lerena * general/error_emptyconfig.php, general/error_authconfig.php, general/error_dbconfig.php: minimal changes on text to fit the error window message. * godmode/modules/manage_network_templates_form.php: Fixed description. * godmode/modules/manage_network_components.php: minimal layout changes. * pandoradb_data.sql: New "default" values for network components, tags, network (group) templates, ant agent custom fields. * operation/agentes/estado_monitores.php: More size for the description in the agent main view. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6173 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 17 ++++ pandora_console/general/error_authconfig.php | 8 +- pandora_console/general/error_dbconfig.php | 2 +- pandora_console/general/error_emptyconfig.php | 2 +- .../modules/manage_network_components.php | 8 +- .../modules/manage_network_templates_form.php | 2 +- .../operation/agentes/estado_monitores.php | 2 +- pandora_console/pandoradb_data.sql | 93 +++++++++---------- 8 files changed, 71 insertions(+), 63 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 62f5a9762b..a3c0ba5492 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,20 @@ +2012-04-25 Sancho Lerena + + * general/error_emptyconfig.php, + general/error_authconfig.php, + general/error_dbconfig.php: minimal changes on text to fit the error + window message. + + * godmode/modules/manage_network_templates_form.php: Fixed description. + + * godmode/modules/manage_network_components.php: minimal layout changes. + + * pandoradb_data.sql: New "default" values for network components, tags, + network (group) templates, ant agent custom fields. + + * operation/agentes/estado_monitores.php: More size for the description + in the agent main view. + 2012-04-25 Juan Manuel Ramon * include/styles/dialog.css diff --git a/pandora_console/general/error_authconfig.php b/pandora_console/general/error_authconfig.php index 674d0c6947..7def1c819a 100644 --- a/pandora_console/general/error_authconfig.php +++ b/pandora_console/general/error_authconfig.php @@ -44,16 +44,16 @@ Pandora FMS - Cannot connect to the database, please check your database setup in the include/config.php file or read the documentation on how to setup Pandora FMS.

- Probably one or more of your user, database or hostname values are incorrect or - the database server is not running.


+ Cannot connect to the database, please check your database setup in the include/config.php file.

+ Probably your database, hostname, user or password values are incorrect or + the database server is not running.


DB ERROR:
- If you have modified auth system, problem could be because Pandora cannot override authorization variables from the config database. Remove them from your database by executing:

DELETE FROM tconfig WHERE token = "auth";
+ If you have modified auth system, this problem could be because Pandora cannot override authorization variables from the config database. Remove them from your database by executing:
DELETE FROM tconfig WHERE token = "auth";
diff --git a/pandora_console/general/error_dbconfig.php b/pandora_console/general/error_dbconfig.php index e46ead02bb..91d6bce5ae 100644 --- a/pandora_console/general/error_dbconfig.php +++ b/pandora_console/general/error_dbconfig.php @@ -43,7 +43,7 @@ Pandora FMS - Cannot connect to the database, please check your database setup in the include/config.php file or read the documentation on how to setup Pandora FMS.

+ Cannot connect to the database, please check your database setup in the include/config.php file.

Probably one or more of your user, database or hostname values are incorrect or the database server is not running.


DB ERROR: diff --git a/pandora_console/general/error_emptyconfig.php b/pandora_console/general/error_emptyconfig.php index e59b315ebc..693c86d130 100644 --- a/pandora_console/general/error_emptyconfig.php +++ b/pandora_console/general/error_emptyconfig.php @@ -44,7 +44,7 @@

Cannot load configuration variables from database. Please check your database setup in the - include/config.php file or read the documentation on how to setup Pandora FMS.

+ include/config.php file.

Most likely your database schema has been created but there are is no data in it, you have a problem with the database access credentials or your schema is out of date.

Pandora FMS Console cannot find include/config.php or this file has invalid permissions and HTTP server cannot read it. Please read documentation to fix this problem.
diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php index 9bc01efa01..c5b009db3c 100644 --- a/pandora_console/godmode/modules/manage_network_components.php +++ b/pandora_console/godmode/modules/manage_network_components.php @@ -357,11 +357,10 @@ if ($components === false) unset ($table); -$table->width = '98%'; +$table->width = '100%'; $table->head = array (); $table->head[0] = __('Module name'); $table->head[1] = __('Type'); -$table->head[2] = __('Interval'); $table->head[3] = __('Description'); $table->head[4] = __('Group'); $table->head[5] = __('Max/Min'); @@ -383,15 +382,14 @@ foreach ($components as $component) { $data[0] .= io_safe_output($component['name']); $data[0] .= ''; $data[1] = ui_print_moduletype_icon ($component['type'], true); - $data[2] = $component['module_interval'] ? $component['module_interval'] : __('N/A '); - $data[3] = mb_strimwidth (io_safe_output($component['description']), 0, 30, "..."); + $data[3] = "". mb_strimwidth (io_safe_output($component['description']), 0, 60, "...") . ""; $data[4] = network_components_get_group_name ($component['id_group']); $data[5] = $component['max']." / ".$component['min']; $data[6] = '' . html_print_image('images/copy.png', true, array('alt' => __('Duplicate'), 'title' => __('Duplicate'))) . ''; - $data[6] .= '  ' . html_print_image('images/cross.png', true, array('alt' => __('Delete'), 'title' => __('Delete'))) . '' . diff --git a/pandora_console/godmode/modules/manage_network_templates_form.php b/pandora_console/godmode/modules/manage_network_templates_form.php index 7a0b6d1e3c..b528f9b3cf 100644 --- a/pandora_console/godmode/modules/manage_network_templates_form.php +++ b/pandora_console/godmode/modules/manage_network_templates_form.php @@ -203,7 +203,7 @@ if ($id_np > 0) { $data = array (); $data[0] = $row["name"]; $data[1] = html_print_image("images/".modules_show_icon_type($row["type"]), true, array("border" => '0')); - $data[2] = mb_strimwidth($row["description"],0,30,"..."); + $data[2] = mb_strimwidth(io_safe_output($row["description"]),0,150,"..."); $data[3] = network_components_get_group_name ($row["group"]); $data[4] = html_print_checkbox ("components[]", $row["component_id"], false, true); array_push ($table->data, $data); diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php index d63ab4293f..1eb5489e14 100644 --- a/pandora_console/operation/agentes/estado_monitores.php +++ b/pandora_console/operation/agentes/estado_monitores.php @@ -327,7 +327,7 @@ foreach ($modules as $module) { $data[3] .= ' ' . html_print_image("images/tag_red.png", true, array("id" => 'tag-details-'.$module['id_agente_modulo'], "class" => "img_help")) . ' '; } - $data[4] = ui_print_string_substr ($module["descripcion"], 40, true, 9); + $data[4] = ui_print_string_substr ($module["descripcion"], 60, true, 8); modules_get_status($module['id_agente_modulo'], $module['estado'], $module['datos'], $status, $title); diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 0bb8603a29..1d7d944e9a 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -47,8 +47,8 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('days_compact','90'), ('graph_res','5'), ('step_compact','1'), -('db_scheme_version','4.0.1'), -('db_scheme_build','PD111213'), +('db_scheme_version','5.0'), +('db_scheme_build','PD120425'), ('show_unknown','0'), ('show_lastalerts','1'), ('style','pandora'), @@ -276,7 +276,7 @@ INSERT INTO `tperfil` VALUES (1,'Operator (Read)',0,1,0,1,0,0,0,0,0 -- Dumping data for table `tnews` -- -INSERT INTO `tnews` VALUES (1,'admin','Welcome to Pandora FMS 4.0!','This is the new Pandora FMS Console. A lot of new features have been added since last version. Please read the documentation about it, and feel free to test any option.\r\n\r\nThe Pandora FMS Team.',NOW()), +INSERT INTO `tnews` VALUES (1,'admin','Welcome to Pandora FMS 5.0!','This is the new Pandora FMS Console. A lot of new features have been added since last version. Please read the documentation about it, and feel free to test any option.\r\n\r\nThe Pandora FMS Team.',NOW()), (2,'admin','New Pandora FMS Agent Features','Feel free to test our new features for both Windows and Linux agents: Proxy and Broker modes.',NOW()); INSERT INTO tmodule VALUES (1,'Agent module'); @@ -323,9 +323,37 @@ INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `t -- WMI components INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `plugin_user`, `max_timeout`) VALUES (200, 'CPU load', 'CPU0 load average', 14, 1, 100, 0, 300, 1, '', '', '', 'SELECT LoadPercentage from Win32_Processor WHERE DeviceID = "CPU0"', 1, 6, 'Administrator', 10); + INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `plugin_user`, `max_timeout`) VALUES (201, 'Free RAM', 'Available RAM memory in bytes', 14, 1, 0, 0, 300, 0, '', '', '', 'SELECT AvailableBytes from Win32_PerfRawData_PerfOS_Memory', 1, 6, 'Administrator', 10); + INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `plugin_user`, `max_timeout`) VALUES (202, 'Windows version', 'Operating system version', 14, 3, 0, 0, 300, 1, '', '', '', 'SELECT Caption FROM Win32_OperatingSystem', 1, 6, 'Administrator', 10); +-- Some other SNMP Components added in 4.0.2 + +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (533,'memAvailReal','The amount of free& +#x20;real memory, in kilobytes.',5,15,0,0,0,0,'1','','public','1.3.6.1.4.1.2021.4.6.0',4,2,0,'','', +'',0,1,10000.00,40000.00,'',0.00,10000.00,'',0,'','','',0,0,0.0000000000000); + +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (534,'memAvailSwap','The amount& +#x20;of free swap memory, in kilobytes.',5,15,0,0,0,0,'1','','public','1.3.6.1.4.1.2021.4 +.4.0',4,2,0,'','','',0,1,0.00,0.00,'',0.00,0.00,'',0,'','','',0,0,0.0000000000000); + +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (535,'ssCpuIdle','The percentages of idle CPU time.',5,15,0,0,0,0,'1','','public','1.3.6.1.4.1.2021.11.11.0',4,2,0,'','' +,'',0,1,0.00,0.00,'',0.00,0.00,'',0,'','','',0,0,0.0000000000000); + +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (536,'SNMP-LoadInt.5','The 5-minute system load average.',5,15,0,0,0,0,'1','','public','1.3.6.1.4.1.2021.10.1.5.2',4,2,0,'','' +,'',0,1,0.00,0.00,'',0.00,0.00,'',0,'','','',0,0,0.0000000000000); +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (537,'SNMP-LoadInt.1','The 1-minute system load average. ',5,15,0,0,0,0,'1','','public','1.3.6.1.4.1.2021.10.1.5.1',4,2,0,'','','',0,1,0.00,0.00,'',0.00, +0.00,'',0,'','','',0,0,0.0000000000000); + +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (538,'SNMP-LoadInt.15','The 15-minute system load average. ',5,15,0,0,0,0,'1','','public','1.3.6.1.4.1.2021.10.1.5.3',4,2,0,'','','',0,1,0.00,0.00,'',0.00,0.00,'', +0,'','','',0,0,0.0000000000000); + +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (539,'Total cache memory','Total Cached Memory',5,15,0,0,0,0,'1','','public','.1.3.6.1.4.1.2021.4.15.0' +,4,2,0,'','','',0,1,0.00,0.00,'',0.00,0.00,'',0,'','','',0,0,0.0000000000000); + +INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `type`, `max`, `min`, `module_interval`, `tcp_port`, `tcp_send`, `tcp_rcv`, `snmp_community`, `snmp_oid`, `id_module_group`, `id_modulo`, `id_plugin`, `plugin_user`, `plugin_pass`, `plugin_parameter`, `max_timeout`, `history_data`, `min_warning`, `max_warning`, `str_warning`, `min_critical`, `max_critical`, `str_critical`, `min_ff_event`, `custom_string_1`, `custom_string_2`, `custom_string_3`, `custom_integer_1`, `custom_integer_2`, `post_process`) VALUES (540,'CPU Raw Interrupts','CPU Raw interrupts information from the NetSNMP agent.',5,16,0,0,0,0,'1','','public','.1.3.6.1.4.1.2021.11.59.0' +,4,2,0,'','','',0,1,0.00,0.00,'',0.00,0.00,'',0,'','','',0,0,0.0000000000000); -- -- Dumping data for table `tnetwork_component_group` @@ -333,11 +361,11 @@ INSERT INTO `tnetwork_component` (`id_nc`, `name`, `description`, `id_group`, `t INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (1,'General group',0); INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (2,'Cisco MIBs',10); -INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (5,'UNIX MIBs',12); +INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (5,'NetSNMP UNIX Systems',12); INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (10,'Network Management',0); INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (11,'Microsoft Windows MIB',12); INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (12,'Operating Systems',0); -INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (13,'UCD Mibs (Linux, UCD-SNMP)',12); +INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (13,'UCD Mibs (Unix systems)',12); INSERT INTO `tnetwork_component_group` (`id_sg`, `name`, `parent`) VALUES (14,'WMI',12); @@ -350,51 +378,11 @@ INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (4,'Full INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (5,'Linux Server','Full Monitoring of a Linux server services.'); INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES (6,'Basic WMI monitoring','Basic monitoring of a Windows host.'); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (24,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (25,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (27,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (28,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (30,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (31,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (34,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (39,1); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (34,2); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (34,3); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (37,3); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (39,3); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (38,3); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (24,3); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (3,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (24,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (25,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (26,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (27,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (28,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (29,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (30,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (31,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (32,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (45,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (46,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (47,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (48,4); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (3,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (50,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (53,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (24,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (30,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (27,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (34,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (1,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (2,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (49,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (4,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (51,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (52,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (39,5); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (200,6); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (201,6); -INSERT INTO `tnetwork_profile_component` (`id_nc`, `id_np`) VALUES (202,6); +INSERT INTO `tnetwork_profile` (`id_np`, `name`, `description`) VALUES +(7,'Linux Server with SNMP','Group of "basic" modules for SNMP monitoring of Linux remote devices. This includes basic conectivity checks and a full range of System'); + +INSERT INTO `tnetwork_profile_component` VALUES (24,1),(25,1),(27,1),(28,1),(30,1),(31,1),(34,1),(39,1),(34,2),(34,3),(37,3),(39,3),(38,3),(24,3),(3,4),(24,4),(25,4),(26,4),(27,4),(28,4),(29,4),(30,4),(31,4),(32,4),(45,4),(46,4),(47,4),(48,4),(3,5),(50,5),(53,5),(24,5),(30,5),(27,5),(34,5),(1,5),(2,5),(49,5),(4,5),(51,5),(52,5),(39,5),(200,6),(201,6),(202,6),(540,7),(533,7),(534,7),(537,7),(538,7),(536,7),(535,7),(539,7),(1,7),(4,7),(34,7),(30,7),(27,7),(24,7); + -- GIS Data @@ -432,6 +420,11 @@ INSERT INTO `trecon_script` VALUES INSERT INTO `tplugin` (`id`, `name`, `description`, `max_timeout`, `execute`, `net_dst_opt`, `net_port_opt`, `user_opt`, `pass_opt`, `plugin_type`) VALUES (1,'IPMI Plugin','Plugin to get IPMI monitors from a IPMI Device.',0,'/usr/share/pandora_server/util/plugin/ipmi-plugin.pl','-h','','-u','-p',0),(2,'DNS Plugin','This plugin is used to check if a specific domain return a specific IP address, and to check how time (milisecs) takes the DNS to answer. Use IP address parameter to specify the IP of your domain. Use these custom parameters for the other parameters: -d domain to check (for example pandorafms.com) -s DNS Server to check (for example 8.8.8.8) Optional parameters: -t Do a DNS time response check instead DNS resolve test ',15,'/usr/share/pandora_server/util/plugin/dns_plugin.sh','-i','','','',0),(3,'UDP port check','Check a remote UDP port (by using NMAP). Use IP address and Port options.',5,'/usr/share/pandora_server/util/plugin/udp_nmap_plugin.sh','-t','-p','','',0),(4,'SMTP Check','This plugin is used to send a mail to a SMTP server and check if works. Parameters in the plugin IP Addres - SMTP Server IP address User - AUTH login Pass - AUTH password Port - SMTP port (optional) Optional parameters -d Destination email -f Email of the sender -a Autentication system, could be LOGIN, PLAIN, CRAM-MD5 or DIGEST-MD ',10,'/usr/share/pandora_server/util/plugin/SMTP_check.pl','-h','-o','-u','-p',0); + +INSERT INTO `tagent_custom_fields` VALUES (1,'Serial Number',0),(2,'Department',0),(3,'Additional ID',0); + +INSERT INTO `ttag` VALUES (1,'network','Network equipment','http://artica.es'),(2,'critical','Critical modules',''),(3,'dmz','DMZ Network Zone',''),(4,'performance','Performance anda capacity modules',''),(5,'configuration','',''); + -- ----------------------------------------------------- -- Table `ttimezone` -- -----------------------------------------------------