diff --git a/pandora_agents/pc/AIX/pandora_agent.conf b/pandora_agents/pc/AIX/pandora_agent.conf index bf26d33be8..b242e667c1 100644 --- a/pandora_agents/pc/AIX/pandora_agent.conf +++ b/pandora_agents/pc/AIX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, AIX version +# Version 7.0NG.742, AIX version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/FreeBSD/pandora_agent.conf b/pandora_agents/pc/FreeBSD/pandora_agent.conf index fffddfa142..4fd4b92596 100644 --- a/pandora_agents/pc/FreeBSD/pandora_agent.conf +++ b/pandora_agents/pc/FreeBSD/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, FreeBSD Version +# Version 7.0NG.742, FreeBSD Version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/HP-UX/pandora_agent.conf b/pandora_agents/pc/HP-UX/pandora_agent.conf index 3d22eafb0e..e0af4e7490 100644 --- a/pandora_agents/pc/HP-UX/pandora_agent.conf +++ b/pandora_agents/pc/HP-UX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, HP-UX Version +# Version 7.0NG.742, HP-UX Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/Linux/pandora_agent.conf b/pandora_agents/pc/Linux/pandora_agent.conf index 01359f33f5..fe67398b8a 100644 --- a/pandora_agents/pc/Linux/pandora_agent.conf +++ b/pandora_agents/pc/Linux/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/NT4/pandora_agent.conf b/pandora_agents/pc/NT4/pandora_agent.conf index ab8a35f9f8..092436f485 100644 --- a/pandora_agents/pc/NT4/pandora_agent.conf +++ b/pandora_agents/pc/NT4/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/SunOS/pandora_agent.conf b/pandora_agents/pc/SunOS/pandora_agent.conf index 90c1ba02a1..a2162ac29f 100644 --- a/pandora_agents/pc/SunOS/pandora_agent.conf +++ b/pandora_agents/pc/SunOS/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, Solaris Version +# Version 7.0NG.742, Solaris Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/pc/Win32/pandora_agent.conf b/pandora_agents/pc/Win32/pandora_agent.conf index 61eab4edeb..e582bbd963 100644 --- a/pandora_agents/pc/Win32/pandora_agent.conf +++ b/pandora_agents/pc/Win32/pandora_agent.conf @@ -1,6 +1,6 @@ # Base config file for Pandora FMS Windows Agent # (c) 2006-2010 Artica Soluciones Tecnologicas -# Version 7.0NG.741 +# Version 7.0NG.742 # This program is Free Software, you can redistribute it and/or modify it # under the terms of the GNU General Public Licence as published by the Free Software diff --git a/pandora_agents/shellscript/aix/pandora_agent.conf b/pandora_agents/shellscript/aix/pandora_agent.conf index 3409d48740..80762acbb7 100644 --- a/pandora_agents/shellscript/aix/pandora_agent.conf +++ b/pandora_agents/shellscript/aix/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741, AIX version +# Version 7.0NG.742, AIX version # General Parameters # ================== diff --git a/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf b/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf index b8306e30c3..4ac18ede49 100644 --- a/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf +++ b/pandora_agents/shellscript/bsd-ipso/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741 +# Version 7.0NG.742 # FreeBSD/IPSO version # Licenced under GPL licence, 2003-2007 Sancho Lerena diff --git a/pandora_agents/shellscript/hp-ux/pandora_agent.conf b/pandora_agents/shellscript/hp-ux/pandora_agent.conf index 15d2dab2d4..925081e62c 100644 --- a/pandora_agents/shellscript/hp-ux/pandora_agent.conf +++ b/pandora_agents/shellscript/hp-ux/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741, HPUX Version +# Version 7.0NG.742, HPUX Version # General Parameters # ================== diff --git a/pandora_agents/shellscript/linux/pandora_agent.conf b/pandora_agents/shellscript/linux/pandora_agent.conf index dbe433408f..68ced2a378 100644 --- a/pandora_agents/shellscript/linux/pandora_agent.conf +++ b/pandora_agents/shellscript/linux/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741 +# Version 7.0NG.742 # Licensed under GPL license v2, # (c) 2003-2010 Artica Soluciones Tecnologicas # please visit http://pandora.sourceforge.net diff --git a/pandora_agents/shellscript/mac_osx/pandora_agent.conf b/pandora_agents/shellscript/mac_osx/pandora_agent.conf index 4ad2f0d8df..495c2516d4 100644 --- a/pandora_agents/shellscript/mac_osx/pandora_agent.conf +++ b/pandora_agents/shellscript/mac_osx/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741 +# Version 7.0NG.742 # Licensed under GPL license v2, # (c) 2003-2009 Artica Soluciones Tecnologicas # please visit http://pandora.sourceforge.net diff --git a/pandora_agents/shellscript/openWRT/pandora_agent.conf b/pandora_agents/shellscript/openWRT/pandora_agent.conf index 594f626617..f18f326a05 100644 --- a/pandora_agents/shellscript/openWRT/pandora_agent.conf +++ b/pandora_agents/shellscript/openWRT/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741 +# Version 7.0NG.742 # Licensed under GPL license v2, # please visit http://pandora.sourceforge.net diff --git a/pandora_agents/shellscript/solaris/pandora_agent.conf b/pandora_agents/shellscript/solaris/pandora_agent.conf index eace98cb90..e319d9695f 100644 --- a/pandora_agents/shellscript/solaris/pandora_agent.conf +++ b/pandora_agents/shellscript/solaris/pandora_agent.conf @@ -1,6 +1,6 @@ # Fichero de configuracion base de agentes de Pandora # Base config file for Pandora agents -# Version 7.0NG.741, Solaris version +# Version 7.0NG.742, Solaris version # General Parameters # ================== diff --git a/pandora_agents/unix/AIX/pandora_agent.conf b/pandora_agents/unix/AIX/pandora_agent.conf index 2a02b6133f..604509d18d 100644 --- a/pandora_agents/unix/AIX/pandora_agent.conf +++ b/pandora_agents/unix/AIX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, AIX version +# Version 7.0NG.742, AIX version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 459b88ed5a..9b2e9bf9d1 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.741-191211 +Version: 7.0NG.742 Architecture: all Priority: optional Section: admin diff --git a/pandora_agents/unix/DEBIAN/make_deb_package.sh b/pandora_agents/unix/DEBIAN/make_deb_package.sh index ec9867d164..82745deed0 100644 --- a/pandora_agents/unix/DEBIAN/make_deb_package.sh +++ b/pandora_agents/unix/DEBIAN/make_deb_package.sh @@ -14,7 +14,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -pandora_version="7.0NG.741-191211" +pandora_version="7.0NG.742" echo "Test if you has the tools for to make the packages." whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null diff --git a/pandora_agents/unix/Darwin/pandora_agent.conf b/pandora_agents/unix/Darwin/pandora_agent.conf index adf05bac05..1daa7b6ddc 100644 --- a/pandora_agents/unix/Darwin/pandora_agent.conf +++ b/pandora_agents/unix/Darwin/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2012 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/FreeBSD/pandora_agent.conf b/pandora_agents/unix/FreeBSD/pandora_agent.conf index e5e3a2cc1b..e8d62cc68f 100644 --- a/pandora_agents/unix/FreeBSD/pandora_agent.conf +++ b/pandora_agents/unix/FreeBSD/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, FreeBSD Version +# Version 7.0NG.742, FreeBSD Version # Licensed under GPL license v2, # Copyright (c) 2003-2016 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/HP-UX/pandora_agent.conf b/pandora_agents/unix/HP-UX/pandora_agent.conf index 409f06034b..05770c02aa 100644 --- a/pandora_agents/unix/HP-UX/pandora_agent.conf +++ b/pandora_agents/unix/HP-UX/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, HP-UX Version +# Version 7.0NG.742, HP-UX Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/Linux/pandora_agent.conf b/pandora_agents/unix/Linux/pandora_agent.conf index 6340281c06..3aafa0fc85 100644 --- a/pandora_agents/unix/Linux/pandora_agent.conf +++ b/pandora_agents/unix/Linux/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2014 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/NT4/pandora_agent.conf b/pandora_agents/unix/NT4/pandora_agent.conf index c27a3f2da2..a99efbc9c8 100644 --- a/pandora_agents/unix/NT4/pandora_agent.conf +++ b/pandora_agents/unix/NT4/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, GNU/Linux +# Version 7.0NG.742, GNU/Linux # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/NetBSD/pandora_agent.conf b/pandora_agents/unix/NetBSD/pandora_agent.conf index ab0ca2ad46..228d95c9f1 100644 --- a/pandora_agents/unix/NetBSD/pandora_agent.conf +++ b/pandora_agents/unix/NetBSD/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, NetBSD Version +# Version 7.0NG.742, NetBSD Version # Licensed under GPL license v2, # Copyright (c) 2003-2010 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/SunOS/pandora_agent.conf b/pandora_agents/unix/SunOS/pandora_agent.conf index 4b6654b6ef..7fc6e08f1d 100644 --- a/pandora_agents/unix/SunOS/pandora_agent.conf +++ b/pandora_agents/unix/SunOS/pandora_agent.conf @@ -1,5 +1,5 @@ # Base config file for Pandora FMS agents -# Version 7.0NG.741, Solaris Version +# Version 7.0NG.742, Solaris Version # Licensed under GPL license v2, # Copyright (c) 2003-2009 Artica Soluciones Tecnologicas # http://www.pandorafms.com diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index 2b7ad2ca12..044c66f77f 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -54,8 +54,8 @@ my $Sem = undef; # Semaphore used to control the number of threads my $ThreadSem = undef; -use constant AGENT_VERSION => '7.0NG.741'; -use constant AGENT_BUILD => '191211'; +use constant AGENT_VERSION => '7.0NG.742'; +use constant AGENT_BUILD => '191216'; # Agent log default file size maximum and instances use constant DEFAULT_MAX_LOG_SIZE => 600000; diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec index e7ffb860ba..07e664663b 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -2,8 +2,8 @@ #Pandora FMS Linux Agent # %define name pandorafms_agent_unix -%define version 7.0NG.741 -%define release 191211 +%define version 7.0NG.742 +%define release 1 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index f6522bf1d8..8327d8401a 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -2,8 +2,8 @@ #Pandora FMS Linux Agent # %define name pandorafms_agent_unix -%define version 7.0NG.741 -%define release 191211 +%define version 7.0NG.742 +%define release 1 Summary: Pandora FMS Linux agent, PERL version Name: %{name} diff --git a/pandora_agents/unix/pandora_agent_installer b/pandora_agents/unix/pandora_agent_installer index 00ee1a151a..66ec9cce29 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -9,8 +9,8 @@ # Please see http://www.pandorafms.org. This code is licensed under GPL 2.0 license. # ********************************************************************** -PI_VERSION="7.0NG.741" -PI_BUILD="191211" +PI_VERSION="7.0NG.742" +PI_BUILD="191216" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/bin/pandora_agent.conf b/pandora_agents/win32/bin/pandora_agent.conf index 8b51fc94f1..3e519fa738 100644 --- a/pandora_agents/win32/bin/pandora_agent.conf +++ b/pandora_agents/win32/bin/pandora_agent.conf @@ -1,6 +1,6 @@ # Base config file for Pandora FMS Windows Agent # (c) 2006-2017 Artica Soluciones Tecnologicas -# Version 7.0NG.741 +# Version 7.0NG.742 # This program is Free Software, you can redistribute it and/or modify it # under the terms of the GNU General Public Licence as published by the Free Software diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 07b90ad431..fd13c838a3 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -3,7 +3,7 @@ AllowLanguageSelection {Yes} AppName -{Pandora FMS Windows Agent v7.0NG.741} +{Pandora FMS Windows Agent v7.0NG.742} ApplicationID {17E3D2CF-CA02-406B-8A80-9D31C17BD08F} @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{191211} +{191216} ViewReadme {Yes} @@ -2387,7 +2387,7 @@ Windows,BuildSeparateArchives {No} Windows,Executable -{<%AppName%>-<%Version%>-Setup<%Ext%>} +{<%AppName%>-Setup<%Ext%>} Windows,FileDescription {<%AppName%> <%Version%> Setup} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 2eca3a1f2c..e02765f1a2 100644 --- a/pandora_agents/win32/pandora.cc +++ b/pandora_agents/win32/pandora.cc @@ -30,7 +30,7 @@ using namespace Pandora; using namespace Pandora_Strutils; #define PATH_SIZE _MAX_PATH+1 -#define PANDORA_VERSION ("7.0NG.741(Build 191211)") +#define PANDORA_VERSION ("7.0NG.742(Build 191216)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 3386bb08e6..27f352a4e7 100644 --- a/pandora_agents/win32/versioninfo.rc +++ b/pandora_agents/win32/versioninfo.rc @@ -11,7 +11,7 @@ BEGIN VALUE "LegalCopyright", "Artica ST" VALUE "OriginalFilename", "PandoraAgent.exe" VALUE "ProductName", "Pandora FMS Windows Agent" - VALUE "ProductVersion", "(7.0NG.741(Build 191211))" + VALUE "ProductVersion", "(7.0NG.742(Build 191216))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 8f3fd0f242..6ad2a6df2b 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.741-191211 +Version: 7.0NG.742 Architecture: all Priority: optional Section: admin diff --git a/pandora_console/DEBIAN/make_deb_package.sh b/pandora_console/DEBIAN/make_deb_package.sh index da72bf33a2..7d8b4cc557 100644 --- a/pandora_console/DEBIAN/make_deb_package.sh +++ b/pandora_console/DEBIAN/make_deb_package.sh @@ -14,7 +14,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -pandora_version="7.0NG.741-191211" +pandora_version="7.0NG.742" package_pear=0 package_pandora=1 diff --git a/pandora_console/extras/mr/34.sql b/pandora_console/extras/mr/34.sql index 7ed6610f1d..446709ab10 100644 --- a/pandora_console/extras/mr/34.sql +++ b/pandora_console/extras/mr/34.sql @@ -1,5 +1,10 @@ START TRANSACTION; +ALTER TABLE `treport_content` ADD COLUMN `landscape` tinyint(1) UNSIGNED NOT NULL default 0; +ALTER TABLE `treport_content` ADD COLUMN `pagebreak` tinyint(1) UNSIGNED NOT NULL default 0; +ALTER TABLE `treport_content_template` ADD COLUMN `landscape` tinyint(1) UNSIGNED NOT NULL default 0; +ALTER TABLE `treport_content_template` ADD COLUMN `pagebreak` tinyint(1) UNSIGNED NOT NULL default 0; + ALTER TABLE `tevent_response` ADD COLUMN `command_timeout` int(5) unsigned NOT NULL DEFAULT 90; COMMIT; diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index 3d40b68b41..ca415cd52a 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -842,6 +842,8 @@ ALTER TABLE `treport_content_template` MODIFY COLUMN `historical_db` tinyint(1) MODIFY COLUMN `lapse_calc` tinyint(1) unsigned NOT NULL DEFAULT '0', MODIFY COLUMN `lapse` int(11) unsigned NOT NULL DEFAULT '300', MODIFY COLUMN `visual_format` tinyint(1) unsigned NOT NULL DEFAULT '0'; +ALTER TABLE `treport_content_template` ADD COLUMN `landscape` tinyint(1) UNSIGNED NOT NULL default 0; +ALTER TABLE `treport_content_template` ADD COLUMN `pagebreak` tinyint(1) UNSIGNED NOT NULL default 0; -- ---------------------------------------------------------------------- -- Table `tnews` @@ -1330,13 +1332,13 @@ ALTER TABLE `tmap` MODIFY COLUMN `id_user` varchar(250) NOT NULL DEFAULT ''; INSERT INTO `tconfig` (`token`, `value`) VALUES ('big_operation_step_datos_purge', '100'); INSERT INTO `tconfig` (`token`, `value`) VALUES ('small_operation_step_datos_purge', '1000'); INSERT INTO `tconfig` (`token`, `value`) VALUES ('days_autodisable_deletion', '30'); -INSERT INTO `tconfig` (`token`, `value`) VALUES ('MR', 33); +INSERT INTO `tconfig` (`token`, `value`) VALUES ('MR', 34); INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_docs_logo', 'default_docs.png'); INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_support_logo', 'default_support.png'); INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png'); UPDATE tconfig SET value = 'https://licensing.artica.es/pandoraupdate7/server.php' WHERE token='url_update_manager'; DELETE FROM `tconfig` WHERE `token` = 'current_package_enterprise'; -INSERT INTO `tconfig` (`token`, `value`) VALUES ('current_package_enterprise', '741'); +INSERT INTO `tconfig` (`token`, `value`) VALUES ('current_package_enterprise', '742'); INSERT INTO `tconfig` (`token`, `value`) VALUES ('status_monitor_fields', 'policy,agent,data_type,module_name,server_type,interval,status,graph,warn,data,timestamp'); UPDATE `tconfig` SET `value` = 'mini_severity,evento,id_agente,estado,timestamp' WHERE `token` LIKE 'event_fields'; DELETE FROM `tconfig` WHERE `token` LIKE 'integria_api_password'; @@ -1601,6 +1603,8 @@ ALTER TABLE `treport_content` MODIFY COLUMN `historical_db` tinyint(1) unsigned MODIFY COLUMN `visual_format` tinyint(1) unsigned NOT NULL DEFAULT '0', MODIFY COLUMN `failover_mode` tinyint(1) NULL DEFAULT '1', MODIFY COLUMN `failover_type` tinyint(1) NULL DEFAULT '1'; +ALTER TABLE `treport_content` ADD COLUMN `landscape` tinyint(1) UNSIGNED NOT NULL default 0; +ALTER TABLE `treport_content` ADD COLUMN `pagebreak` tinyint(1) UNSIGNED NOT NULL default 0; -- --------------------------------------------------------------------- -- Table `tmodule_relationship` diff --git a/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php b/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php index cd85759d52..fbb03c6e02 100644 --- a/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php +++ b/pandora_console/godmode/agentes/agent_wizard.snmp_explorer.php @@ -546,7 +546,7 @@ if ($create_modules) { $module_values = $common_values; $module_values['descripcion'] = sprintf(__('Check if the process %s is running or not'), $process); - $module_values['id_tipo_modulo'] = modules_get_type_id('remote_snmp_proc'); + $module_values['id_tipo_modulo'] = modules_get_type_id('generic_proc'); $module_values['id_modulo'] = MODULE_PLUGIN; $module_values['id_plugin'] = $plugin['id']; diff --git a/pandora_console/godmode/agentes/agent_wizard.wmi_explorer.php b/pandora_console/godmode/agentes/agent_wizard.wmi_explorer.php index 47a5cc5a35..5d889178bb 100644 --- a/pandora_console/godmode/agentes/agent_wizard.wmi_explorer.php +++ b/pandora_console/godmode/agentes/agent_wizard.wmi_explorer.php @@ -1,16 +1,18 @@ $row) { - // First and second rows are Class and column names, ignore it + // First and second rows are Class and column names, ignore it. if ($index < 2) { continue; } @@ -81,60 +89,74 @@ if ($wmiexplore) { $row_exploded = explode('|', $row); if (!in_array($row_exploded[$processes_name_field], $processes)) { - $processes[$row_exploded[$processes_name_field]] = $row_exploded[$processes_name_field]; + if (preg_match('/ERROR/', $row_exploded[$processes_name_field])) { + $processes[$row_exploded[$prouycesses_name_field]] = __('None'); + } else { + $processes[$row_exploded[$prouycesses_name_field]] = $row_exploded[$processes_name_field]; + } } } unset($output); - // Services + // Services. $wmi_services = $wmi_command.' "select Name from Win32_Service"'; $services_name_field = 0; $services_check_field = 1; - if (enterprise_installed()) { - if ($server_to_exec != 0) { - $server_data = db_get_row('tserver', 'id_server', $server_to_exec); - exec('ssh pandora_exec_proxy@'.$server_data['ip_address']." '".$wmi_services."'", $output, $rc); - } else { - exec($wmi_services, $output); - } + if (enterprise_installed() && (int) $server_to_exec != 0) { + $server_data = db_get_row( + 'tserver', + 'id_server', + $server_to_exec + ); + exec( + 'ssh pandora_exec_proxy@'.$server_data['ip_address']." + '".$wmi_services."'", + $output, + $rc + ); } else { exec($wmi_services, $output); } foreach ($output as $index => $row) { - // First and second rows are Class and column names, ignore it + // First and second rows are Class and column names, ignore it. if ($index < 2) { continue; } - $row_exploded = explode('|', $row); + $row_exploded = explode('|', $row); if (!in_array($row_exploded[$services_name_field], $services)) { - $services[$row_exploded[$services_name_field]] = $row_exploded[$services_name_field]; + if (preg_match('/ERROR/', $row_exploded[$services_name_field])) { + $services[$row_exploded[$services_name_field]] = __('None'); + } else { + $services[$row_exploded[$services_name_field]] = $row_exploded[$services_name_field]; + } } } unset($output); - // Disks + // Disks. $wmi_disks = $wmi_command.' "Select DeviceID from Win32_LogicalDisk"'; $disks_name_field = 0; - if (enterprise_installed()) { - if ($server_to_exec != 0) { - $server_data = db_get_row('tserver', 'id_server', $server_to_exec); - exec('ssh pandora_exec_proxy@'.$server_data['ip_address']." '".$wmi_disks."'", $output, $rc); - } else { - exec($wmi_disks, $output); - } + if (enterprise_installed() && (int) $server_to_exec != 0) { + $server_data = db_get_row('tserver', 'id_server', $server_to_exec); + exec( + 'ssh pandora_exec_proxy@'.$server_data['ip_address']." + '".$wmi_disks."'", + $output, + $rc + ); } else { exec($wmi_disks, $output); } foreach ($output as $index => $row) { - // First and second rows are Class and column names, ignore it + // First and second rows are Class and column names, ignore it. if ($index < 2) { continue; } @@ -142,14 +164,21 @@ if ($wmiexplore) { $row_exploded = explode('|', $row); if (!in_array($row_exploded[$disks_name_field], $services)) { - $disk_string = sprintf(__('Free space on %s'), $row_exploded[$disks_name_field]); - $disks[$row_exploded[$disks_name_field]] = $disk_string; + if (preg_match('/ERROR/', $row_exploded[$disks_name_field])) { + $disks[$row_exploded[$disks_name_field]] = __('None'); + } else { + $disk_string = sprintf( + __('Free space on %s'), + $row_exploded[$disks_name_field] + ); + $disks[$row_exploded[$disks_name_field]] = $disk_string; + } } } unset($output); - // WMI Components + // WMI Components. $network_component_groups = network_components_get_groups(MODULE_WMI); } } @@ -163,14 +192,14 @@ if ($create_modules) { $components = []; foreach ($modules as $module) { - // Split module data to get type + // Split module data to get type. $module_exploded = explode('_', $module); $type = $module_exploded[0]; - // Delete type from module data + // Delete type from module data. unset($module_exploded[0]); - // Rebuild module data + // Rebuild module data. $module = implode('_', $module_exploded); switch ($type) { @@ -189,10 +218,14 @@ if ($create_modules) { case 'component': $components[] = $module; break; + + default: + // Default. + break; } } - // Common values for WMI modules + // Common values for WMI modules. $values = [ 'ip_target' => $ip_target, 'tcp_send' => $tcp_send, @@ -202,7 +235,10 @@ if ($create_modules) { ]; if ($server_to_exec != 0) { - $sql = sprintf('SELECT server_type FROM tserver WHERE id_server = %d', $server_to_exec); + $sql = sprintf( + 'SELECT server_type FROM tserver WHERE id_server = %d', + $server_to_exec + ); $row = db_get_row_sql($sql); if ($row['server_type'] == 13) { @@ -210,89 +246,146 @@ if ($create_modules) { } } - // Create Service modules + // Create Service modules. $services_values = $values; $services_values['snmp_community'] = 'Running'; - // Key string + // Key string. $services_values['tcp_port'] = 1; - // Field number (Running/Stopped) + // Field number (Running/Stopped). $services_values['id_tipo_modulo'] = 2; - // Generic boolean - $services_result = wmi_create_wizard_modules($id_agent, $services, 'services', $services_values, 0, 0, $server_to_exec); + // Generic boolean. + $services_result = wmi_create_wizard_modules( + $id_agent, + $services, + 'services', + $services_values, + 0, + 0, + $server_to_exec + ); - // Create Process modules + // Create Process modules. $processes_values = $values; $processes_values['tcp_port'] = 0; - // Field number (OID) + // Field number (OID). $processes_values['id_tipo_modulo'] = 2; - // Generic boolean - $processes_result = wmi_create_wizard_modules($id_agent, $processes, 'processes', $processes_values, 0, 0, $server_to_exec); + // Generic boolean. + $processes_result = wmi_create_wizard_modules( + $id_agent, + $processes, + 'processes', + $processes_values, + 0, + 0, + $server_to_exec + ); - // Create Space on disk modules + // Create Space on disk modules. $disks_values = $values; $disks_values['tcp_port'] = 1; - // Free space in bytes + // Free space in bytes. $disks_values['id_tipo_modulo'] = 1; - // Generic numeric + // Generic numeric. $disks_values['unit'] = 'Bytes'; - // Unit - $disks_result = wmi_create_wizard_modules($id_agent, $disks, 'disks', $disks_values, 0, 0, $server_to_exec); + // Unit. + $disks_result = wmi_create_wizard_modules( + $id_agent, + $disks, + 'disks', + $disks_values, + 0, + 0, + $server_to_exec + ); - // Create modules from component + // Create modules from component. $components_values = $values; $components_values['id_agente'] = $id_agent; - $components_result = wmi_create_module_from_components($components, $components_values, 0, 0, $server_to_exec); + $components_result = wmi_create_module_from_components( + $components, + $components_values, + 0, + 0, + $server_to_exec + ); - // Errors/Success messages + // Errors/Success messages. $success_message = ''; $error_message = ''; if (!empty($services_result)) { if (count($services_result[NOERR]) > 0) { - $success_message .= sprintf(__('%s service modules created succesfully'), count($services_result[NOERR])).'
'; + $success_message .= sprintf( + __('%s service modules created succesfully'), + count($services_result[NOERR]) + ).'
'; } if (count($services_result[ERR_GENERIC]) > 0) { - $error_message .= sprintf(__('Error creating %s service modules'), count($services_result[ERR_GENERIC])).'
'; + $error_message .= sprintf( + __('Error creating %s service modules'), + count($services_result[ERR_GENERIC]) + ).'
'; } } if (!empty($processes_result)) { if (count($processes_result[NOERR]) > 0) { - $success_message .= sprintf(__('%s process modules created succesfully'), count($processes_result[NOERR])).'
'; + $success_message .= sprintf( + __('%s process modules created succesfully'), + count($processes_result[NOERR]) + ).'
'; } if (count($processes_result[ERR_GENERIC]) > 0) { - $error_message .= sprintf(__('Error creating %s process modules'), count($processes_result[ERR_GENERIC])).'
'; + $error_message .= sprintf( + __('Error creating %s process modules'), + count($processes_result[ERR_GENERIC]) + ).'
'; } } if (!empty($disks_result)) { if (count($disks_result[NOERR]) > 0) { - $success_message .= sprintf(__('%s disk space modules created succesfully'), count($disks_result[NOERR])).'
'; + $success_message .= sprintf( + __('%s disk space modules created succesfully'), + count($disks_result[NOERR]) + ).'
'; } if (count($disks_result[ERR_GENERIC]) > 0) { - $error_message .= sprintf(__('Error creating %s disk space modules'), count($disks_result[ERR_GENERIC])).'
'; + $error_message .= sprintf( + __('Error creating %s disk space modules'), + count($disks_result[ERR_GENERIC]) + ).'
'; } } if (!empty($components_result)) { if (count($components_result[NOERR]) > 0) { - $success_message .= sprintf(__('%s modules created from components succesfully'), count($components_result[NOERR])).'
'; + $success_message .= sprintf( + __('%s modules created from components succesfully'), + count($components_result[NOERR]) + ).'
'; } if (count($components_result[ERR_GENERIC]) > 0) { - $error_message .= sprintf(__('Error creating %s modules from components'), count($components_result[ERR_GENERIC])).'
'; + $error_message .= sprintf( + __('Error creating %s modules from components'), + count($components_result[ERR_GENERIC]) + ).'
'; } if (count($components_result[ERR_EXIST]) > 0) { - $error_message .= sprintf(__('%s modules already exist'), count($components_result[ERR_EXIST])).'
'; + $error_message .= sprintf( + __('%s modules already exist'), + count($components_result[ERR_EXIST]) + ).'
'; } } @@ -306,7 +399,9 @@ if ($create_modules) { } echo ''; -echo "
"; +echo ""; $table->width = '100%'; $table->cellpadding = 0; @@ -314,18 +409,47 @@ $table->cellspacing = 0; $table->class = 'databox filters'; $table->data[0][0] = ''.__('Target IP').''; -$table->data[0][1] = html_print_input_text('ip_target', $ip_target, '', 15, 60, true); +$table->data[0][1] = html_print_input_text( + 'ip_target', + $ip_target, + '', + 15, + 60, + true +); $table->data[0][2] = ''.__('Namespace').''; -$table->data[0][3] = html_print_input_text('tcp_send', $tcp_send, '', 15, 60, true); +$table->data[0][3] = html_print_input_text( + 'tcp_send', + $tcp_send, + '', + 15, + 60, + true +); $table->data[1][0] = ''.__('Username').''; -$table->data[1][1] = html_print_input_text('plugin_user', $plugin_user, '', 15, 60, true); +$table->data[1][1] = html_print_input_text( + 'plugin_user', + $plugin_user, + '', + 15, + 60, + true +); $table->data[1][2] = ''.__('Password').''; -$table->data[1][3] = html_print_input_password('plugin_pass', $plugin_pass, '', 15, 60, true); +$table->data[1][3] = html_print_input_password( + 'plugin_pass', + $plugin_pass, + '', + 15, + 60, + true +); -$table->data[1][3] .= ''; +$table->data[1][3] .= ''; html_print_input_hidden('wmiexplore', 1); $servers_to_exec = []; @@ -346,13 +470,27 @@ if (enterprise_installed()) { } $table->data[2][0] = ''.__('Server to execute command').''; -$table->data[2][1] = html_print_select($servers_to_exec, 'server_to_exec', $server_to_exec, '', '', '', true); +$table->data[2][1] = html_print_select( + $servers_to_exec, + 'server_to_exec', + $server_to_exec, + '', + '', + '', + true +); html_print_table($table); echo "
"; -echo ''; -html_print_submit_button(__('WMI Explore'), 'wmi_explore', false, ['class' => 'sub next']); +echo ''; +html_print_submit_button( + __('WMI Explore'), + 'wmi_explore', + false, + ['class' => 'sub next'] +); echo '

'; if ($wmiexplore && $fail) { @@ -365,23 +503,25 @@ echo '
'; if ($wmiexplore && !$fail) { echo '
'; - echo "
"; + echo ""; echo ''; html_print_input_hidden('create_modules', 1); html_print_input_hidden('ip_target', $ip_target); - // Host + // Host. html_print_input_hidden('plugin_user', $plugin_user); - // User + // User. html_print_input_hidden('plugin_pass', $plugin_pass); - // Password + // Password. html_print_input_hidden('tcp_send', $tcp_send); - // Namespace + // Namespace. html_print_input_hidden('server_to_exec', $server_to_exec); $table->width = '100%'; - // Mode selector + // Mode selector. $modes = []; $modes['services'] = __('Services'); $modes['processes'] = __('Processes'); @@ -406,7 +546,7 @@ if ($wmiexplore && !$fail) { $table->data[1][2] = ''.__('Modules').''; $table->cellstyle[1][2] = 'text-align: center;'; - // Components list + // Components list. $table->data[2][0] = '
'; $table->data[2][0] .= __('Filter by group').'
'; $table->data[2][0] .= html_print_select( @@ -439,7 +579,7 @@ if ($wmiexplore && !$fail) { ); $table->data[2][0] .= '
'; - // Services list + // Services list. $table->data[2][0] .= '
'; $table->data[2][0] .= html_print_select( $services, @@ -456,8 +596,7 @@ if ($wmiexplore && !$fail) { 'width: 300px;' ); $table->data[2][0] .= '
'; - - // Processes list + // Processes list. $table->data[2][0] .= '
'; $table->data[2][0] .= html_print_select( $processes, @@ -474,11 +613,13 @@ if ($wmiexplore && !$fail) { 'width: 300px;' ); $table->data[2][0] .= '
'; - $table->data[2][0] .= '