From aff91aa1b2e6df9e572965ecd5e7ed6a4ae009cb Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 12 Jan 2023 12:42:48 +0100 Subject: [PATCH 01/24] #10126 added button save in visual console --- .../godmode/reporting/visual_console_builder.elements.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/godmode/reporting/visual_console_builder.elements.php b/pandora_console/godmode/reporting/visual_console_builder.elements.php index b331f5bdac..870316af29 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.elements.php +++ b/pandora_console/godmode/reporting/visual_console_builder.elements.php @@ -862,9 +862,15 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/'); height: 300, autoOpen: false, beforeClose: function() { + console.log("Entra"); var id_layout_data = $("#active_id_layout_data").val(); var label = tinyMCE.activeEditor.getContent(); $("#hidden-label_" + id_layout_data).val(label); + }, + buttons: { + Save: function() { + $(this).dialog("close"); + } } }); From a2076ffd0c3c4f6231c9945bf306ec1a549b9671 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Fri, 20 Jan 2023 13:11:49 +0100 Subject: [PATCH 02/24] fix server status when distinct timezones --- pandora_console/extras/mr/61.sql | 5 ++++ .../godmode/servers/servers.build_table.php | 8 ++++++- pandora_console/pandoradb.sql | 1 + pandora_server/lib/PandoraFMS/Core.pm | 24 +++++++++++-------- 4 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 pandora_console/extras/mr/61.sql diff --git a/pandora_console/extras/mr/61.sql b/pandora_console/extras/mr/61.sql new file mode 100644 index 0000000000..8cff0d2944 --- /dev/null +++ b/pandora_console/extras/mr/61.sql @@ -0,0 +1,5 @@ +START TRANSACTION; + +ALTER TABLE `tserver` ADD COLUMN `server_keepalive_utimestamp` BIGINT NOT NULL DEFAULT 0; + +COMMIT; diff --git a/pandora_console/godmode/servers/servers.build_table.php b/pandora_console/godmode/servers/servers.build_table.php index 9629dccb22..a82933f640 100644 --- a/pandora_console/godmode/servers/servers.build_table.php +++ b/pandora_console/godmode/servers/servers.build_table.php @@ -110,6 +110,12 @@ foreach ($servers as $server) { ]; $data[0] = ''.strip_tags($server['name']).''; + $server_keepalive = time_w_fixed_tz($server['keepalive']); + + if ($server['server_keepalive_utimestamp'] > 0) { + $server_keepalive = $server['server_keepalive_utimestamp']; + } + // Status. $data[1] = ui_print_status_image(STATUS_SERVER_OK, '', true); if ($server['status'] == -1) { @@ -119,7 +125,7 @@ foreach ($servers as $server) { true ); } else if ((int) ($server['status'] === 0) - || (($date - time_w_fixed_tz($server['keepalive'])) > ($server['server_keepalive']) * 2) + || (($date - $server_keepalive) > ($server['server_keepalive']) * 2) ) { $data[1] = ui_print_status_image( STATUS_SERVER_DOWN, diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 3f90f157f8..c45758affe 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1157,6 +1157,7 @@ CREATE TABLE IF NOT EXISTS `tserver` ( `stat_utimestamp` BIGINT NOT NULL DEFAULT 0, `exec_proxy` TINYINT UNSIGNED NOT NULL DEFAULT 0, `port` INT UNSIGNED NOT NULL DEFAULT 0, + `server_keepalive_utimestamp` BIGINT NOT NULL DEFAULT 0, PRIMARY KEY (`id_server`), KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 899254d02c..d33445a2fa 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -118,7 +118,7 @@ use Tie::File; use Time::Local; use Time::HiRes qw(time); eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i); -use POSIX qw(strftime); +use POSIX qw(strftime mktime); use threads; use threads::shared; use JSON qw(decode_json encode_json); @@ -3173,16 +3173,20 @@ sub pandora_update_server ($$$$$$;$$$$) { $version = $pa_config->{'version'} . ' (P) ' . $pa_config->{'build'} unless defined($version); my $master = ($server_type == SATELLITESERVER) ? 0 : $pa_config->{'pandora_master'}; - + + my ($year, $month, $day, $hour, $minute, $second) = split /[- :]/, $timestamp; + + my $keepalive_utimestamp = mktime($second, $minute, $hour, $day, $month-1, $year-1900); + # First run if ($server_id == 0) { # Create an entry in tserver if needed my $server = get_db_single_row ($dbh, 'SELECT id_server FROM tserver WHERE BINARY name = ? AND server_type = ?', $server_name, $server_type); if (! defined ($server)) { - $server_id = db_insert ($dbh, 'id_server', 'INSERT INTO tserver (name, server_type, description, version, threads, queued_modules, server_keepalive) - VALUES (?, ?, ?, ?, ?, ?, ?)', $server_name, $server_type, - 'Autocreated at startup', $version, $num_threads, $queue_size, $keepalive); + $server_id = db_insert ($dbh, 'id_server', 'INSERT INTO tserver (name, server_type, description, version, threads, queued_modules, server_keepalive, server_keepalive_utimestamp) + VALUES (?, ?, ?, ?, ?, ?, ?, ?)', $server_name, $server_type, + 'Autocreated at startup', $version, $num_threads, $queue_size, $keepalive, $keepalive_utimestamp); $server = get_db_single_row ($dbh, 'SELECT status FROM tserver WHERE id_server = ?', $server_id); if (! defined ($server)) { @@ -3193,14 +3197,14 @@ sub pandora_update_server ($$$$$$;$$$$) { $server_id = $server->{'id_server'}; } - db_do ($dbh, 'UPDATE tserver SET status = ?, keepalive = ?, master = ?, laststart = ?, version = ?, threads = ?, queued_modules = ?, server_keepalive = ? + db_do ($dbh, 'UPDATE tserver SET status = ?, keepalive = ?, master = ?, laststart = ?, version = ?, threads = ?, queued_modules = ?, server_keepalive = ?, server_keepalive_utimestamp = ? WHERE id_server = ?', - 1, $timestamp, $master, $timestamp, $version, $num_threads, $queue_size, $keepalive, $server_id); + 1, $timestamp, $master, $timestamp, $version, $num_threads, $queue_size, $keepalive, $keepalive_utimestamp, $server_id); return; } - - db_do ($dbh, 'UPDATE tserver SET status = ?, keepalive = ?, master = ?, version = ?, threads = ?, queued_modules = ?, server_keepalive = ? - WHERE id_server = ?', $status, $timestamp, $master, $version, $num_threads, $queue_size, $keepalive, $server_id); + + db_do ($dbh, 'UPDATE tserver SET status = ?, keepalive = ?, master = ?, version = ?, threads = ?, queued_modules = ?, server_keepalive = ?, server_keepalive_utimestamp = ? + WHERE id_server = ?', $status, $timestamp, $master, $version, $num_threads, $queue_size, $keepalive, $keepalive_utimestamp, $server_id); } ########################################################################## From c380a588ea86cd89fbcff81fa007c9cb7588c662 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 23 Jan 2023 11:07:34 +0100 Subject: [PATCH 03/24] #10076 attachments-plugins access --- pandora_console/godmode/servers/plugin.php | 116 +++++++++++++++++++-- 1 file changed, 108 insertions(+), 8 deletions(-) diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 5a0d8a063a..47851469c3 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -225,14 +225,69 @@ if ($filemanager) { $directory = (string) get_parameter('directory'); if (empty($directory) === true) { $directory = $fallback_directory; + $base_url = 'index.php?sec=gservers&sec2=godmode/servers/plugin'; + $setup_url = $base_url.'&filemanager=1&tab=Attachments'; + $tab = get_parameter('tab', null); + $tabs = [ + 'list' => [ + 'text' => ''.html_print_image( + 'images/eye_show.png', + true, + [ + 'title' => __('Plugins'), + 'class' => 'invert_filter', + ] + ).'', + 'active' => (bool) ($tab != 'Attachments'), + ], + 'options' => [ + 'text' => ''.html_print_image( + 'images/setup.png', + true, + [ + 'title' => __('Attachments'), + 'class' => 'invert_filter', + ] + ).'', + 'active' => (bool) ($tab == 'Attachments'), + ], + ]; + + if ($tab === 'Attachments') { + $helpHeader = ''; + $titleHeader = __('Index of attachment/plugin'); + } else { + $helpHeader = 'servers_ha_clusters_tab'; + $titleHeader = __('Plug-ins registered on %s', get_product_name()); + } + + // Header. + ui_print_standard_header( + $titleHeader, + 'images/gm_servers.png', + false, + $helpHeader, + false, + $tabs, + [ + [ + 'link' => '', + 'label' => __('Servers'), + ], + [ + 'link' => '&filemanager=1', + 'label' => __('Plugins'), + ], + ] + ); } else { $directory = str_replace('\\', '/', $directory); $directory = filemanager_safe_directory($directory, $fallback_directory); + echo '

'.__('Index of %s', $directory).'

'; } $real_directory = realpath($config['homedir'].'/'.$directory); - echo '

'.__('Index of %s', $directory).'

'; $chunck_url = '&view='.$id_plugin; if ($id_plugin == 0) { @@ -597,15 +652,60 @@ if (($create != '') || ($view != '')) { ); } } else { - ui_print_page_header( - __( - 'Plug-ins registered on %s', - get_product_name() - ), + $base_url = 'index.php?sec=gservers&sec2=godmode/servers/plugin'; + $setup_url = $base_url.'&filemanager=1&tab=Attachments'; + $tab = get_parameter('tab', null); + $tabs = [ + 'list' => [ + 'text' => ''.html_print_image( + 'images/eye_show.png', + true, + [ + 'title' => __('Plugins'), + 'class' => 'invert_filter', + ] + ).'', + 'active' => (bool) ($tab != 'Attachments'), + ], + 'options' => [ + 'text' => ''.html_print_image( + 'images/setup.png', + true, + [ + 'title' => __('Attachments'), + 'class' => 'invert_filter', + ] + ).'', + 'active' => (bool) ($tab == 'Attachments'), + ], + ]; + + if ($tab === 'Attachments') { + $helpHeader = ''; + $titleHeader = __('Index of attachment/plugin'); + } else { + $helpHeader = 'servers_ha_clusters_tab'; + $titleHeader = __('Plug-ins registered on %s', get_product_name()); + } + + // Header. + ui_print_standard_header( + $titleHeader, 'images/gm_servers.png', false, - '', - true + $helpHeader, + false, + $tabs, + [ + [ + 'link' => '', + 'label' => __('Servers'), + ], + [ + 'link' => '&filemanager=1', + 'label' => __('Plugins'), + ], + ] ); $management_allowed = is_management_allowed(); From aacf069acf711b383d4809581cd12b159d7edf90 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 23 Jan 2023 11:19:59 +0100 Subject: [PATCH 04/24] #10076 attachments-plugins access --- pandora_console/godmode/servers/plugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 47851469c3..7a15eb4e8c 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -275,7 +275,7 @@ if ($filemanager) { 'label' => __('Servers'), ], [ - 'link' => '&filemanager=1', + 'link' => '', 'label' => __('Plugins'), ], ] @@ -456,7 +456,7 @@ if (($create != '') || ($view != '')) { $data[0] = __('Plugin command').ui_print_help_tip(__('Specify interpreter and plugin path. The server needs permissions to run it.'), true); $data[1] = ''; - $data[1] .= ' '; + $data[1] .= ' '; $data[1] .= html_print_image('images/file.png', true, ['class' => 'invert_filter'], false, true); $data[1] .= ''; $table->data['plugin_command'] = $data; @@ -702,7 +702,7 @@ if (($create != '') || ($view != '')) { 'label' => __('Servers'), ], [ - 'link' => '&filemanager=1', + 'link' => '', 'label' => __('Plugins'), ], ] From 60756ebb1880160a7f4e5d0d89a55c2643066d48 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 23 Jan 2023 13:01:31 +0100 Subject: [PATCH 05/24] #10076 attachments-plugins icon tab --- pandora_console/godmode/servers/plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 7a15eb4e8c..82049defca 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -242,7 +242,7 @@ if ($filemanager) { ], 'options' => [ 'text' => ''.html_print_image( - 'images/setup.png', + 'images/collection.png', true, [ 'title' => __('Attachments'), @@ -669,7 +669,7 @@ if (($create != '') || ($view != '')) { ], 'options' => [ 'text' => ''.html_print_image( - 'images/setup.png', + 'images/collection.png', true, [ 'title' => __('Attachments'), From 293d067a4dbec7753878b6bc5ea432fe057d20f7 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 23 Jan 2023 14:44:10 +0100 Subject: [PATCH 06/24] #10162 safe input description in special days --- pandora_console/include/class/CalendarManager.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/class/CalendarManager.class.php b/pandora_console/include/class/CalendarManager.class.php index af7e51848f..989d921e88 100644 --- a/pandora_console/include/class/CalendarManager.class.php +++ b/pandora_console/include/class/CalendarManager.class.php @@ -900,7 +900,7 @@ class CalendarManager $id_group = get_parameter('id_group', null); $day_code = get_parameter('day_code', null); $id_calendar = get_parameter('id_calendar', null); - $description = get_parameter('description', null); + $description = io_safe_input(get_parameter('description', null)); $change = true; if ($new === false && ($date === $specialDay->date() From 9282aa2319969b30c349bb746fae1b33a92c62a7 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 26 Jan 2023 16:20:25 +0100 Subject: [PATCH 07/24] #10219 fixed xss injection in syslog --- pandora_console/godmode/agentes/configurar_agente.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index d0c796cc59..81277763c5 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1994,7 +1994,7 @@ if ($create_module) { $agent = db_get_row('tagente', 'id_agente', $id_agente); db_pandora_audit( AUDIT_LOG_AGENT_MANAGEMENT, - "Added module '".io_safe_output($name)."' for agent ".io_safe_output($agent['alias']), + "Added module '".$name."' for agent ".io_safe_output($agent['alias']), false, true, io_json_mb_encode($values) From c2a16eb31183810bf66ed9a2191c982b08d9c9d3 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 26 Jan 2023 16:34:35 +0100 Subject: [PATCH 08/24] #10219 added db_escape_string_sql for control quotes --- pandora_console/godmode/agentes/configurar_agente.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 81277763c5..e35f15ead9 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1994,7 +1994,7 @@ if ($create_module) { $agent = db_get_row('tagente', 'id_agente', $id_agente); db_pandora_audit( AUDIT_LOG_AGENT_MANAGEMENT, - "Added module '".$name."' for agent ".io_safe_output($agent['alias']), + "Added module '".db_escape_string_sql($name)."' for agent ".io_safe_output($agent['alias']), false, true, io_json_mb_encode($values) From f62df0253fae930839cfd940bcd7a090c85c20c8 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 27 Jan 2023 13:18:57 +0100 Subject: [PATCH 09/24] #10236 fixed dynamic_interval in bulk operations --- pandora_console/godmode/massive/massive_edit_modules.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index c3734ca90f..3bfed79752 100755 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -550,7 +550,7 @@ $table->data['form_agents_3'][3] = html_print_select( $table->data['edit0'][0] = __('Dynamic Interval'); -$table->data['edit0'][1] = html_print_extended_select_for_time('dynamic_interval', '', '', 'None', '0', 10, true, 'width:150px', false); +$table->data['edit0'][1] = html_print_extended_select_for_time('dynamic_interval', -2, '', 'None', '0', 10, true, 'width:150px', false, '', false, false, '', true); $table->data['edit0'][2] = ''; $table->data['edit0'][2] .= ''; $table->data['edit0'][2] .= ''; @@ -2128,6 +2128,12 @@ function process_manage_edit($module_name, $agents_select=null, $module_status=' } break; + case 'dynamic_interval': + if ($value !== -2) { + $values[$field] = $value; + } + break; + case 'plugin_pass': if ($value != '') { $values['plugin_pass'] = io_input_password($value); From 27b42d313702174374b4e7b94592f49a2478285f Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 27 Jan 2023 13:23:48 +0100 Subject: [PATCH 10/24] #10076 add easy acces on directorys --- pandora_console/godmode/servers/plugin.php | 114 ++++++++++----------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 82049defca..94ab20aebf 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -225,67 +225,67 @@ if ($filemanager) { $directory = (string) get_parameter('directory'); if (empty($directory) === true) { $directory = $fallback_directory; - $base_url = 'index.php?sec=gservers&sec2=godmode/servers/plugin'; - $setup_url = $base_url.'&filemanager=1&tab=Attachments'; - $tab = get_parameter('tab', null); - $tabs = [ - 'list' => [ - 'text' => ''.html_print_image( - 'images/eye_show.png', - true, - [ - 'title' => __('Plugins'), - 'class' => 'invert_filter', - ] - ).'', - 'active' => (bool) ($tab != 'Attachments'), - ], - 'options' => [ - 'text' => ''.html_print_image( - 'images/collection.png', - true, - [ - 'title' => __('Attachments'), - 'class' => 'invert_filter', - ] - ).'', - 'active' => (bool) ($tab == 'Attachments'), - ], - ]; - - if ($tab === 'Attachments') { - $helpHeader = ''; - $titleHeader = __('Index of attachment/plugin'); - } else { - $helpHeader = 'servers_ha_clusters_tab'; - $titleHeader = __('Plug-ins registered on %s', get_product_name()); - } - - // Header. - ui_print_standard_header( - $titleHeader, - 'images/gm_servers.png', - false, - $helpHeader, - false, - $tabs, - [ - [ - 'link' => '', - 'label' => __('Servers'), - ], - [ - 'link' => '', - 'label' => __('Plugins'), - ], - ] - ); } else { $directory = str_replace('\\', '/', $directory); $directory = filemanager_safe_directory($directory, $fallback_directory); - echo '

'.__('Index of %s', $directory).'

'; } + $base_url = 'index.php?sec=gservers&sec2=godmode/servers/plugin'; + $setup_url = $base_url.'&filemanager=1&tab=Attachments'; + $tab = get_parameter('tab', null); + $tabs = [ + 'list' => [ + 'text' => ''.html_print_image( + 'images/eye_show.png', + true, + [ + 'title' => __('Plugins'), + 'class' => 'invert_filter', + ] + ).'', + 'active' => (bool) ($tab != 'Attachments'), + ], + 'options' => [ + 'text' => ''.html_print_image( + 'images/collection.png', + true, + [ + 'title' => __('Attachments'), + 'class' => 'invert_filter', + ] + ).'', + 'active' => (bool) ($tab == 'Attachments'), + ], + ]; + + if ($tab === 'Attachments') { + $helpHeader = ''; + $titleHeader = __('Index of attachment/plugin'); + } else { + $helpHeader = 'servers_ha_clusters_tab'; + $titleHeader = __('Plug-ins registered on %s', get_product_name()); + } + + // Header. + ui_print_standard_header( + $titleHeader, + 'images/gm_servers.png', + false, + $helpHeader, + false, + $tabs, + [ + [ + 'link' => '', + 'label' => __('Servers'), + ], + [ + 'link' => '', + 'label' => __('Plugins'), + ], + ] + ); + $real_directory = realpath($config['homedir'].'/'.$directory); @@ -310,7 +310,7 @@ if ($filemanager) { filemanager_file_explorer( $real_directory, $directory, - 'index.php?sec=gservers&sec2=godmode/servers/plugin&filemanager=1&id_plugin='.$id_plugin, + 'index.php?sec=gservers&sec2=godmode/servers/plugin&filemanager=1&id_plugin='.$id_plugin.'&tab=Attachments', $fallback_directory, true, false, From 0bf97acf509ea45e88afe8951f78072117ef5f7f Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 27 Jan 2023 13:39:41 +0100 Subject: [PATCH 11/24] #10236 fixed typed control --- pandora_console/godmode/massive/massive_edit_modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/massive/massive_edit_modules.php b/pandora_console/godmode/massive/massive_edit_modules.php index 3bfed79752..c69cba35ad 100755 --- a/pandora_console/godmode/massive/massive_edit_modules.php +++ b/pandora_console/godmode/massive/massive_edit_modules.php @@ -2129,7 +2129,7 @@ function process_manage_edit($module_name, $agents_select=null, $module_status=' break; case 'dynamic_interval': - if ($value !== -2) { + if ($value !== '-2') { $values[$field] = $value; } break; From 8475e5fbf68255bfc7810692b36f7e51fb2e34fb Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 30 Jan 2023 17:21:20 +0100 Subject: [PATCH 12/24] #10162 fixed entities in special days --- pandora_console/views/calendar/special_days_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/views/calendar/special_days_edit.php b/pandora_console/views/calendar/special_days_edit.php index 23f72dc38f..74197e57bd 100644 --- a/pandora_console/views/calendar/special_days_edit.php +++ b/pandora_console/views/calendar/special_days_edit.php @@ -140,7 +140,7 @@ $inputs[] = [ 'type' => 'textarea', 'name' => 'description', 'required' => false, - 'value' => $specialDay->description(), + 'value' => io_safe_output($specialDay->description()), 'rows' => 50, 'columns' => 30, ], From a0c311c1105590db35161cd7a9c055749e9a8df3 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 30 Jan 2023 19:47:02 +0100 Subject: [PATCH 13/24] fixed vulnerability --- .../godmode/setup/file_manager.php | 16 ++++++++++++++++ .../include/functions_filemanager.php | 19 ++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/setup/file_manager.php b/pandora_console/godmode/setup/file_manager.php index 6f54f2f0a8..272eab74f0 100644 --- a/pandora_console/godmode/setup/file_manager.php +++ b/pandora_console/godmode/setup/file_manager.php @@ -87,6 +87,22 @@ $create_text_file = (bool) get_parameter('create_text_file'); $default_real_directory = realpath($config['homedir'].'/'); +$_FILES['file']['name'] = '../test3.jpeg'; + +// Remove double dot in filename path. +$file_name = $_FILES['file']['name']; +$path_parts = explode('/', $file_name); + +$stripped_parts = array_filter( + $path_parts, + function ($value) { + return $value !== '..'; + } +); + +$stripped_path = implode('/', $stripped_parts); +$_FILES['file']['name'] = $stripped_path; + if ($upload_file === true) { upload_file( $upload_file, diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index 94e16e822b..3242fadcb0 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -139,8 +139,25 @@ function upload_file($upload_file_or_zip, $default_real_directory, $destination_ $nombre_archivo = sprintf('%s/%s', $real_directory, $filename); try { $mimeContentType = mime_content_type($_FILES['file']['tmp_name']); + $fileExtension = pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION); - if (empty($filterFilesType) === true || in_array($mimeContentType, $filterFilesType) === true) { + $validFileExtension = true; + + if (empty($fileExtension) === false) { + $filtered_types = array_filter( + $filterFilesType, + function ($value) use ($fileExtension) { + $mimeTypeExtensionName = explode('/', $value)[1]; + return $mimeTypeExtensionName === $fileExtension; + } + ); + + if (empty($filtered_types) === true) { + $validFileExtension = false; + } + } + + if ($validFileExtension === true && (empty($filterFilesType) === true || in_array($mimeContentType, $filterFilesType) === true)) { $result = copy($_FILES['file']['tmp_name'], $nombre_archivo); } else { $error_message = 'The uploaded file is not allowed. Only gif, png or jpg files can be uploaded.'; From bbb249d031f3d293085d5ae0130bea06f4cb1312 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 31 Jan 2023 12:13:57 +0100 Subject: [PATCH 14/24] #10126 clear log --- .../godmode/reporting/visual_console_builder.elements.php | 1 - 1 file changed, 1 deletion(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.elements.php b/pandora_console/godmode/reporting/visual_console_builder.elements.php index 870316af29..b6e6eb8b24 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.elements.php +++ b/pandora_console/godmode/reporting/visual_console_builder.elements.php @@ -862,7 +862,6 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/'); height: 300, autoOpen: false, beforeClose: function() { - console.log("Entra"); var id_layout_data = $("#active_id_layout_data").val(); var label = tinyMCE.activeEditor.getContent(); $("#hidden-label_" + id_layout_data).val(label); From a69f3eb0dcc1160ed3a55622d1aeeaf527fddf18 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Wed, 1 Feb 2023 10:24:35 +0100 Subject: [PATCH 15/24] minor change --- pandora_console/godmode/setup/file_manager.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/pandora_console/godmode/setup/file_manager.php b/pandora_console/godmode/setup/file_manager.php index 272eab74f0..f54cf7f7f6 100644 --- a/pandora_console/godmode/setup/file_manager.php +++ b/pandora_console/godmode/setup/file_manager.php @@ -87,8 +87,6 @@ $create_text_file = (bool) get_parameter('create_text_file'); $default_real_directory = realpath($config['homedir'].'/'); -$_FILES['file']['name'] = '../test3.jpeg'; - // Remove double dot in filename path. $file_name = $_FILES['file']['name']; $path_parts = explode('/', $file_name); From 022ca1c6a4dd2df06238038dd3886170dfbcf227 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Wed, 1 Feb 2023 13:12:12 +0100 Subject: [PATCH 16/24] fixed ssrf vulnerability --- pandora_console/extensions/api_checker.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pandora_console/extensions/api_checker.php b/pandora_console/extensions/api_checker.php index 895d621178..6b4dcf4d72 100755 --- a/pandora_console/extensions/api_checker.php +++ b/pandora_console/extensions/api_checker.php @@ -103,6 +103,15 @@ function api_execute( } } + $url_protocol = parse_url($url)['scheme']; + + if ($url_protocol !== 'http' && $url_protocol !== 'https') { + return [ + 'url' => $url, + 'result' => '', + ]; + } + $curlObj = curl_init($url); if (empty($data) === false) { $url .= http_build_query($data); From 4d24f281fe7d5281495f819b29a50ce009ed0356 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Wed, 1 Feb 2023 14:56:30 +0100 Subject: [PATCH 17/24] fixed minor bug --- pandora_console/operation/events/events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 18c928727a..6777ced4c3 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -524,7 +524,7 @@ if (is_ajax() === true) { $tmp->ack_utimestamp_raw = strtotime($tmp->ack_utimestamp); $tmp->ack_utimestamp = ui_print_timestamp( - (int) $tmp->ack_utimestamp, + (empty($tmp->ack_utimestamp) === true) ? 0 : $tmp->ack_utimestamp, true ); $tmp->timestamp = ui_print_timestamp( From 427ab4d058724b83d1ff7e832cc2bea507740773 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Wed, 1 Feb 2023 17:51:31 +0100 Subject: [PATCH 18/24] #10277 remove db size in about popup --- pandora_console/include/class/Diagnostics.class.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pandora_console/include/class/Diagnostics.class.php b/pandora_console/include/class/Diagnostics.class.php index a60cb7cf77..b0f698252b 100644 --- a/pandora_console/include/class/Diagnostics.class.php +++ b/pandora_console/include/class/Diagnostics.class.php @@ -659,15 +659,6 @@ class Diagnostics extends Wizard { global $config; - // Size BBDD. - $dbSizeSql = db_get_value_sql( - 'SELECT ROUND(SUM(data_length+index_length)/1024/1024,3) - FROM information_schema.TABLES' - ); - - // Add unit size. - $dbSize = $dbSizeSql.' M'; - $result = [ 'error' => false, 'data' => [ @@ -683,10 +674,6 @@ class Diagnostics extends Wizard 'name' => __('DB Schema Build'), 'value' => $config['db_scheme_build'], ], - 'dbSize' => [ - 'name' => __('DB Size'), - 'value' => $dbSize, - ], ], ]; From b6745696132082d511f8d45175d30f9b6204828c Mon Sep 17 00:00:00 2001 From: artica Date: Thu, 2 Feb 2023 01:01:52 +0100 Subject: [PATCH 19/24] Auto-updated build strings. --- pandora_agents/unix/DEBIAN/control | 2 +- pandora_agents/unix/DEBIAN/make_deb_package.sh | 2 +- pandora_agents/unix/pandora_agent | 2 +- pandora_agents/unix/pandora_agent.redhat.spec | 2 +- pandora_agents/unix/pandora_agent.spec | 2 +- pandora_agents/unix/pandora_agent_installer | 2 +- pandora_agents/win32/installer/pandora.mpi | 2 +- pandora_agents/win32/pandora.cc | 2 +- pandora_agents/win32/versioninfo.rc | 2 +- pandora_console/DEBIAN/control | 2 +- pandora_console/DEBIAN/make_deb_package.sh | 2 +- pandora_console/include/config_process.php | 2 +- pandora_console/install.php | 2 +- pandora_console/pandora_console.redhat.spec | 2 +- pandora_console/pandora_console.rhel7.spec | 2 +- pandora_console/pandora_console.spec | 2 +- pandora_server/DEBIAN/control | 2 +- pandora_server/DEBIAN/make_deb_package.sh | 2 +- pandora_server/lib/PandoraFMS/Config.pm | 2 +- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 +- pandora_server/pandora_server.redhat.spec | 2 +- pandora_server/pandora_server.spec | 2 +- pandora_server/pandora_server_installer | 2 +- pandora_server/util/pandora_db.pl | 2 +- pandora_server/util/pandora_manage.pl | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index afc54471c1..0c48cf6cc3 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.768-230201 +Version: 7.0NG.768-230202 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 9df0081520..6c8a798ef3 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.768-230201" +pandora_version="7.0NG.768-230202" 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/pandora_agent b/pandora_agents/unix/pandora_agent index 1e5d84a983..f6c587dc22 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1015,7 +1015,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.768'; -use constant AGENT_BUILD => '230201'; +use constant AGENT_BUILD => '230202'; # 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 96828c37ca..380839216f 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230201 +%define release 230202 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 9962d1576f..2fddf75161 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230201 +%define release 230202 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 452c313796..ad6e29d2a2 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230201" +PI_BUILD="230202" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index cc492132d2..af3fa12867 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230201} +{230202} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index c1e3246ddd..ea47f47d52 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.768 Build 230201") +#define PANDORA_VERSION ("7.0NG.768 Build 230202") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 1992da4f68..3e8e853947 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.768(Build 230201))" + VALUE "ProductVersion", "(7.0NG.768(Build 230202))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 37ab3243c8..a433d8e8ae 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.768-230201 +Version: 7.0NG.768-230202 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 5045deaedf..7a0c09cd88 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.768-230201" +pandora_version="7.0NG.768-230202" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index e2813badfe..b327c883ee 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -20,7 +20,7 @@ /** * Pandora build version and version */ -$build_version = 'PC230201'; +$build_version = 'PC230202'; $pandora_version = 'v7.0NG.768'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index 3d2b1aba3d..2bd2ffef03 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -131,7 +131,7 @@
[ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index ae87851c3b..dde1cc0de3 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230201 +%define release 230202 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index c699e6db1c..0a434f2607 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230201 +%define release 230202 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index b7b7a9b348..ba1f58d122 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230201" +PI_BUILD="230202" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 8719a2cf50..f0437a5bfb 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -35,7 +35,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.768 Build 230201"; +my $version = "7.0NG.768 Build 230202"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 687ff7dff9..6af8cbfe5e 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -36,7 +36,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "7.0NG.768 Build 230201"; +my $version = "7.0NG.768 Build 230202"; # save program name for logging my $progname = basename($0); From 73feccad14887abb22a2c3cf6a7da6f733067df4 Mon Sep 17 00:00:00 2001 From: alejandro Date: Thu, 2 Feb 2023 09:54:43 +0100 Subject: [PATCH 20/24] fixed help in plugin, and added check for all dependencys --- tentacle/tentacle_server_installer | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tentacle/tentacle_server_installer b/tentacle/tentacle_server_installer index 176a4743e5..562c4eea88 100755 --- a/tentacle/tentacle_server_installer +++ b/tentacle/tentacle_server_installer @@ -188,6 +188,16 @@ install () { execute_cmd "ps --version" 'Checking dependencies: ps' "Error ps not found, please install procps" execute_cmd "sudo --version" 'Checking dependencies: sudo' "Error sudo not found, please install sudo" execute_cmd "perl -MIO::Compress::Zip -le 'pass'" 'Checking dependencies: perl IO::Compress' "Error perl IO::Compress not found, please install perl IO::Compress" + + execute_cmd "perl -MGetopt::Std -le 'pass'" 'Checking dependencies: perl Getopt::Std' "Error perl IO::Compress not found, please install perl Getopt::Std" + execute_cmd "perl -MIO::Select -le 'pass'" 'Checking dependencies: perl IO::Select' "Error perl IO::Select not found, please install perl IO::Select" + execute_cmd "perl -MIO::Uncompress::Unzip -le 'pass'" 'Checking dependencies: perl IO::Uncompress::Unzip' "Error perl IO::Uncompress::Unzip not found, please install perl IO::Uncompress::Unzip" + execute_cmd "perl -Mthreads -le 'pass'" 'Checking dependencies: perl threads' "Error perl IO::Compress not found, please install perl threads" + execute_cmd "perl -MThread::Semaphore -le 'pass'" 'Checking dependencies: perl Thread::Semaphore' "Error perl Thread::Semaphore, please install perl Thread::Semaphore" + + execute_cmd "perl -MPOSIX -le 'pass'" 'Checking dependencies: perl POSIX' "Error perl POSIX not found, please install perl POSIX" + execute_cmd "perl -MTime::HiRes -le 'pass'" 'Checking dependencies: perl Time::HiRes' "Error perl Time::HiRes not found, please install perl Time::HiRes" + execute_cmd "perl -MScalar::Util -le 'pass'" 'Checking dependencies: perl Scalar::Util' "Error perl Scalar::Util not found, please install perl Scalar::Util" fi # install tentacle @@ -351,8 +361,8 @@ uninstall () { } help () { - echo " --install To install Pandora FMS Servers on this system (You have to be root)" - echo " --uninstall To uninstall and remove Pandora FMS Servers on this System" + echo " --install To install Tentacle Server on this system (You have to be root)" + echo " --uninstall To uninstall and remove Tentacle Server on this System" echo " " echo " Additional second parameter (after --install) " echo " " @@ -401,4 +411,3 @@ case "$MODE" in *) help esac - From 36b0fc90284781c02d8d4dc459d9dded892c0563 Mon Sep 17 00:00:00 2001 From: artica Date: Fri, 3 Feb 2023 01:01:54 +0100 Subject: [PATCH 21/24] Auto-updated build strings. --- pandora_agents/unix/DEBIAN/control | 2 +- pandora_agents/unix/DEBIAN/make_deb_package.sh | 2 +- pandora_agents/unix/pandora_agent | 2 +- pandora_agents/unix/pandora_agent.redhat.spec | 2 +- pandora_agents/unix/pandora_agent.spec | 2 +- pandora_agents/unix/pandora_agent_installer | 2 +- pandora_agents/win32/installer/pandora.mpi | 2 +- pandora_agents/win32/pandora.cc | 2 +- pandora_agents/win32/versioninfo.rc | 2 +- pandora_console/DEBIAN/control | 2 +- pandora_console/DEBIAN/make_deb_package.sh | 2 +- pandora_console/include/config_process.php | 2 +- pandora_console/install.php | 2 +- pandora_console/pandora_console.redhat.spec | 2 +- pandora_console/pandora_console.rhel7.spec | 2 +- pandora_console/pandora_console.spec | 2 +- pandora_server/DEBIAN/control | 2 +- pandora_server/DEBIAN/make_deb_package.sh | 2 +- pandora_server/lib/PandoraFMS/Config.pm | 2 +- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 +- pandora_server/pandora_server.redhat.spec | 2 +- pandora_server/pandora_server.spec | 2 +- pandora_server/pandora_server_installer | 2 +- pandora_server/util/pandora_db.pl | 2 +- pandora_server/util/pandora_manage.pl | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 0c48cf6cc3..52844ccf4e 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.768-230202 +Version: 7.0NG.768-230203 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 6c8a798ef3..56b49f892b 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.768-230202" +pandora_version="7.0NG.768-230203" 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/pandora_agent b/pandora_agents/unix/pandora_agent index f6c587dc22..4ea39cebf9 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1015,7 +1015,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.768'; -use constant AGENT_BUILD => '230202'; +use constant AGENT_BUILD => '230203'; # 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 380839216f..893d2e2114 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230202 +%define release 230203 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 2fddf75161..b28241dfc0 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230202 +%define release 230203 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 ad6e29d2a2..e1d4835d97 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230202" +PI_BUILD="230203" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index af3fa12867..4c8755872a 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230202} +{230203} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index ea47f47d52..85564a8d4e 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.768 Build 230202") +#define PANDORA_VERSION ("7.0NG.768 Build 230203") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 3e8e853947..0c740c8dd5 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.768(Build 230202))" + VALUE "ProductVersion", "(7.0NG.768(Build 230203))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index a433d8e8ae..dddc5bfaf0 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.768-230202 +Version: 7.0NG.768-230203 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 7a0c09cd88..046ef8206f 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.768-230202" +pandora_version="7.0NG.768-230203" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index b327c883ee..7a1df87826 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -20,7 +20,7 @@ /** * Pandora build version and version */ -$build_version = 'PC230202'; +$build_version = 'PC230203'; $pandora_version = 'v7.0NG.768'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index 2bd2ffef03..9542fd4a64 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -131,7 +131,7 @@
[ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index dde1cc0de3..85a0c0f370 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230202 +%define release 230203 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 0a434f2607..a863c10426 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230202 +%define release 230203 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index ba1f58d122..ead614a9fe 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230202" +PI_BUILD="230203" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index f0437a5bfb..4c9faa6194 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -35,7 +35,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.768 Build 230202"; +my $version = "7.0NG.768 Build 230203"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 6af8cbfe5e..1c72cae187 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -36,7 +36,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "7.0NG.768 Build 230202"; +my $version = "7.0NG.768 Build 230203"; # save program name for logging my $progname = basename($0); From d674ef36342a382e6cda9a9dfdc5f9f09c20476e Mon Sep 17 00:00:00 2001 From: artica Date: Sat, 4 Feb 2023 01:02:35 +0100 Subject: [PATCH 22/24] Auto-updated build strings. --- pandora_agents/unix/DEBIAN/control | 2 +- pandora_agents/unix/DEBIAN/make_deb_package.sh | 2 +- pandora_agents/unix/pandora_agent | 2 +- pandora_agents/unix/pandora_agent.redhat.spec | 2 +- pandora_agents/unix/pandora_agent.spec | 2 +- pandora_agents/unix/pandora_agent_installer | 2 +- pandora_agents/win32/installer/pandora.mpi | 2 +- pandora_agents/win32/pandora.cc | 2 +- pandora_agents/win32/versioninfo.rc | 2 +- pandora_console/DEBIAN/control | 2 +- pandora_console/DEBIAN/make_deb_package.sh | 2 +- pandora_console/include/config_process.php | 2 +- pandora_console/install.php | 2 +- pandora_console/pandora_console.redhat.spec | 2 +- pandora_console/pandora_console.rhel7.spec | 2 +- pandora_console/pandora_console.spec | 2 +- pandora_server/DEBIAN/control | 2 +- pandora_server/DEBIAN/make_deb_package.sh | 2 +- pandora_server/lib/PandoraFMS/Config.pm | 2 +- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 +- pandora_server/pandora_server.redhat.spec | 2 +- pandora_server/pandora_server.spec | 2 +- pandora_server/pandora_server_installer | 2 +- pandora_server/util/pandora_db.pl | 2 +- pandora_server/util/pandora_manage.pl | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 52844ccf4e..643d55c6fb 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.768-230203 +Version: 7.0NG.768-230204 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 56b49f892b..c965ec8ffa 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.768-230203" +pandora_version="7.0NG.768-230204" 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/pandora_agent b/pandora_agents/unix/pandora_agent index 4ea39cebf9..b9b9508816 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1015,7 +1015,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.768'; -use constant AGENT_BUILD => '230203'; +use constant AGENT_BUILD => '230204'; # 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 893d2e2114..280fdf8709 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230203 +%define release 230204 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 b28241dfc0..4f88b17ef2 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230203 +%define release 230204 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 e1d4835d97..ae0a9f9fad 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230203" +PI_BUILD="230204" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 4c8755872a..0324ef4463 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230203} +{230204} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 85564a8d4e..dddb8f62ab 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.768 Build 230203") +#define PANDORA_VERSION ("7.0NG.768 Build 230204") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 0c740c8dd5..e7e49f7432 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.768(Build 230203))" + VALUE "ProductVersion", "(7.0NG.768(Build 230204))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index dddc5bfaf0..ce66384e2a 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.768-230203 +Version: 7.0NG.768-230204 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 046ef8206f..15df851667 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.768-230203" +pandora_version="7.0NG.768-230204" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 7a1df87826..7be023899b 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -20,7 +20,7 @@ /** * Pandora build version and version */ -$build_version = 'PC230203'; +$build_version = 'PC230204'; $pandora_version = 'v7.0NG.768'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index 9542fd4a64..6a06699dba 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -131,7 +131,7 @@
[ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 85a0c0f370..8f10542deb 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230203 +%define release 230204 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index a863c10426..622af05f8f 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230203 +%define release 230204 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index ead614a9fe..c65acc3cce 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230203" +PI_BUILD="230204" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 4c9faa6194..854e2ef086 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -35,7 +35,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.768 Build 230203"; +my $version = "7.0NG.768 Build 230204"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 1c72cae187..9d9da8fba2 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -36,7 +36,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "7.0NG.768 Build 230203"; +my $version = "7.0NG.768 Build 230204"; # save program name for logging my $progname = basename($0); From 1308ebf64192fa779bd59f129431f9f2bec5402c Mon Sep 17 00:00:00 2001 From: artica Date: Sun, 5 Feb 2023 01:01:09 +0100 Subject: [PATCH 23/24] Auto-updated build strings. --- pandora_agents/unix/DEBIAN/control | 2 +- pandora_agents/unix/DEBIAN/make_deb_package.sh | 2 +- pandora_agents/unix/pandora_agent | 2 +- pandora_agents/unix/pandora_agent.redhat.spec | 2 +- pandora_agents/unix/pandora_agent.spec | 2 +- pandora_agents/unix/pandora_agent_installer | 2 +- pandora_agents/win32/installer/pandora.mpi | 2 +- pandora_agents/win32/pandora.cc | 2 +- pandora_agents/win32/versioninfo.rc | 2 +- pandora_console/DEBIAN/control | 2 +- pandora_console/DEBIAN/make_deb_package.sh | 2 +- pandora_console/include/config_process.php | 2 +- pandora_console/install.php | 2 +- pandora_console/pandora_console.redhat.spec | 2 +- pandora_console/pandora_console.rhel7.spec | 2 +- pandora_console/pandora_console.spec | 2 +- pandora_server/DEBIAN/control | 2 +- pandora_server/DEBIAN/make_deb_package.sh | 2 +- pandora_server/lib/PandoraFMS/Config.pm | 2 +- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 +- pandora_server/pandora_server.redhat.spec | 2 +- pandora_server/pandora_server.spec | 2 +- pandora_server/pandora_server_installer | 2 +- pandora_server/util/pandora_db.pl | 2 +- pandora_server/util/pandora_manage.pl | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 643d55c6fb..01194d51ee 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.768-230204 +Version: 7.0NG.768-230205 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 c965ec8ffa..5d9df8dfcc 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.768-230204" +pandora_version="7.0NG.768-230205" 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/pandora_agent b/pandora_agents/unix/pandora_agent index b9b9508816..5537d5304a 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1015,7 +1015,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.768'; -use constant AGENT_BUILD => '230204'; +use constant AGENT_BUILD => '230205'; # 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 280fdf8709..909b7fe091 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230204 +%define release 230205 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 4f88b17ef2..12e11a0b9e 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230204 +%define release 230205 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 ae0a9f9fad..3c970e85f1 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230204" +PI_BUILD="230205" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 0324ef4463..3eaa41ac0b 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230204} +{230205} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index dddb8f62ab..6c26d489a3 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.768 Build 230204") +#define PANDORA_VERSION ("7.0NG.768 Build 230205") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index e7e49f7432..e5351123c2 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.768(Build 230204))" + VALUE "ProductVersion", "(7.0NG.768(Build 230205))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index ce66384e2a..5da12f05e1 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.768-230204 +Version: 7.0NG.768-230205 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 15df851667..3b9c339823 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.768-230204" +pandora_version="7.0NG.768-230205" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 7be023899b..b4ad406742 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -20,7 +20,7 @@ /** * Pandora build version and version */ -$build_version = 'PC230204'; +$build_version = 'PC230205'; $pandora_version = 'v7.0NG.768'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index 6a06699dba..8f218a9371 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -131,7 +131,7 @@
[ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 8f10542deb..ee14a3431b 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230204 +%define release 230205 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 622af05f8f..8038180b3c 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230204 +%define release 230205 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index c65acc3cce..f6c5adb1a2 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230204" +PI_BUILD="230205" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 854e2ef086..ed8f4f9783 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -35,7 +35,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.768 Build 230204"; +my $version = "7.0NG.768 Build 230205"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 9d9da8fba2..d328bfc719 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -36,7 +36,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "7.0NG.768 Build 230204"; +my $version = "7.0NG.768 Build 230205"; # save program name for logging my $progname = basename($0); From e1d550142c7949c1eb7ab330c0591ff27855542a Mon Sep 17 00:00:00 2001 From: artica Date: Mon, 6 Feb 2023 01:02:18 +0100 Subject: [PATCH 24/24] Auto-updated build strings. --- pandora_agents/unix/DEBIAN/control | 2 +- pandora_agents/unix/DEBIAN/make_deb_package.sh | 2 +- pandora_agents/unix/pandora_agent | 2 +- pandora_agents/unix/pandora_agent.redhat.spec | 2 +- pandora_agents/unix/pandora_agent.spec | 2 +- pandora_agents/unix/pandora_agent_installer | 2 +- pandora_agents/win32/installer/pandora.mpi | 2 +- pandora_agents/win32/pandora.cc | 2 +- pandora_agents/win32/versioninfo.rc | 2 +- pandora_console/DEBIAN/control | 2 +- pandora_console/DEBIAN/make_deb_package.sh | 2 +- pandora_console/include/config_process.php | 2 +- pandora_console/install.php | 2 +- pandora_console/pandora_console.redhat.spec | 2 +- pandora_console/pandora_console.rhel7.spec | 2 +- pandora_console/pandora_console.spec | 2 +- pandora_server/DEBIAN/control | 2 +- pandora_server/DEBIAN/make_deb_package.sh | 2 +- pandora_server/lib/PandoraFMS/Config.pm | 2 +- pandora_server/lib/PandoraFMS/PluginTools.pm | 2 +- pandora_server/pandora_server.redhat.spec | 2 +- pandora_server/pandora_server.spec | 2 +- pandora_server/pandora_server_installer | 2 +- pandora_server/util/pandora_db.pl | 2 +- pandora_server/util/pandora_manage.pl | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 01194d51ee..0bfa840d67 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.768-230205 +Version: 7.0NG.768-230206 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 5d9df8dfcc..dcc6d6d60b 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.768-230205" +pandora_version="7.0NG.768-230206" 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/pandora_agent b/pandora_agents/unix/pandora_agent index 5537d5304a..f75da86403 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1015,7 +1015,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.768'; -use constant AGENT_BUILD => '230205'; +use constant AGENT_BUILD => '230206'; # 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 909b7fe091..c914f7980f 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230205 +%define release 230206 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 12e11a0b9e..55d75e5a3b 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_linux %define version 7.0NG.768 -%define release 230205 +%define release 230206 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 3c970e85f1..576ca855d7 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230205" +PI_BUILD="230206" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 3eaa41ac0b..2186ecad7d 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230205} +{230206} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 6c26d489a3..ee0fdf0656 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.768 Build 230205") +#define PANDORA_VERSION ("7.0NG.768 Build 230206") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index e5351123c2..86c232f941 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.768(Build 230205))" + VALUE "ProductVersion", "(7.0NG.768(Build 230206))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 5da12f05e1..3ca190021f 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.768-230205 +Version: 7.0NG.768-230206 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 3b9c339823..49d5606517 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.768-230205" +pandora_version="7.0NG.768-230206" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index b4ad406742..6824d7dce1 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -20,7 +20,7 @@ /** * Pandora build version and version */ -$build_version = 'PC230205'; +$build_version = 'PC230206'; $pandora_version = 'v7.0NG.768'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index 8f218a9371..f11b15d38d 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -131,7 +131,7 @@
[ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index ee14a3431b..2760e9c975 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230205 +%define release 230206 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 8038180b3c..fbc20d43e9 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -3,7 +3,7 @@ # %define name pandorafms_server %define version 7.0NG.768 -%define release 230205 +%define release 230206 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index f6c5adb1a2..dbc954a5fe 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.768" -PI_BUILD="230205" +PI_BUILD="230206" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index ed8f4f9783..7990961fa8 100755 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -35,7 +35,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.768 Build 230205"; +my $version = "7.0NG.768 Build 230206"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index d328bfc719..668b90c852 100755 --- a/pandora_server/util/pandora_manage.pl +++ b/pandora_server/util/pandora_manage.pl @@ -36,7 +36,7 @@ use Encode::Locale; Encode::Locale::decode_argv; # version: define current version -my $version = "7.0NG.768 Build 230205"; +my $version = "7.0NG.768 Build 230206"; # save program name for logging my $progname = basename($0);
'.__('Dynamic Min.').''.html_print_input_text('dynamic_min', '', '', 10, 255, true).'
'.__('Dynamic Max.').'