From 4e927e1ee59750b6685123a7991135f7d8e5c45c Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Thu, 1 Aug 2019 10:36:15 +0200 Subject: [PATCH 01/11] Fixed bad image for warning status - #4454 --- pandora_console/include/class/TreeService.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/class/TreeService.class.php b/pandora_console/include/class/TreeService.class.php index 2316714031..ffa542d995 100644 --- a/pandora_console/include/class/TreeService.class.php +++ b/pandora_console/include/class/TreeService.class.php @@ -104,7 +104,7 @@ class TreeService extends Tree break; case SERVICE_STATUS_WARNING: - $processed_items[$row['id']][$key]['statusImageHTML'] = 'WARNING status.'; + $processed_items[$row['id']]['statusImageHTML'] = 'WARNING status.'; break; case SERVICE_STATUS_UNKNOWN: From a9e02bbb41a095fb92d32c52d46ef4039621a3c7 Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Thu, 29 Aug 2019 12:40:13 +0200 Subject: [PATCH 02/11] Changed permissions to delete traps to IM - #4567 --- pandora_console/operation/snmpconsole/snmp_view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/operation/snmpconsole/snmp_view.php b/pandora_console/operation/snmpconsole/snmp_view.php index c7f69b4109..7068e296d9 100755 --- a/pandora_console/operation/snmpconsole/snmp_view.php +++ b/pandora_console/operation/snmpconsole/snmp_view.php @@ -921,7 +921,7 @@ if ($traps !== false) { } } else { $agent_trap_group = db_get_value('id_grupo', 'tagente', 'nombre', $trap['source']); - if ((check_acl($config['id_user'], $agent_trap_group, 'AW'))) { + if ((check_acl($config['id_user'], $agent_trap_group, 'IM'))) { $data[8] .= ''.html_print_image('images/cross.png', true, ['border' => '0', 'title' => __('Delete')]).' '; } } From 4e47aede4c3f9c78f4c33dc8730bff3724214185 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 23 Sep 2019 16:55:43 +0200 Subject: [PATCH 03/11] Fixed modules_get_relations --- .../agentes/module_manager_editor_common.php | 79 ++++++++++--------- pandora_console/include/functions_modules.php | 61 +++++++------- 2 files changed, 75 insertions(+), 65 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index ac110b0d6f..5a4653fc29 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -1191,49 +1191,54 @@ $table_relations->data[-1][3] .= html_print_image('images/lock.png', true).' $table_relations->data[-1][4] = ''; $table_relations->data[-1][4] .= html_print_image('images/cross.png', true).''; -$module_relations = modules_get_relations(['id_module' => $id_agent_module]); -if (!$module_relations) { - $module_relations = []; -} $relations_count = 0; -foreach ($module_relations as $key => $module_relation) { - if ($module_relation['module_a'] == $id_agent_module) { - $module_id = $module_relation['module_b']; - $agent_id = modules_give_agent_id_from_module_id( - $module_relation['module_b'] - ); - } else { - $module_id = $module_relation['module_a']; - $agent_id = modules_give_agent_id_from_module_id( - $module_relation['module_a'] - ); +if ($id_agent_module) { + $module_relations = modules_get_relations(['id_module' => $id_agent_module]); + + if (!$module_relations) { + $module_relations = []; } - $agent_name = ui_print_agent_name($agent_id, true); + $relations_count = 0; + foreach ($module_relations as $key => $module_relation) { + if ($module_relation['module_a'] == $id_agent_module) { + $module_id = $module_relation['module_b']; + $agent_id = modules_give_agent_id_from_module_id( + $module_relation['module_b'] + ); + } else { + $module_id = $module_relation['module_a']; + $agent_id = modules_give_agent_id_from_module_id( + $module_relation['module_a'] + ); + } - $module_name = modules_get_agentmodule_name($module_id); - if (empty($module_name) || $module_name == 'false') { - $module_name = $module_id; + $agent_name = ui_print_agent_name($agent_id, true); + + $module_name = modules_get_agentmodule_name($module_id); + if (empty($module_name) || $module_name == 'false') { + $module_name = $module_id; + } + + if ($module_relation['disable_update']) { + $disabled_update_class = ''; + } else { + $disabled_update_class = 'alpha50'; + } + + // Agent name. + $table_relations->data[$relations_count][0] = $agent_name; + // Module name. + $table_relations->data[$relations_count][1] = "".ui_print_truncate_text($module_name, 'module_medium', true, true, true, '[…]').''; + // Type. + $table_relations->data[$relations_count][2] = ($module_relation['type'] === 'direct') ? __('Direct') : __('Failover'); + // Lock relationship updates. + $table_relations->data[$relations_count][3] = ''.html_print_image('images/lock.png', true).''; + // Delete relationship. + $table_relations->data[$relations_count][4] = ''.html_print_image('images/cross.png', true).''; + $relations_count++; } - - if ($module_relation['disable_update']) { - $disabled_update_class = ''; - } else { - $disabled_update_class = 'alpha50'; - } - - // Agent name. - $table_relations->data[$relations_count][0] = $agent_name; - // Module name. - $table_relations->data[$relations_count][1] = "".ui_print_truncate_text($module_name, 'module_medium', true, true, true, '[…]').''; - // Type. - $table_relations->data[$relations_count][2] = ($module_relation['type'] === 'direct') ? __('Direct') : __('Failover'); - // Lock relationship updates. - $table_relations->data[$relations_count][3] = ''.html_print_image('images/lock.png', true).''; - // Delete relationship. - $table_relations->data[$relations_count][4] = ''.html_print_image('images/cross.png', true).''; - $relations_count++; } html_print_input_hidden('module_relations_count', $relations_count); diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index fbee2a5331..39cc5b4a49 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -2654,21 +2654,18 @@ function modules_get_relations($params=[]) } $modules_type = ''; + $modules_type_filter = ''; if (isset($params['modules_type'])) { - $modules_type = $params['modules_type']; + $module_type = 'INNER JOIN ttipo_modulo ttm ON tam.id_tipo_modulo = ttm.id_tipo'; + $modules_type_filter = sprintf( + "AND ttm.nombre = '%s'", + $params['modules_type'] + ); } - $sql = 'SELECT DISTINCT tmr.id, tmr.module_a, tmr.module_b, - tmr.disable_update, tmr.type - FROM tmodule_relationship tmr, - tagente_modulo tam, - tagente ta, - ttipo_modulo ttm - WHERE '; - - $agent_filter = ''; - if ($id_agent > 0) { - $agent_filter = sprintf('AND ta.id_agente = %d', $id_agent); + $distinct = ''; + if (empty($params)) { + $distinct = 'DISTINCT'; } $module_a_filter = ''; @@ -2678,6 +2675,11 @@ function modules_get_relations($params=[]) $module_b_filter = sprintf('AND tmr.module_b = %d', $id_module); } + $agent_filter = ''; + if ($id_agent > 0) { + $agent_filter = sprintf('AND ta.id_agente = %d', $id_agent); + } + $disabled_update_filter = ''; if ($disabled_update >= 0) { $disabled_update_filter = sprintf( @@ -2686,22 +2688,25 @@ function modules_get_relations($params=[]) ); } - $modules_type_filter = ''; - if ($modules_type != '') { - $modules_type_filter = sprintf( - "AND (tam.id_tipo_modulo = ttm.id_tipo AND ttm.nombre = '%s')", - $modules_type - ); - } - - $sql .= "( (tmr.module_a = tam.id_agente_modulo - $module_a_filter) - OR (tmr.module_b = tam.id_agente_modulo - $module_b_filter) ) - AND tam.id_agente = ta.id_agente - $agent_filter - $disabled_update_filter - $modules_type_filter"; + $sql = sprintf( + 'SELECT %s tmr.id, tmr.module_a, tmr.module_b, + tmr.disable_update, tmr.type + FROM tmodule_relationship tmr + INNER JOIN tagente_modulo tam + ON (tmr.module_a = tam.id_agente_modulo %s) + OR (tmr.module_b = tam.id_agente_modulo %s) + INNER JOIN tagente ta + ON tam.id_agente = ta.id_agente + %s + WHERE 1=1 %s %s %s', + $distinct, + $module_a_filter, + $module_b_filter, + $module_type, + $agent_filter, + $disabled_update_filter, + $modules_type_filter + ); return db_get_all_rows_sql($sql); } From cc18d5d1ed969447c03263c8680a40d9e58938eb Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Thu, 26 Sep 2019 17:51:26 +0200 Subject: [PATCH 04/11] Fixed Error --- pandora_console/include/functions_graph.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index cbc0bceee5..a0a23c3aac 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -311,6 +311,22 @@ function grafico_modulo_sparse_data( $array_data['percentil'.$series_suffix]['unit'] = $data_module_graph['unit']; } + if ($params['type_mode_graph']) { + $array_data['min'.$series_suffix]['agent_module_id'] = $agent_module_id; + $array_data['min'.$series_suffix]['id_module_type'] = $data_module_graph['id_module_type']; + $array_data['min'.$series_suffix]['agent_name'] = $data_module_graph['agent_name']; + $array_data['min'.$series_suffix]['module_name'] = $data_module_graph['module_name']; + $array_data['min'.$series_suffix]['agent_alias'] = $data_module_graph['agent_alias']; + $array_data['min'.$series_suffix]['unit'] = $data_module_graph['unit']; + + $array_data['max'.$series_suffix]['agent_module_id'] = $agent_module_id; + $array_data['max'.$series_suffix]['id_module_type'] = $data_module_graph['id_module_type']; + $array_data['max'.$series_suffix]['agent_name'] = $data_module_graph['agent_name']; + $array_data['max'.$series_suffix]['module_name'] = $data_module_graph['module_name']; + $array_data['max'.$series_suffix]['agent_alias'] = $data_module_graph['agent_alias']; + $array_data['max'.$series_suffix]['unit'] = $data_module_graph['unit']; + } + // This is for a specific type of report that consists in passing // an interval and doing the average sum and avg. if ($params['force_interval'] != '') { From 4c93ca3d6086c002bc89b8cc5e3948b22a4cafda Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Fri, 27 Sep 2019 12:07:40 +0200 Subject: [PATCH 05/11] fixed minor error --- pandora_console/include/functions_graph.php | 67 +++++++++++++-------- 1 file changed, 43 insertions(+), 24 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index a0a23c3aac..944b825a4b 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -295,36 +295,40 @@ function grafico_modulo_sparse_data( return false; } - $array_data['sum'.$series_suffix]['agent_module_id'] = $agent_module_id; - $array_data['sum'.$series_suffix]['id_module_type'] = $data_module_graph['id_module_type']; - $array_data['sum'.$series_suffix]['agent_name'] = $data_module_graph['agent_name']; - $array_data['sum'.$series_suffix]['module_name'] = $data_module_graph['module_name']; - $array_data['sum'.$series_suffix]['agent_alias'] = $data_module_graph['agent_alias']; - $array_data['sum'.$series_suffix]['unit'] = $data_module_graph['unit']; + $array_data = series_suffix_leyend( + 'sum', + $series_suffix, + $agent_module_id, + $data_module_graph, + $array_data + ); if ($params['percentil']) { - $array_data['percentil'.$series_suffix]['agent_module_id'] = $agent_module_id; - $array_data['percentil'.$series_suffix]['id_module_type'] = $data_module_graph['id_module_type']; - $array_data['percentil'.$series_suffix]['agent_name'] = $data_module_graph['agent_name']; - $array_data['percentil'.$series_suffix]['module_name'] = $data_module_graph['module_name']; - $array_data['percentil'.$series_suffix]['agent_alias'] = $data_module_graph['agent_alias']; - $array_data['percentil'.$series_suffix]['unit'] = $data_module_graph['unit']; + $array_data = series_suffix_leyend( + 'percentil', + $series_suffix, + $agent_module_id, + $data_module_graph, + $array_data + ); } if ($params['type_mode_graph']) { - $array_data['min'.$series_suffix]['agent_module_id'] = $agent_module_id; - $array_data['min'.$series_suffix]['id_module_type'] = $data_module_graph['id_module_type']; - $array_data['min'.$series_suffix]['agent_name'] = $data_module_graph['agent_name']; - $array_data['min'.$series_suffix]['module_name'] = $data_module_graph['module_name']; - $array_data['min'.$series_suffix]['agent_alias'] = $data_module_graph['agent_alias']; - $array_data['min'.$series_suffix]['unit'] = $data_module_graph['unit']; + $array_data = series_suffix_leyend( + 'min', + $series_suffix, + $agent_module_id, + $data_module_graph, + $array_data + ); - $array_data['max'.$series_suffix]['agent_module_id'] = $agent_module_id; - $array_data['max'.$series_suffix]['id_module_type'] = $data_module_graph['id_module_type']; - $array_data['max'.$series_suffix]['agent_name'] = $data_module_graph['agent_name']; - $array_data['max'.$series_suffix]['module_name'] = $data_module_graph['module_name']; - $array_data['max'.$series_suffix]['agent_alias'] = $data_module_graph['agent_alias']; - $array_data['max'.$series_suffix]['unit'] = $data_module_graph['unit']; + $array_data = series_suffix_leyend( + 'max', + $series_suffix, + $agent_module_id, + $data_module_graph, + $array_data + ); } // This is for a specific type of report that consists in passing @@ -3208,6 +3212,21 @@ function graphic_incident_source($width=320, $height=200) } +function series_suffix_leyend($series_name, $series_suffix, $id_agent, $data_module_graph, $array_data) +{ + global $config; + + $array_data[$series_name.$series_suffix]['agent_module_id'] = $id_agent; + $array_data[$series_name.$series_suffix]['id_module_type'] = $data_module_graph['id_module_type']; + $array_data[$series_name.$series_suffix]['agent_name'] = $data_module_graph['agent_name']; + $array_data[$series_name.$series_suffix]['module_name'] = $data_module_graph['module_name']; + $array_data[$series_name.$series_suffix]['agent_alias'] = $data_module_graph['agent_alias']; + $array_data[$series_name.$series_suffix]['unit'] = $data_module_graph['unit']; + + return $array_data; +} + + function graph_events_validated($width=300, $height=200, $extra_filters=[], $meta=false, $history=false) { global $config; From d878958502947cb4f328ed1b85a999064d8876f3 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 30 Sep 2019 12:48:46 +0200 Subject: [PATCH 06/11] Added notify when Console and Server have version mismatch --- .../include/class/ConsoleSupervisor.php | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index 7a16e47a1a..b595d94f96 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -209,6 +209,12 @@ class ConsoleSupervisor $this->getUMMessages(); + /* + * Check if the Server and Console has + * the same versions. + */ + $this->checkConsoleServerVersions(); + } @@ -435,6 +441,12 @@ class ConsoleSupervisor $this->getUMMessages(); + /* + * Check if the Server and Console has + * the same versions. + */ + $this->checkConsoleServerVersions(); + } @@ -2334,4 +2346,41 @@ class ConsoleSupervisor } + /** + * Check if the Server and Console versions are the same + * + * @return void + */ + public function checkConsoleServerVersions() + { + $server_complete_version = db_get_value( + 'version', + 'tserver', + 'id_server', + '1' + ); + + $console_version = db_get_value( + 'value', + 'tconfig', + 'token', + 'current_package_enterprise' + ); + + if (strpos($server_complete_version, $console_version) === false) { + $title_version_misaligned = 'Console / Server version misaligned'; + $message_version_misaligned = 'Console and Server don\'t have the same version. This might cause several malfunctions. Please, update.'; + + $this->notify( + [ + 'type' => 'NOTIF.SERVER.MISALIGNED', + 'title' => __($title_version_misaligned), + 'message' => __($message_version_misaligned), + 'url' => ui_get_full_url('index.php?sec=messages&sec2=godmode/update_manager/update_manager&tab=online'), + ] + ); + } + } + + } From 5294e2f627b2427954f12bdd1d6b461a8f16f8e3 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 30 Sep 2019 15:40:40 +0200 Subject: [PATCH 07/11] Now the supervisor control all servers and not only one --- .../include/class/ConsoleSupervisor.php | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index b595d94f96..013a7e967f 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -2347,38 +2347,32 @@ class ConsoleSupervisor /** - * Check if the Server and Console versions are the same + * Check if all servers and console versions are the same * * @return void */ public function checkConsoleServerVersions() { - $server_complete_version = db_get_value( - 'version', - 'tserver', - 'id_server', - '1' + global $config; + // List all servers except satellite server + $server_version_list = db_get_all_rows_sql( + 'SELECT name, version FROM tserver WHERE server_type != '.SERVER_TYPE_ENTERPRISE_SATELLITE ); - $console_version = db_get_value( - 'value', - 'tconfig', - 'token', - 'current_package_enterprise' - ); + foreach ($server_version_list as $server) { + if (strpos($server['version'], $config['current_package_enterprise']) === false) { + $title_ver_misaligned = $server['name'].' version misaligned with Console'; + $message_ver_misaligned = 'Server '.$server['name'].' and this console have different versions. This might cause several malfunctions. Please, update this server.'; - if (strpos($server_complete_version, $console_version) === false) { - $title_version_misaligned = 'Console / Server version misaligned'; - $message_version_misaligned = 'Console and Server don\'t have the same version. This might cause several malfunctions. Please, update.'; - - $this->notify( - [ - 'type' => 'NOTIF.SERVER.MISALIGNED', - 'title' => __($title_version_misaligned), - 'message' => __($message_version_misaligned), - 'url' => ui_get_full_url('index.php?sec=messages&sec2=godmode/update_manager/update_manager&tab=online'), - ] - ); + $this->notify( + [ + 'type' => 'NOTIF.SERVER.MISALIGNED', + 'title' => __($title_ver_misaligned), + 'message' => __($message_ver_misaligned), + 'url' => ui_get_full_url('index.php?sec=messages&sec2=godmode/update_manager/update_manager&tab=online'), + ] + ); + } } } From f55b2ce80f874f99962e60b497402e230f78a710 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Tue, 1 Oct 2019 11:22:25 +0200 Subject: [PATCH 08/11] Improved truncate system and solved issue --- pandora_console/include/functions_ui.php | 4 ++++ pandora_console/operation/events/events.php | 16 ++-------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 06c4b579ea..6c0db1db8f 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -162,6 +162,10 @@ function ui_print_truncate_text($text, $numChars=GENERIC_SIZE_TEXT, $showTextInA } if ($showTextInAToopTip) { + if (is_string($showTextInAToopTip)) { + $text = ui_print_truncate_text($showTextInAToopTip, ($numChars * 2), false, true, false); + } + $truncateText = $truncateText.ui_print_help_tip(htmlspecialchars($text), true); } else { if ($style !== false) { diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 851bce345a..2631a2546a 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -280,17 +280,9 @@ if (is_ajax()) { $events, function ($carry, $item) { $tmp = (object) $item; - $tmp->hint = ''; - $tmp->meta = false; + $tmp->evento = str_replace('"', '', io_safe_output($tmp->evento)); if (strlen($tmp->evento) >= 255) { - $tmp->hint = io_safe_output(chunk_split(substr($tmp->evento, 0, 600), 80, '
').'(...)'); - $tmp->meta = is_metaconsole(); - $tmp->evento = io_safe_output(substr($tmp->evento, 0, 253).'(...)'); - if (strpos($tmp->evento, ' ') === false) { - $tmp->evento = substr($tmp->evento, 0, 80).'(...)'; - } - } else { - $tmp->evento = io_safe_output($tmp->evento); + $tmp->evento = ui_print_truncate_text($tmp->evento, 255, $tmp->evento, true, false); } if ($tmp->module_name) { @@ -1659,10 +1651,6 @@ function process_datatables_item(item) { evn += '('+item.event_rep+') '; } evn += item.evento+''; - if(item.hint !== ''){ - let ruta = item.meta == true ? '../../images/tip_help.png' : 'images/tip_help.png'; - evn += ' '+item.hint+''; - } item.mini_severity = '
'; item.mini_severity += output; From 5a2ca8e65f76d32911a762feb4dfa4a739328511 Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Wed, 2 Oct 2019 17:37:14 +0200 Subject: [PATCH 09/11] Added all string types - #4678 --- pandora_server/lib/PandoraFMS/Core.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 644b983a5c..ef8a9c18bf 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -4094,7 +4094,7 @@ sub on_demand_macro($$$$$$;$) { my $unit_mod = get_db_value ($dbh, 'SELECT unit FROM tagente_modulo WHERE id_agente_modulo = ?', $id_mod); my $field_value = ""; - if ($type_mod eq 3){ + if ($type_mod eq 3 || $type_mod eq 23|| $type_mod eq 17 || $type_mod eq 10 || $type_mod eq 33 ){ $field_value = get_db_value($dbh, 'SELECT datos FROM tagente_datos_string where id_agente_modulo = ? order by utimestamp desc limit 1', $id_mod); } else{ From 7ac12e45ef13add8044ec8dc37159427b0ddeaab Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 7 Oct 2019 13:33:18 +0200 Subject: [PATCH 10/11] Solved visual issue --- pandora_console/include/functions_events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index b10b38702f..1def7dfbbf 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -4382,7 +4382,7 @@ function events_page_general($event) $data = []; $data[0] = __('Event name'); - $data[1] = events_display_name($event['evento']); + $data[1] = ''.events_display_name($event['evento']).''; $table_general->data[] = $data; $data = []; From 2a76b06870255b34c32264314ffca8fab38445cf Mon Sep 17 00:00:00 2001 From: artica Date: Tue, 8 Oct 2019 00:01:11 +0200 Subject: [PATCH 11/11] 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 d93b2be5b9..530d72c92a 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.739-191007 +Version: 7.0NG.739-191008 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 44ea53b266..7a0b937277 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.739-191007" +pandora_version="7.0NG.739-191008" 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 632d48a5b3..3c1555127b 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -42,7 +42,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.739'; -use constant AGENT_BUILD => '191007'; +use constant AGENT_BUILD => '191008'; # 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 078bf06e88..cfb80e4a20 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_unix %define version 7.0NG.739 -%define release 191007 +%define release 191008 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 7b6c11ed99..75849e3332 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -3,7 +3,7 @@ # %define name pandorafms_agent_unix %define version 7.0NG.739 -%define release 191007 +%define release 191008 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 01c278b2be..c9c15b524d 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.739" -PI_BUILD="191007" +PI_BUILD="191008" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index 1e4a49c3f0..c4cb54ef67 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{191007} +{191008} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index 56488961dd..4c2e13743e 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.739(Build 191007)") +#define PANDORA_VERSION ("7.0NG.739(Build 191008)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 9ff0b5bc25..421dfa8cb0 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.739(Build 191007))" + VALUE "ProductVersion", "(7.0NG.739(Build 191008))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index 743602bee7..dbc8eb0477 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.739-191007 +Version: 7.0NG.739-191008 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 b45c35a9db..6b176913da 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.739-191007" +pandora_version="7.0NG.739-191008" package_pear=0 package_pandora=1 diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 6556d2aa12..4f3ff4ba1b 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 = 'PC191007'; +$build_version = 'PC191008'; $pandora_version = 'v7.0NG.739'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/install.php b/pandora_console/install.php index 088e125c09..b6537ed570 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -129,7 +129,7 @@
[ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 526154ca89..7b24e60431 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.739 -%define release 191007 +%define release 191008 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index cd3f77e686..38219c6a3d 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.739 -%define release 191007 +%define release 191008 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index 92a72130f8..2770800a24 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.739" -PI_BUILD="191007" +PI_BUILD="191008" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index a7d5424188..5a7dc23016 100644 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -34,7 +34,7 @@ use PandoraFMS::Config; use PandoraFMS::DB; # version: define current version -my $version = "7.0NG.739 PS191007"; +my $version = "7.0NG.739 PS191008"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index f7786d40bd..11e0e3c324 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.739 PS191007"; +my $version = "7.0NG.739 PS191008"; # save program name for logging my $progname = basename($0);