From 48aff7669709299e2dfd927bbe232ab3ea5d74a5 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Wed, 26 Apr 2023 12:55:37 +0200 Subject: [PATCH 01/18] #11049 fixed reset time range --- pandora_console/operation/reporting/graph_viewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php index ebdadb1fe4..5d741e38dd 100644 --- a/pandora_console/operation/reporting/graph_viewer.php +++ b/pandora_console/operation/reporting/graph_viewer.php @@ -344,7 +344,7 @@ if ($view_graph) { $searchForm .= ""; $searchForm .= html_print_label_input_block( __('Time range'), - html_print_extended_select_for_time('period', $period, '', '', '0', 10, true, 'width:100%') + html_print_extended_select_for_time('period', (string) $period, '', '', 0, 10, true, 'width:100%') ); $searchForm .= ''; $searchForm .= ''; From 4c32c6c888512a60e77a030a50a82ba7f417ce7d Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Wed, 26 Apr 2023 13:46:29 +0200 Subject: [PATCH 02/18] #11049 hiden Equalize maxiddmum when graph is not Bullet --- pandora_console/operation/reporting/graph_viewer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php index 5d741e38dd..b06dcbca80 100644 --- a/pandora_console/operation/reporting/graph_viewer.php +++ b/pandora_console/operation/reporting/graph_viewer.php @@ -376,9 +376,9 @@ if ($view_graph) { false, '', false - ) + ), + ['div_id' => 'thresholdDiv'] ); - $searchForm .= ''; $searchForm .= ''; $searchForm .= ""; From 94cdd624fa60e7aeff76704a20e4f5a8707e403d Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 19 May 2023 13:10:19 +0200 Subject: [PATCH 03/18] #11289 fixed autocomplete url address in agent --- pandora_console/godmode/agentes/agent_manager.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index f01c035e80..2e9e73f376 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -795,8 +795,6 @@ if (enterprise_installed() === true) { '', 'w540px', '', - // Autocomplete. - 'new-password' ); } else { $urlAddressInput = html_print_input_text( From efc96d96616d299a2b157ae4a0f1a8213a8aa780 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 22 May 2023 10:01:57 +0200 Subject: [PATCH 04/18] #11299 added avanced mode agent in open version --- .../godmode/agentes/agent_manager.php | 77 ++++++++++--------- 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index f01c035e80..10f35549ea 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -295,25 +295,25 @@ if (enterprise_installed() === true) { $cps_val = $cps; } } +} - // Parent agents. - $paramsParentAgent = []; - $paramsParentAgent['return'] = true; - $paramsParentAgent['show_helptip'] = false; - $paramsParentAgent['input_name'] = 'id_parent'; - $paramsParentAgent['print_hidden_input_idagent'] = true; - $paramsParentAgent['hidden_input_idagent_name'] = 'id_agent_parent'; - $paramsParentAgent['hidden_input_idagent_value'] = $id_parent; - $paramsParentAgent['value'] = db_get_value('alias', 'tagente', 'id_agente', $id_parent); - $paramsParentAgent['selectbox_id'] = 'cascade_protection_module'; - $paramsParentAgent['javascript_is_function_select'] = true; - $paramsParentAgent['cascade_protection'] = true; - $paramsParentAgent['input_style'] = 'width: 100%;'; +// Parent agents. +$paramsParentAgent = []; +$paramsParentAgent['return'] = true; +$paramsParentAgent['show_helptip'] = false; +$paramsParentAgent['input_name'] = 'id_parent'; +$paramsParentAgent['print_hidden_input_idagent'] = true; +$paramsParentAgent['hidden_input_idagent_name'] = 'id_agent_parent'; +$paramsParentAgent['hidden_input_idagent_value'] = $id_parent; +$paramsParentAgent['value'] = db_get_value('alias', 'tagente', 'id_agente', $id_parent); +$paramsParentAgent['selectbox_id'] = 'cascade_protection_module'; +$paramsParentAgent['javascript_is_function_select'] = true; +$paramsParentAgent['cascade_protection'] = true; +$paramsParentAgent['input_style'] = 'width: 100%;'; - if ($id_agente !== 0) { - // Deletes the agent's offspring. - $paramsParentAgent['delete_offspring_agents'] = $id_agente; - } +if ($id_agente !== 0) { + // Deletes the agent's offspring. + $paramsParentAgent['delete_offspring_agents'] = $id_agente; } $listIcons = gis_get_array_list_icons(); @@ -631,15 +631,18 @@ $tableAdvancedAgent->style = []; $tableAdvancedAgent->cellclass = []; $tableAdvancedAgent->colspan = []; $tableAdvancedAgent->rowspan = []; -// Secondary groups. -$tableAdvancedAgent->data['secondary_groups'][] = html_print_label_input_block( - __('Secondary groups'), - html_print_select_agent_secondary( - $agent, - $id_agente, - ['selected_post' => $secondary_groups] - ) -); + +if (enterprise_installed() === true) { + // Secondary groups. + $tableAdvancedAgent->data['secondary_groups'][] = html_print_label_input_block( + __('Secondary groups'), + html_print_select_agent_secondary( + $agent, + $id_agente, + ['selected_post' => $secondary_groups] + ) + ); +} // Parent agent. $tableAdvancedAgent->data['parent_agent'][] = html_print_label_input_block( @@ -903,18 +906,16 @@ $tableAdvancedAgent->data['safe_operation'][] = html_print_label_input_block( ) ); -if (enterprise_installed() === true) { - ui_toggle( - html_print_table($tableAdvancedAgent, true), - ''.__('Advanced options').'', - '', - '', - true, - false, - 'white_box_content', - 'no-border white_table_graph' - ); -} +ui_toggle( + html_print_table($tableAdvancedAgent, true), + ''.__('Advanced options').'', + '', + '', + true, + false, + 'white_box_content', + 'no-border white_table_graph' +); // Custom fields. $customOutputData = ''; From 55794b640a5d78f76f9582ef38280173cc6cce71 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 22 May 2023 18:12:14 +0200 Subject: [PATCH 05/18] #11322 change throw_unknown_events token in remote components --- .../godmode/modules/manage_network_components_form_common.php | 2 +- pandora_console/include/functions_network_components.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/modules/manage_network_components_form_common.php b/pandora_console/godmode/modules/manage_network_components_form_common.php index f7890712b3..d90f90d514 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_common.php +++ b/pandora_console/godmode/modules/manage_network_components_form_common.php @@ -327,7 +327,7 @@ $table->data[10][2] = __('Discard unknown events'); $table->data[10][3] = html_print_checkbox( 'throw_unknown_events', 1, - network_components_is_disable_type_event($id, EVENTS_GOING_UNKNOWN), + network_components_is_disable_type_event(($id === '0') ? false : $id, EVENTS_GOING_UNKNOWN), true ); diff --git a/pandora_console/include/functions_network_components.php b/pandora_console/include/functions_network_components.php index f6c0087b37..acce410dd6 100644 --- a/pandora_console/include/functions_network_components.php +++ b/pandora_console/include/functions_network_components.php @@ -31,7 +31,7 @@ function network_components_is_disable_type_event($id=false, $type_event=false) if ($id === false) { switch ($type_event) { case EVENTS_GOING_UNKNOWN: - return true; + return false; break; case EVENTS_UNKNOWN: From cfa61f07269ddc02b64de66770f2049433ea06fa Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 22 May 2023 18:14:48 +0200 Subject: [PATCH 06/18] #11322 fixed type --- .../godmode/modules/manage_network_components_form_common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/godmode/modules/manage_network_components_form_common.php b/pandora_console/godmode/modules/manage_network_components_form_common.php index d90f90d514..9af6f3911d 100644 --- a/pandora_console/godmode/modules/manage_network_components_form_common.php +++ b/pandora_console/godmode/modules/manage_network_components_form_common.php @@ -327,7 +327,7 @@ $table->data[10][2] = __('Discard unknown events'); $table->data[10][3] = html_print_checkbox( 'throw_unknown_events', 1, - network_components_is_disable_type_event(($id === '0') ? false : $id, EVENTS_GOING_UNKNOWN), + network_components_is_disable_type_event(($id === 0) ? false : $id, EVENTS_GOING_UNKNOWN), true ); From e77657a1219a443b3679086729144c5df40a9d3a Mon Sep 17 00:00:00 2001 From: Calvo Date: Tue, 23 May 2023 17:56:41 +0200 Subject: [PATCH 07/18] Fix nmap os detection with OS details --- pandora_server/lib/PandoraFMS/DiscoveryServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm index f17d2c5363..a556334ee0 100644 --- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm +++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm @@ -433,7 +433,7 @@ sub PandoraFMS::Recon::Base::guess_os($$;$) { return OS_OTHER if ($? != 0); my $str_os; if ($return =~ /Aggressive OS guesses:\s*(.*)|OS details:\s(.*)/) { - if($1 ne "") { + if(defined($1) && $1 ne "") { $str_os = $1; } else { $str_os = $2; From 0e28ed2cb519dd1e6eb777243aa1477d6871ca98 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 25 May 2023 12:40:32 +0200 Subject: [PATCH 08/18] #11345 removed console.log --- pandora_console/include/javascript/pandora_modules.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 220459bacd..ea110c37f3 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -1544,10 +1544,7 @@ function changePlugin() { var pluginDescription = pluginAllData.description; var pluginMacros = pluginAllData.macros; - console.log(pluginAllData.macrosElement); var pluginMacrosElement = JSON.parse(atob(pluginAllData.macrosElement)); - console.log(pluginMacrosElement); - var displayShow = "none"; if (executionType == EXECUTION_TYPE_NETWORK) { displayShow = "none"; From 0c180f7ed3c9ee9c0190ef6656f2514659f2908b Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Fri, 26 May 2023 09:59:08 +0200 Subject: [PATCH 09/18] #11371 Fix inner join error and fix data array --- pandora_console/include/functions_inventory.php | 14 ++++++++------ pandora_console/operation/inventory/inventory.php | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/functions_inventory.php b/pandora_console/include/functions_inventory.php index 2beed2f0dc..78aca29867 100644 --- a/pandora_console/include/functions_inventory.php +++ b/pandora_console/include/functions_inventory.php @@ -818,9 +818,16 @@ function inventory_get_datatable( function get_data_basic_info_sql($params, $count=false) { + $table = 'tagente'; + if (is_metaconsole() === true) { + $table = 'tmetaconsole_agent'; + } + $where = 'WHERE 1=1 '; - if ($params['id_agent'] > 0) { + if ($params['id_agent'] > 0 && $count === true) { $where .= sprintf(' AND id_agente = %d', $params['id_agent']); + } else if ($params['id_agent'] > 0 && $count === false) { + $where .= sprintf(' AND %s.id_agente = %d', $table, $params['id_agent']); } if ($params['id_group'] > 0) { @@ -897,11 +904,6 @@ function get_data_basic_info_sql($params, $count=false) $innerjoin = ''; $groupby = ''; - $table = 'tagente'; - if (is_metaconsole() === true) { - $table = 'tmetaconsole_agent'; - } - if ($count !== true) { $fields = '*'; $innerjoin = 'LEFT JOIN tagente_estado ON '.$table.'.id_agente = tagente_estado.id_agente '; diff --git a/pandora_console/operation/inventory/inventory.php b/pandora_console/operation/inventory/inventory.php index a402444fff..d706221db2 100755 --- a/pandora_console/operation/inventory/inventory.php +++ b/pandora_console/operation/inventory/inventory.php @@ -1041,9 +1041,9 @@ if ($inventory_module !== 'basic') { $row) { + $data = []; $columns = explode(';', io_safe_output($row['data_format'])); array_push($columns, 'Timestamp'); From 526168e0eb6b77cd4ae444fdcaa4dbd1b2745050 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 26 May 2023 11:57:51 +0200 Subject: [PATCH 10/18] #11361 SLA Grpah correction PDF Metaconsole --- pandora_console/include/chart_generator.php | 5 ++++ pandora_console/include/functions.php | 23 +++++++++++++++++++ .../include/graphs/functions_flot.php | 5 ++-- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/chart_generator.php b/pandora_console/include/chart_generator.php index 62701365e5..2695b89c22 100644 --- a/pandora_console/include/chart_generator.php +++ b/pandora_console/include/chart_generator.php @@ -46,6 +46,8 @@ if (json_last_error() === JSON_ERROR_NONE) { $session_id = $data_decoded['session_id']; $type_graph_pdf = $data_decoded['type_graph_pdf']; $id_user = $data_decoded['id_user']; + $slicebar = $data_decoded['slicebar']; + $slicebar_value = $data_decoded['slicebar_value']; $data_combined = []; if (isset($data_decoded['data_combined']) === true) { @@ -64,6 +66,9 @@ global $config; // Care whit this!!! check_login not working if you remove this. $config['id_user'] = $id_user; $_SESSION['id_usuario'] = $id_user; +if (!isset($config[$slicebar])) { + $config[$slicebar] = $slicebar_value; +} // Try to initialize session using existing php session id. $user = new PandoraFMS\User(['phpsessionid' => $session_id]); diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 81799a549d..7f59f6e598 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -3548,6 +3548,25 @@ function update_config_token($cfgtoken, $cfgvalue) } +function update_check_config_token($cfgtoken, $cfgvalue) +{ + global $config; + db_process_sql('START TRANSACTION'); + if (isset($config[$cfgtoken])) { + delete_config_token($cfgtoken); + } + + $insert = db_process_sql(sprintf("INSERT INTO tconfig (token, value) VALUES ('%s', '%s')", $cfgtoken, $cfgvalue)); + db_process_sql('COMMIT'); + if ($insert) { + $config[$cfgtoken] = $cfgvalue; + return true; + } else { + return false; + } +} + + function delete_config_token($cfgtoken) { $delete = db_process_sql(sprintf('DELETE FROM tconfig WHERE token = "%s"', $cfgtoken)); @@ -4284,6 +4303,8 @@ function generator_chart_to_pdf( 'data_module_list' => $module_list, 'data_combined' => $params_combined, 'id_user' => $config['id_user'], + 'slicebar' => $_SESSION['slicebar'], + 'slicebar_value' => $config[$_SESSION['slicebar']], ]; } else { $data = [ @@ -4291,6 +4312,8 @@ function generator_chart_to_pdf( 'session_id' => $session_id, 'type_graph_pdf' => $type_graph_pdf, 'id_user' => $config['id_user'], + 'slicebar' => $_SESSION['slicebar'], + 'slicebar_value' => $config[$_SESSION['slicebar']], ]; } diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 1ee377f290..d1856b7b4c 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -756,8 +756,9 @@ function flot_slicesbar_graph( 'server_id' => $server_id, ]; // TO-DO Cambiar esto para que se pase por POST, NO SE PUEDE PASAR POR GET. - update_config_token($tokem_config, json_encode($graph_data)); - + update_check_config_token($tokem_config, json_encode($graph_data)); + $_SESSION['slicebar'] = $tokem_config; + $_SESSION['slicebar_value'] = json_encode($graph_data); $graph = ''; From 0e64721ca50e25071e1a723bba0a574d2d190a2c Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 26 May 2023 12:37:37 +0200 Subject: [PATCH 11/18] #11374 fixed bulk operation user --- pandora_console/godmode/massive/massive_add_profiles.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/godmode/massive/massive_add_profiles.php b/pandora_console/godmode/massive/massive_add_profiles.php index 38657bdf1c..6fa11d357f 100644 --- a/pandora_console/godmode/massive/massive_add_profiles.php +++ b/pandora_console/godmode/massive/massive_add_profiles.php @@ -109,7 +109,7 @@ if ($create_profiles) { } else { foreach ($profiles_id as $profile) { // Check profiles permissions for non admin user. - if (is_user_admin($config['user_id']) === false) { + if (is_user_admin($config['id_user']) === false) { $user_profiles = profile_get_profiles( [ 'pandora_management' => '<> 1', @@ -122,7 +122,7 @@ if ($create_profiles) { AUDIT_LOG_ACL_VIOLATION, 'Trying to add administrator profile whith standar user for user '.io_safe_input($user) ); - exit; + continue; } } @@ -132,7 +132,7 @@ if ($create_profiles) { AUDIT_LOG_ACL_VIOLATION, 'Trying to add profile group without permission for user '.io_safe_input($user) ); - exit; + continue; } foreach ($users_id as $user) { @@ -141,7 +141,7 @@ if ($create_profiles) { AUDIT_LOG_ACL_VIOLATION, 'Trying to edit user without permission for user '.io_safe_input($user) ); - exit; + continue; } $profile_data = db_get_row_filter('tusuario_perfil', ['id_usuario' => $user, 'id_perfil' => $profile, 'id_grupo' => $group]); From aa610c0c643b418bf2d53b7c7b2e0dbf38bdad5c Mon Sep 17 00:00:00 2001 From: Calvo Date: Fri, 26 May 2023 13:35:21 +0200 Subject: [PATCH 12/18] Fix os detetcion --- pandora_server/lib/PandoraFMS/Core.pm | 40 +++++++++---------- .../lib/PandoraFMS/DiscoveryServer.pm | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index ea9fb091b1..305c116d4b 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -6689,40 +6689,40 @@ sub pandora_get_os ($$) { return 10; } - if ($os =~ m/Windows.*?(?=\(\d+%\))/i) { + if ($os =~ m/Windows/i) { return 9; } - if ($os =~ m/Cisco.*?(?=\(\d+%\))/i) { + if ($os =~ m/Cisco/i) { return 7; } - if ($os =~ m/SunOS.*?(?=\(\d+%\))/i || $os =~ m/Solaris.*?(?=\(\d+%\))/i) { + if ($os =~ m/SunOS/i || $os =~ m/Solaris/i) { return 2; } - if ($os =~ m/AIX.*?(?=\(\d+%\))/i) { + if ($os =~ m/AIX/i) { return 3; } - if ($os =~ m/HP\-UX.*?(?=\(\d+%\))/i) { + if ($os =~ m/HP\-UX/i) { return 5; } - if ($os =~ m/Apple.*?(?=\(\d+%\))/i || $os =~ m/Darwin.*?(?=\(\d+%\))/i) { + if ($os =~ m/Apple/i || $os =~ m/Darwin/i) { return 8; } - if ($os =~ m/Linux.*?(?=\(\d+%\))/i) { - return 1; - } - if ($os =~ m/Enterasys.*?(?=\(\d+%\))/i || $os =~ m/3com.*?(?=\(\d+%\))/i) { - return 11; - } - if ($os =~ m/Octopods.*?(?=\(\d+%\))/i) { - return 13; - } - if ($os =~ m/embedded.*?(?=\(\d+%\))/i) { - return 14; - } - if ($os =~ m/android.*?(?=\(\d+%\))/i) { + if ($os =~ m/android/i) { return 15; } - if ($os =~ m/BSD.*?(?=\(\d+%\))/i) { + if ($os =~ m/Linux/i) { + return 1; + } + if ($os =~ m/Enterasys/i || $os =~ m/3com/i) { + return 11; + } + if ($os =~ m/Octopods/i) { + return 13; + } + if ($os =~ m/embedded/i) { + return 14; + } + if ($os =~ m/BSD/i) { return 4; } diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm index a556334ee0..835ae1b82a 100644 --- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm +++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm @@ -432,7 +432,7 @@ sub PandoraFMS::Recon::Base::guess_os($$;$) { my $return = `"$self->{pa_config}->{nmap}" -sSU -T5 -F -O --osscan-limit $device 2>$DEVNULL`; return OS_OTHER if ($? != 0); my $str_os; - if ($return =~ /Aggressive OS guesses:\s*(.*)|OS details:\s(.*)/) { + if ($return =~ /Aggressive OS guesses:(.*?)(?>\(\d+%\),)|^OS details:(.*?)\(.*\)*$/mi) { if(defined($1) && $1 ne "") { $str_os = $1; } else { From 7a03a5bac9c60388e5f3f0c747728fedb18b1c90 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Fri, 26 May 2023 13:37:15 +0200 Subject: [PATCH 13/18] #11381 fixed ip address name in availability report --- pandora_console/include/functions_reporting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 8c8a7870e9..4596ba64aa 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -9123,7 +9123,7 @@ function reporting_availability($report, $content, $date=false, $time=false) modules_get_agentmodule_agent($item['id_agent_module']) ); - if (empty($text)) { + if (empty($row['data']['availability_item'])) { $row['data']['availability_item'] = __('No Address'); } } else { From 20425562c9144c14844911c645c182f37f36cb78 Mon Sep 17 00:00:00 2001 From: artica Date: Sat, 27 May 2023 01:00:18 +0200 Subject: [PATCH 14/18] 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 738d82859a..0adb3f4c21 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.771-230526 +Version: 7.0NG.771-230527 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 0f2a8b9a64..bafb50cf1c 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.771-230526" +pandora_version="7.0NG.771-230527" 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 41faa4189c..21a7411482 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1023,7 +1023,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.771'; -use constant AGENT_BUILD => '230526'; +use constant AGENT_BUILD => '230527'; # 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 e65a057a1f..3d032242f5 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230526 +%define release 230527 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 9384ca50d8..366c89c922 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230526 +%define release 230527 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 40246f249e..b9de6d9635 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230526" +PI_BUILD="230527" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 85cf1478e9..b297542102 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230526} +{230527} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 76e4a97a68..c6e917bf4d 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.771 Build 230526") +#define PANDORA_VERSION ("7.0NG.771 Build 230527") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 4a9570c10f..a346532db9 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.771(Build 230526))" + VALUE "ProductVersion", "(7.0NG.771(Build 230527))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index fdb6f97015..c807f9084a 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.771-230526 +Version: 7.0NG.771-230527 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 1a4058f752..f80e363a00 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.771-230526" +pandora_version="7.0NG.771-230527" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 5c69e24da3..048e28c8c9 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 = 'PC230526'; +$build_version = 'PC230527'; $pandora_version = 'v7.0NG.771'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index b0948156d4..a5ff62a68c 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 39068c81ff..2caceecfaf 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230526 +%define release 230527 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 378e3ceeeb..bc516405c1 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230526 +%define release 230527 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index 2d9c7b6fdb..56c11ad66c 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230526" +PI_BUILD="230527" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index bf57f5573f..f9f555190f 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.771 Build 230526"; +my $version = "7.0NG.771 Build 230527"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 43ccece3d3..71814e30f6 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.771 Build 230526"; +my $version = "7.0NG.771 Build 230527"; # save program name for logging my $progname = basename($0); From d58c7fe2a8950aaa63ef9aa6654eac747dc06ab2 Mon Sep 17 00:00:00 2001 From: artica Date: Sun, 28 May 2023 01:00:16 +0200 Subject: [PATCH 15/18] 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 0adb3f4c21..a334c82472 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.771-230527 +Version: 7.0NG.771-230528 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 bafb50cf1c..cf9c9b60eb 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.771-230527" +pandora_version="7.0NG.771-230528" 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 21a7411482..7b580bfe7b 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1023,7 +1023,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.771'; -use constant AGENT_BUILD => '230527'; +use constant AGENT_BUILD => '230528'; # 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 3d032242f5..f90eff4f4a 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230527 +%define release 230528 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 366c89c922..e6e460abf2 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230527 +%define release 230528 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 b9de6d9635..1e10362396 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230527" +PI_BUILD="230528" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index b297542102..a2e61911a0 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230527} +{230528} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index c6e917bf4d..0773696a44 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.771 Build 230527") +#define PANDORA_VERSION ("7.0NG.771 Build 230528") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index a346532db9..440d08598b 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.771(Build 230527))" + VALUE "ProductVersion", "(7.0NG.771(Build 230528))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index c807f9084a..e5cdd0a3cd 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.771-230527 +Version: 7.0NG.771-230528 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 f80e363a00..12697b89ee 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.771-230527" +pandora_version="7.0NG.771-230528" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 048e28c8c9..d69baed988 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 = 'PC230527'; +$build_version = 'PC230528'; $pandora_version = 'v7.0NG.771'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index a5ff62a68c..d2575f0bce 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 2caceecfaf..1c3d55189b 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230527 +%define release 230528 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index bc516405c1..d1009fdc9c 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230527 +%define release 230528 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index 56c11ad66c..b02759b352 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230527" +PI_BUILD="230528" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index f9f555190f..c350562981 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.771 Build 230527"; +my $version = "7.0NG.771 Build 230528"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 71814e30f6..47884bf7ad 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.771 Build 230527"; +my $version = "7.0NG.771 Build 230528"; # save program name for logging my $progname = basename($0); From 6a634a37c5e30f26cf3718ea4bceb980dc0e3f8c Mon Sep 17 00:00:00 2001 From: artica Date: Mon, 29 May 2023 01:00:17 +0200 Subject: [PATCH 16/18] 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 a334c82472..ce90075db2 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.771-230528 +Version: 7.0NG.771-230529 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 cf9c9b60eb..b0e8ff0370 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.771-230528" +pandora_version="7.0NG.771-230529" 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 7b580bfe7b..7cc3f0d495 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1023,7 +1023,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.771'; -use constant AGENT_BUILD => '230528'; +use constant AGENT_BUILD => '230529'; # 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 f90eff4f4a..d8e7930d53 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230528 +%define release 230529 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 e6e460abf2..ddb80a0d94 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230528 +%define release 230529 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 1e10362396..be8a4dbf4c 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230528" +PI_BUILD="230529" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index a2e61911a0..00d6766a84 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230528} +{230529} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 0773696a44..de919713b7 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.771 Build 230528") +#define PANDORA_VERSION ("7.0NG.771 Build 230529") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 440d08598b..3d1d149693 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.771(Build 230528))" + VALUE "ProductVersion", "(7.0NG.771(Build 230529))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index e5cdd0a3cd..5bef9036e4 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.771-230528 +Version: 7.0NG.771-230529 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 12697b89ee..8ca9f85525 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.771-230528" +pandora_version="7.0NG.771-230529" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index d69baed988..dd9f772d5a 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 = 'PC230528'; +$build_version = 'PC230529'; $pandora_version = 'v7.0NG.771'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index d2575f0bce..682abb43ef 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 1c3d55189b..f0f899aabc 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230528 +%define release 230529 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index d1009fdc9c..d918958f02 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230528 +%define release 230529 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index b02759b352..9e28020733 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230528" +PI_BUILD="230529" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index c350562981..e5759af9f2 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.771 Build 230528"; +my $version = "7.0NG.771 Build 230529"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 47884bf7ad..b05bedaed4 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.771 Build 230528"; +my $version = "7.0NG.771 Build 230529"; # save program name for logging my $progname = basename($0); From 6650bfdc03218020c425bea82a7659b9362eabac Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Mon, 29 May 2023 10:43:12 +0200 Subject: [PATCH 17/18] #11358 evaluate if field value is a object --- pandora_console/include/db/mysql.php | 46 +++++++++++++++------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/pandora_console/include/db/mysql.php b/pandora_console/include/db/mysql.php index 564e566247..97880fdcbf 100644 --- a/pandora_console/include/db/mysql.php +++ b/pandora_console/include/db/mysql.php @@ -1190,30 +1190,32 @@ function mysql_db_format_array_to_update_sql($values) $fields = []; foreach ($values as $field => $value) { - if (is_numeric($field)) { - array_push($fields, $value); - continue; - } else if ($field[0] == '`') { - $field = str_replace('`', '', $field); - } - - if ($value === null) { - $sql = sprintf('`%s` = NULL', $field); - } else if (is_int($value) || is_bool($value)) { - $sql = sprintf('`%s` = %d', $field, $value); - } else if (is_float($value) || is_double($value)) { - $sql = sprintf('`%s` = %f', $field, $value); - } else { - // String - if (isset($value[0]) && $value[0] == '`') { - // Don't round with quotes if it references a field - $sql = sprintf('`%s` = %s', $field, $value); - } else { - $sql = sprintf("`%s` = '%s'", $field, $value); + if (is_object($value) === false) { + if (is_numeric($field)) { + array_push($fields, $value); + continue; + } else if ($field[0] == '`') { + $field = str_replace('`', '', $field); } - } - array_push($fields, $sql); + if ($value === null) { + $sql = sprintf('`%s` = NULL', $field); + } else if (is_int($value) || is_bool($value)) { + $sql = sprintf('`%s` = %d', $field, $value); + } else if (is_float($value) || is_double($value)) { + $sql = sprintf('`%s` = %f', $field, $value); + } else { + // String + if (isset($value[0]) && $value[0] == '`') { + // Don't round with quotes if it references a field + $sql = sprintf('`%s` = %s', $field, $value); + } else { + $sql = sprintf("`%s` = '%s'", $field, $value); + } + } + + array_push($fields, $sql); + } } return implode(', ', $fields); From 97455d4304268c3ffea4897cc080ce79f9eedad0 Mon Sep 17 00:00:00 2001 From: artica Date: Tue, 30 May 2023 01:00:18 +0200 Subject: [PATCH 18/18] 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 ce90075db2..068d25ba61 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.771-230529 +Version: 7.0NG.771-230530 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 b0e8ff0370..0ca3e7bc19 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.771-230529" +pandora_version="7.0NG.771-230530" 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 7cc3f0d495..61818d4d77 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1023,7 +1023,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.771'; -use constant AGENT_BUILD => '230529'; +use constant AGENT_BUILD => '230530'; # 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 d8e7930d53..61b7de98c3 100644 --- a/pandora_agents/unix/pandora_agent.redhat.spec +++ b/pandora_agents/unix/pandora_agent.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230529 +%define release 230530 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 ddb80a0d94..69cdf3c0e9 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_agent_linux %define version 7.0NG.771 -%define release 230529 +%define release 230530 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 be8a4dbf4c..563121f5e2 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230529" +PI_BUILD="230530" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 00d6766a84..7709331714 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{230529} +{230530} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index de919713b7..394ea74ed3 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.771 Build 230529") +#define PANDORA_VERSION ("7.0NG.771 Build 230530") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 3d1d149693..ea51a460fc 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.771(Build 230529))" + VALUE "ProductVersion", "(7.0NG.771(Build 230530))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 5bef9036e4..a8053b5563 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.771-230529 +Version: 7.0NG.771-230530 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 8ca9f85525..45449be129 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.771-230529" +pandora_version="7.0NG.771-230530" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index dd9f772d5a..55bdd44779 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 = 'PC230529'; +$build_version = 'PC230530'; $pandora_version = 'v7.0NG.771'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index 682abb43ef..7cb1d40aec 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 f0f899aabc..65e55331b9 100644 --- a/pandora_server/pandora_server.redhat.spec +++ b/pandora_server/pandora_server.redhat.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230529 +%define release 230530 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index d918958f02..3fb9655291 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -4,7 +4,7 @@ %global __os_install_post %{nil} %define name pandorafms_server %define version 7.0NG.771 -%define release 230529 +%define release 230530 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index 9e28020733..6e6f49d985 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.771" -PI_BUILD="230529" +PI_BUILD="230530" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index e5759af9f2..fa7b89786a 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.771 Build 230529"; +my $version = "7.0NG.771 Build 230530"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index b05bedaed4..c2fd71141a 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.771 Build 230529"; +my $version = "7.0NG.771 Build 230530"; # save program name for logging my $progname = basename($0);