diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control index 020e1465c5..70545a78b6 100644 --- a/pandora_agents/unix/DEBIAN/control +++ b/pandora_agents/unix/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-agent-unix -Version: 7.0NG.752-210324 +Version: 7.0NG.752-210325 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 a04d1c2a99..dafeaaa35a 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.752-210324" +pandora_version="7.0NG.752-210325" 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 f1f355a5e9..d62aaf51ea 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -1016,7 +1016,7 @@ my $Sem = undef; my $ThreadSem = undef; use constant AGENT_VERSION => '7.0NG.752'; -use constant AGENT_BUILD => '210324'; +use constant AGENT_BUILD => '210325'; # 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 107b92c137..65ebf1591e 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.752 -%define release 210324 +%define release 210325 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 349e7f6a3b..c889ffe5e7 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.752 -%define release 210324 +%define release 210325 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 8cfcbc3443..c9a12cf59f 100755 --- a/pandora_agents/unix/pandora_agent_installer +++ b/pandora_agents/unix/pandora_agent_installer @@ -10,7 +10,7 @@ # ********************************************************************** PI_VERSION="7.0NG.752" -PI_BUILD="210324" +PI_BUILD="210325" OS_NAME=`uname -s` FORCE=0 diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi index cca7dab021..ea1d398fc7 100644 --- a/pandora_agents/win32/installer/pandora.mpi +++ b/pandora_agents/win32/installer/pandora.mpi @@ -186,7 +186,7 @@ UpgradeApplicationID {} Version -{210324} +{210325} ViewReadme {Yes} diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc index f5f623f7f5..50ea94d212 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.752(Build 210324)") +#define PANDORA_VERSION ("7.0NG.752(Build 210325)") string pandora_path; string pandora_dir; diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc index 0ad208138e..031cae79e1 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.752(Build 210324))" + VALUE "ProductVersion", "(7.0NG.752(Build 210325))" VALUE "FileVersion", "1.0.0.0" END END diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control index d96fee194d..fa0c953087 100644 --- a/pandora_console/DEBIAN/control +++ b/pandora_console/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-console -Version: 7.0NG.752-210324 +Version: 7.0NG.752-210325 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 49240cef58..9b876c3b61 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.752-210324" +pandora_version="7.0NG.752-210325" package_pear=0 package_pandora=1 diff --git a/pandora_console/extras/delete_files/delete_files.txt b/pandora_console/extras/delete_files/delete_files.txt index 680e931a4e..7e9650d18c 100644 --- a/pandora_console/extras/delete_files/delete_files.txt +++ b/pandora_console/extras/delete_files/delete_files.txt @@ -76,4 +76,5 @@ enterprise/extensions/visual_console_manager.php pandora_console/extensions/net_tools.php include/lib/WSManager.php include/lib/WebSocketServer.php -include/lib/WebSocketUser.php \ No newline at end of file +include/lib/WebSocketUser.php +operation/network/network_explorer.php diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index 0a6c53d766..135c915b76 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -770,12 +770,6 @@ switch ($action) { // Max values. break; - case 'nt_top_n': - $period = $item['period']; - $description = $item['description']; - $top_n_value = $item['top_n_value']; - break; - case 'permissions_report': $description = $item['description']; $es = json_decode($item['external_source'], true); @@ -818,7 +812,6 @@ switch ($action) { case 'simple_baseline_graph': case 'event_report_log': case 'increment': - case 'nt_top_n': $label = (isset($style['label'])) ? $style['label'] : ''; break; @@ -5908,12 +5901,6 @@ function chooseType() { $("#row_historical_db_check").hide(); break; - case 'nt_top_n': - $("#row_description").show(); - $("#row_period").show(); - $("#row_quantity").show(); - break; - case 'permissions_report': $("#row_description").show(); $("#row_users").show(); diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index 7b38abef62..d4967be810 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -1718,14 +1718,6 @@ switch ($action) { $good_format = true; break; - case 'nt_top_n': - $values['period'] = get_parameter('period'); - $values['top_n_value'] = get_parameter( - 'quantity' - ); - $good_format = true; - break; - default: $values['period'] = get_parameter('period'); $values['top_n'] = get_parameter( @@ -2093,7 +2085,6 @@ switch ($action) { case 'projection_graph': case 'prediction_date': case 'simple_baseline_graph': - case 'nt_top_n': if ($label != '') { $style['label'] = $label; } else { @@ -2379,14 +2370,6 @@ switch ($action) { $good_format = true; break; - case 'nt_top_n': - $values['top_n_value'] = get_parameter( - 'quantity' - ); - $values['period'] = get_parameter('period'); - $good_format = true; - break; - default: $values['period'] = get_parameter('period'); $values['top_n'] = get_parameter( @@ -2727,7 +2710,6 @@ switch ($action) { case 'projection_graph': case 'prediction_date': case 'simple_baseline_graph': - case 'nt_top_n': if ($label != '') { $style['label'] = $label; } else { diff --git a/pandora_console/godmode/setup/setup_general.php b/pandora_console/godmode/setup/setup_general.php index 6401cd2949..fbd33b8a90 100644 --- a/pandora_console/godmode/setup/setup_general.php +++ b/pandora_console/godmode/setup/setup_general.php @@ -242,14 +242,6 @@ $table->data[$i++][1] = html_print_checkbox_switch_extended( true ); -$table->data[$i][0] = __('Enable Network Traffic Analyzer'); -$table->data[$i++][1] = html_print_switch( - [ - 'name' => 'activate_nta', - 'value' => $config['activate_nta'], - ] -); - $zone_name = [ 'Africa' => __('Africa'), diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index caf28ec849..f38b4c5ec9 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 = 'PC210324'; +$build_version = 'PC210325'; $pandora_version = 'v7.0NG.752'; // Do not overwrite default timezone set if defined. diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 4f965c25b2..322e630485 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -232,10 +232,6 @@ function config_update_config() $error_update[] = __('Enable Netflow'); } - if (!config_update_value('activate_nta', (bool) get_parameter_switch('activate_nta'))) { - $error_update[] = __('Enable Network Traffic Analyzer'); - } - $timezone = (string) get_parameter('timezone'); if ($timezone != '') { if (!config_update_value('timezone', $timezone)) { @@ -2459,10 +2455,6 @@ function config_process_config() config_update_value('activate_netflow', 0); } - if (!isset($config['activate_nta'])) { - config_update_value('activate_nta', 0); - } - if (!isset($config['netflow_path'])) { if ($is_windows) { $default = 'C:\PandoraFMS\Pandora_Server\data_in\netflow'; diff --git a/pandora_console/include/functions_network.php b/pandora_console/include/functions_network.php index 9d81bf8bdc..9df4f8dbc4 100644 --- a/pandora_console/include/functions_network.php +++ b/pandora_console/include/functions_network.php @@ -21,70 +21,6 @@ // Write here requires and definitions. -/** - * Get the tnetwok_matrix summatory data. - * - * @param integer $top Number of hosts to show. - * @param boolean $talker Talker (true) or listetener (false). - * @param integer $start Utimestamp of start time. - * @param integer $end Utimestamp of end time. - * @param string $ip_filter Ip to filter. - * @param boolean $order_by_bytes True by top by bytes. False by packets. - * @param array $host_filter Host filter array. - * - * @return array With requested data. - */ -function network_matrix_get_top( - $top, - $talker, - $start, - $end, - $ip_filter='', - $order_by_bytes=true, - $host_filter=[] -) { - $field_to_group = ($talker === true) ? 'source' : 'destination'; - $field_to_order = ($order_by_bytes === true) ? 'sum_bytes' : 'sum_pkts'; - $filter_sql = ''; - if (!empty($ip_filter)) { - $filter_field = ($talker === true) ? 'destination' : 'source'; - $filter_sql = sprintf('AND %s="%s"', $filter_field, $ip_filter); - } - - $host_filter_sql = ''; - if (!empty($host_filter)) { - $host_filter_sql = sprintf( - ' AND %s IN ("%s")', - $field_to_group, - implode('","', $host_filter) - ); - } - - $sql = sprintf( - 'SELECT SUM(bytes) sum_bytes, SUM(pkts) sum_pkts, %s host - FROM tnetwork_matrix - WHERE utimestamp > %d AND utimestamp < %d - %s - %s - GROUP BY %s - ORDER BY %s DESC - LIMIT %d', - $field_to_group, - $start, - $end, - $filter_sql, - $host_filter_sql, - $field_to_group, - $field_to_order, - $top - ); - - $data = db_get_all_rows_sql($sql); - - return ($data !== false) ? $data : []; -} - - /** * Get the possible actions on networking. * @@ -169,84 +105,6 @@ function network_format_bytes($value) } -/** - * Build netflow data structure to network map. - * - * @param integer $start Time in timestamp format. - * @param integer $end Time in timestamp format. - * @param integer $top Max data to show. - * @param boolean $talker True to get top tolkers. False for listeners. - * - * @return array With map structure. - */ -function network_build_map_data($start, $end, $top, $talker) -{ - $data = network_matrix_get_top($top, $talker, $start, $end); - - $hosts = array_map( - function ($elem) { - return $elem['host']; - }, - $data - ); - $inverse_hosts = array_flip($hosts); - - $nodes = array_map( - function ($elem) { - return network_init_node_map($elem); - }, - $hosts - ); - - $relations = []; - $orphan_relations = []; - foreach ($hosts as $host) { - $host_top = network_matrix_get_top( - $top, - !$talker, - $start, - $end, - $host, - true, - $hosts - ); - foreach ($host_top as $sd) { - $src_index = $inverse_hosts[$host]; - $dst_index = $inverse_hosts[$sd['host']]; - if (isset($src_index) === false || isset($dst_index) === false) { - continue; - } - - network_init_relation_map( - $relations, - $src_index, - $dst_index, - network_format_bytes($sd['sum_bytes']) - ); - } - - // Put the orphans on Other node. - if (empty($host_top)) { - $other_id = (end($inverse_hosts) + 1); - // TODOS: Add the data. - network_init_relation_map( - $orphan_relations, - $other_id, - $inverse_hosts[$host] - ); - } - } - - // Put the Others node and their relations. - if (empty($orphan_relations) === false) { - $nodes[] = network_init_node_map(__('Others')); - $relations = array_merge($relations, $orphan_relations); - } - - return network_general_map_configuration($nodes, $relations); -} - - /** * Return the array to pass to constructor to NetworkMap. * diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 8e0aafe5fb..aab903a361 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -851,14 +851,6 @@ function reporting_make_reporting_data( ); break; - case 'nt_top_n': - $report['contents'][] = reporting_nt_top_n_report( - $report, - $content, - $pdf - ); - break; - default: // Default. break; @@ -13580,43 +13572,6 @@ function reporting_header_table_for_pdf($title='', $description='') } -/** - * Build the required data to build network traffic top N report - * - * @param int Period (time window). - * @param array Information about the item of report. - * @param bool Pdf or not - * - * @return array With report presentation info and report data. - */ -function reporting_nt_top_n_report($period, $content, $pdf) -{ - $return = []; - $return['type'] = 'nt_top_n'; - $return['title'] = $content['name']; - $return['landscape'] = $content['landscape']; - $return['pagebreak'] = $content['pagebreak']; - $return['description'] = $content['description']; - - // Get the data sent and received - $return['data'] = []; - $start_time = ($period['datetime'] - (int) $content['period']); - $return['data']['send'] = network_matrix_get_top( - $content['top_n_value'], - true, - $start_time, - $period['datetime'] - ); - $return['data']['recv'] = network_matrix_get_top( - $content['top_n_value'], - false, - $start_time, - $period['datetime'] - ); - return $return; -} - - /** * Will display an hourly analysis of the selected period. * diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 0733a8a06d..9877842e0a 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -403,10 +403,6 @@ function reporting_html_print_report($report, $mini=false, $report_info=1) reporting_enterprise_html_SLA_monthly($table, $item, $mini); break; - case 'nt_top_n': - reporting_html_nt_top_n($table, $item, $mini); - break; - case 'SLA_weekly': reporting_enterprise_html_SLA_weekly($table, $item, $mini); break; @@ -5591,65 +5587,6 @@ function reporting_get_event_histogram_meta($width) } -/** - * Print network traffic data into top n tables - * (one for received data and another for sent) - * - * @param stdClass Table class to paint the report - * @param array Associative array with info about - * @param bool Unused - */ -function reporting_html_nt_top_n($table, $item, $mini) -{ - // Prepare the table - $table_top = new stdClass(); - $table_top->cellpadding = 0; - $table_top->cellspacing = 0; - $table_top->width = '100%'; - $table_top->class = 'databox data'; - $table_top->cellpadding = 0; - $table_top->cellspacing = 0; - $table_top->width = '100%'; - $table_top->class = 'databox data'; - $table_top->head['host'] = __('Agent'); - $table_top->head['bytes'] = __('Kilobytes'); - $table_top->head['pkts'] = __('Packages'); - - // Build the table for sent packages - if (empty($item['data']['send'])) { - $table->data['send_title'] = '

'.__('No network traffic sent data').'

'; - } else { - foreach ($item['data']['send'] as $s_item) { - $table_top->data[] = [ - 'host' => $s_item['host'], - 'bytes' => remove_right_zeros(number_format(($s_item['sum_bytes'] / 1024), $config['graph_precision'])), - 'pkts' => remove_right_zeros(number_format($s_item['sum_pkts'], $config['graph_precision'])), - ]; - } - - $table->data['send_title'] = '

'.__('Network traffic sent').'

'; - $table->data['send'] = html_print_table($table_top, true); - } - - // Reset the table and build the table for received packages - $table_top->data = []; - if (empty($item['data']['send'])) { - $table->data['recv_title'] = '

'.__('No network traffic received data').'

'; - } else { - foreach ($item['data']['recv'] as $s_item) { - $table_top->data[] = [ - 'host' => $s_item['host'], - 'bytes' => remove_right_zeros(number_format(($s_item['sum_bytes'] / 1024), $config['graph_precision'])), - 'pkts' => remove_right_zeros(number_format($s_item['sum_pkts'], $config['graph_precision'])), - ]; - } - - $table->data['recv_title'] = '

'.__('Network traffic received').'

'; - $table->data['recv'] = html_print_table($table_top, true); - } -} - - function reporting_html_planned_downtimes_table($planned_downtimes) { global $config; diff --git a/pandora_console/include/functions_reports.php b/pandora_console/include/functions_reports.php index 192940c8ed..fbf647d392 100755 --- a/pandora_console/include/functions_reports.php +++ b/pandora_console/include/functions_reports.php @@ -891,13 +891,6 @@ function reports_get_report_types($template=false, $not_editor=false) ]; } - if (!is_metaconsole()) { - $types['nt_top_n'] = [ - 'optgroup' => __('Network traffic'), - 'name' => __('Network Traffic Top N'), - ]; - } - if ($template === false) { $types['permissions_report'] = [ 'optgroup' => __('Permissions report'), diff --git a/pandora_console/install.php b/pandora_console/install.php index 1df71d8a96..2f1bbbc9fc 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -129,7 +129,7 @@
__('Network'), 'id' => 'Network', @@ -79,45 +79,29 @@ if (check_acl($config['id_user'], 0, 'AR')) { // Initialize the submenu. $netflow_sub = []; - if ($config['activate_netflow']) { - $netflow_sub = array_merge( - $netflow_sub, - [ - 'operation/netflow/netflow_explorer' => [ - 'text' => __('Netflow explorer'), - 'id' => 'Netflow explorer', - ], - 'operation/netflow/nf_live_view' => [ - 'text' => __('Netflow Live View'), - 'id' => 'Netflow Live View', - ], - ] - ); - } + $netflow_sub = array_merge( + $netflow_sub, + [ + 'operation/netflow/netflow_explorer' => [ + 'text' => __('Netflow explorer'), + 'id' => 'Netflow explorer', + ], + 'operation/netflow/nf_live_view' => [ + 'text' => __('Netflow Live View'), + 'id' => 'Netflow Live View', + ], + ] + ); - if ($config['activate_nta']) { - $netflow_sub = array_merge( - $netflow_sub, - [ - 'operation/network/network_explorer' => [ - 'text' => __('Network explorer'), - 'id' => 'Network explorer', - ], - ] - ); - } - - if ($config['activate_nta'] || $config['activate_netflow']) { - $netflow_sub = array_merge( - $netflow_sub, - [ - 'operation/network/network_usage_map' => [ - 'text' => __('Network usage map'), - 'id' => 'Network usage map', - ], - ] - ); - } + $netflow_sub = array_merge( + $netflow_sub, + [ + 'operation/network/network_usage_map' => [ + 'text' => __('Network usage map'), + 'id' => 'Network usage map', + ], + ] + ); $sub['network_traffic']['sub2'] = $netflow_sub; } diff --git a/pandora_console/operation/netflow/netflow_explorer.php b/pandora_console/operation/netflow/netflow_explorer.php index dea519adbd..baff5da32f 100644 --- a/pandora_console/operation/netflow/netflow_explorer.php +++ b/pandora_console/operation/netflow/netflow_explorer.php @@ -33,7 +33,6 @@ if (! check_acl($config['id_user'], 0, 'AR')) { } $action = get_parameter('action', 'listeners'); -$is_network = false; ui_print_page_header(__('Netflow explorer')); diff --git a/pandora_console/operation/network/network_explorer.php b/pandora_console/operation/network/network_explorer.php deleted file mode 100644 index 3e929fd183..0000000000 --- a/pandora_console/operation/network/network_explorer.php +++ /dev/null @@ -1,40 +0,0 @@ -class = 'databox filters'; $table->styleTable = 'width: 100%'; $table->data['0']['0'] = __('Data to show').'  '; $table->data['0']['0'] .= html_print_select( - network_get_report_actions($is_network), + network_get_report_actions(false), 'action', $action, '', @@ -155,25 +155,14 @@ echo ''; // Print the data. $data = []; -if ($is_network) { - $data = network_matrix_get_top( - $top, - $action === 'talkers', - $utimestamp_lower, - $utimestamp_greater, - $main_value, - $order_by !== 'pkts' - ); -} else { - $data = netflow_get_top_summary( - $top, - $action, - $utimestamp_lower, - $utimestamp_greater, - $main_value, - $order_by - ); -} +$data = netflow_get_top_summary( + $top, + $action, + $utimestamp_lower, + $utimestamp_greater, + $main_value, + $order_by +); // Get the params to return the builder. $hidden_main_link = [ @@ -193,17 +182,16 @@ $table->styleTable = 'width: 60%'; // Print the header. $table->head = []; $table->head['main'] = __('IP'); -if (!$is_network) { - $table->head['flows'] = network_print_explorer_header( - __('Flows'), - 'flows', - $order_by, - array_merge( - $hidden_main_link, - ['main_value' => $main_value] - ) - ); -} +$table->head['flows'] = network_print_explorer_header( + __('Flows'), + 'flows', + $order_by, + array_merge( + $hidden_main_link, + ['main_value' => $main_value] + ) +); + $table->head['pkts'] = network_print_explorer_header( __('Packets'), @@ -242,9 +230,7 @@ if (get_parameter('export_csv')) { // Print the header. echo reset($table->head).$div; - if (!$is_network) { - echo __('Flows').$div; - } + echo __('Flows').$div; echo __('Packets').$div; echo __('Bytes').$div; @@ -295,20 +281,14 @@ foreach ($data as $item) { } $row['main'] .= '
'; - if (!$is_network) { - $row['flows'] = format_for_graph($item['sum_flows'], 2); - $row['flows'] .= ' ('.$item['pct_flows'].'%)'; - } + $row['flows'] = format_for_graph($item['sum_flows'], 2); + $row['flows'] .= ' ('.$item['pct_flows'].'%)'; $row['pkts'] = format_for_graph($item['sum_pkts'], 2); - if (!$is_network) { - $row['pkts'] .= ' ('.$item['pct_pkts'].'%)'; - } + $row['pkts'] .= ' ('.$item['pct_pkts'].'%)'; $row['bytes'] = network_format_bytes($item['sum_bytes']); - if (!$is_network) { - $row['bytes'] .= ' ('.$item['pct_bytes'].'%)'; - } + $row['bytes'] .= ' ('.$item['pct_bytes'].'%)'; $table->data[] = $row; diff --git a/pandora_console/operation/network/network_usage_map.php b/pandora_console/operation/network/network_usage_map.php index 391905197d..5a91e0563b 100644 --- a/pandora_console/operation/network/network_usage_map.php +++ b/pandora_console/operation/network/network_usage_map.php @@ -121,7 +121,6 @@ $table->data['0']['2'] .= html_print_select( true ); - $table->data['1']['0'] = __('Data to show').'  '; $table->data['1']['0'] .= html_print_select( network_get_report_actions(), @@ -145,23 +144,9 @@ if ((bool) $config['activate_netflow'] === true) { ); } -$nta_button = ''; -if ((bool) $config['activate_nta'] === true) { - $nta_button = html_print_submit_button( - __('Show NTA map'), - 'update_nta', - false, - 'class="sub upd"', - true - ); -} - $table->data['1']['2'] .= implode( '  ', - [ - $netflow_button, - $nta_button, - ] + [$netflow_button] ); echo '
'; @@ -181,15 +166,6 @@ if ((bool) get_parameter('update_netflow') === true) { ); $has_data = !empty($map_data['nodes']); $first_load = false; -} else if ((bool) get_parameter('update_nta') === true) { - $map_data = network_build_map_data( - $utimestamp_lower, - $utimestamp_greater, - $top, - $action === 'talkers' - ); - $has_data = !empty($map_data['nodes']); - $first_load = false; } if ($has_data === true) { diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec index ffcea0b054..83e3c5805a 100644 --- a/pandora_console/pandora_console.redhat.spec +++ b/pandora_console/pandora_console.redhat.spec @@ -3,7 +3,7 @@ # %define name pandorafms_console %define version 7.0NG.752 -%define release 210324 +%define release 210325 # User and Group under which Apache is running %define httpd_name httpd diff --git a/pandora_console/pandora_console.rhel7.spec b/pandora_console/pandora_console.rhel7.spec index 10ddccb8aa..89f7ad6578 100644 --- a/pandora_console/pandora_console.rhel7.spec +++ b/pandora_console/pandora_console.rhel7.spec @@ -3,7 +3,7 @@ # %define name pandorafms_console %define version 7.0NG.752 -%define release 210324 +%define release 210325 # User and Group under which Apache is running %define httpd_name httpd diff --git a/pandora_console/pandora_console.spec b/pandora_console/pandora_console.spec index 8794d226c2..bb996bdcf1 100644 --- a/pandora_console/pandora_console.spec +++ b/pandora_console/pandora_console.spec @@ -3,7 +3,7 @@ # %define name pandorafms_console %define version 7.0NG.752 -%define release 210324 +%define release 210325 %define httpd_name httpd # User and Group under which Apache is running %define httpd_name apache2 diff --git a/pandora_server/DEBIAN/control b/pandora_server/DEBIAN/control index e58c4fc758..c9b035f2bc 100644 --- a/pandora_server/DEBIAN/control +++ b/pandora_server/DEBIAN/control @@ -1,5 +1,5 @@ package: pandorafms-server -Version: 7.0NG.752-210324 +Version: 7.0NG.752-210325 Architecture: all Priority: optional Section: admin diff --git a/pandora_server/DEBIAN/make_deb_package.sh b/pandora_server/DEBIAN/make_deb_package.sh index f28c014968..63aa297c27 100644 --- a/pandora_server/DEBIAN/make_deb_package.sh +++ b/pandora_server/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.752-210324" +pandora_version="7.0NG.752-210325" package_cpan=0 package_pandora=1 diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index c25df4fdcb..f504a2395c 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -45,7 +45,7 @@ our @EXPORT = qw( # version: Defines actual version of Pandora Server for this module only my $pandora_version = "7.0NG.752"; -my $pandora_build = "210324"; +my $pandora_build = "210325"; our $VERSION = $pandora_version." ".$pandora_build; # Setup hash diff --git a/pandora_server/lib/PandoraFMS/PluginTools.pm b/pandora_server/lib/PandoraFMS/PluginTools.pm index 5ebe685273..c1c9604a07 100644 --- a/pandora_server/lib/PandoraFMS/PluginTools.pm +++ b/pandora_server/lib/PandoraFMS/PluginTools.pm @@ -34,7 +34,7 @@ our @ISA = qw(Exporter); # version: Defines actual version of Pandora Server for this module only my $pandora_version = "7.0NG.752"; -my $pandora_build = "210324"; +my $pandora_build = "210325"; our $VERSION = $pandora_version." ".$pandora_build; our %EXPORT_TAGS = ( 'all' => [ qw() ] ); diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec index 7095c17b47..19642d43f3 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.752 -%define release 210324 +%define release 210325 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 039b8df4b3..c4718c6d06 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.752 -%define release 210324 +%define release 210325 Summary: Pandora FMS Server Name: %{name} diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer index 3aa4da22a2..4cd23154de 100755 --- a/pandora_server/pandora_server_installer +++ b/pandora_server/pandora_server_installer @@ -9,7 +9,7 @@ # ********************************************************************** PI_VERSION="7.0NG.752" -PI_BUILD="210324" +PI_BUILD="210325" MODE=$1 if [ $# -gt 1 ]; then diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 17709cb7e8..185fe87472 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.752 PS210324"; +my $version = "7.0NG.752 PS210325"; # Pandora server configuration my %conf; diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl index 4500d3b7ef..23fc2fe995 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.752 PS210324"; +my $version = "7.0NG.752 PS210325"; # save program name for logging my $progname = basename($0);