Merge remote-tracking branch 'origin/develop' into ent-4755-base-de-datos-historico-revision

This commit is contained in:
fbsanchez 2021-03-25 10:20:02 +01:00
commit fdc4133eaa
39 changed files with 75 additions and 479 deletions

View File

@ -1,5 +1,5 @@
package: pandorafms-agent-unix package: pandorafms-agent-unix
Version: 7.0NG.752-210324 Version: 7.0NG.752-210325
Architecture: all Architecture: all
Priority: optional Priority: optional
Section: admin Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # 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." echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null

View File

@ -1016,7 +1016,7 @@ my $Sem = undef;
my $ThreadSem = undef; my $ThreadSem = undef;
use constant AGENT_VERSION => '7.0NG.752'; 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 # Agent log default file size maximum and instances
use constant DEFAULT_MAX_LOG_SIZE => 600000; use constant DEFAULT_MAX_LOG_SIZE => 600000;

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_agent_unix %define name pandorafms_agent_unix
%define version 7.0NG.752 %define version 7.0NG.752
%define release 210324 %define release 210325
Summary: Pandora FMS Linux agent, PERL version Summary: Pandora FMS Linux agent, PERL version
Name: %{name} Name: %{name}

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_agent_unix %define name pandorafms_agent_unix
%define version 7.0NG.752 %define version 7.0NG.752
%define release 210324 %define release 210325
Summary: Pandora FMS Linux agent, PERL version Summary: Pandora FMS Linux agent, PERL version
Name: %{name} Name: %{name}

View File

@ -10,7 +10,7 @@
# ********************************************************************** # **********************************************************************
PI_VERSION="7.0NG.752" PI_VERSION="7.0NG.752"
PI_BUILD="210324" PI_BUILD="210325"
OS_NAME=`uname -s` OS_NAME=`uname -s`
FORCE=0 FORCE=0

View File

@ -186,7 +186,7 @@ UpgradeApplicationID
{} {}
Version Version
{210324} {210325}
ViewReadme ViewReadme
{Yes} {Yes}

View File

@ -30,7 +30,7 @@ using namespace Pandora;
using namespace Pandora_Strutils; using namespace Pandora_Strutils;
#define PATH_SIZE _MAX_PATH+1 #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_path;
string pandora_dir; string pandora_dir;

View File

@ -11,7 +11,7 @@ BEGIN
VALUE "LegalCopyright", "Artica ST" VALUE "LegalCopyright", "Artica ST"
VALUE "OriginalFilename", "PandoraAgent.exe" VALUE "OriginalFilename", "PandoraAgent.exe"
VALUE "ProductName", "Pandora FMS Windows Agent" 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" VALUE "FileVersion", "1.0.0.0"
END END
END END

View File

@ -1,5 +1,5 @@
package: pandorafms-console package: pandorafms-console
Version: 7.0NG.752-210324 Version: 7.0NG.752-210325
Architecture: all Architecture: all
Priority: optional Priority: optional
Section: admin Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
pandora_version="7.0NG.752-210324" pandora_version="7.0NG.752-210325"
package_pear=0 package_pear=0
package_pandora=1 package_pandora=1

View File

@ -76,4 +76,5 @@ enterprise/extensions/visual_console_manager.php
pandora_console/extensions/net_tools.php pandora_console/extensions/net_tools.php
include/lib/WSManager.php include/lib/WSManager.php
include/lib/WebSocketServer.php include/lib/WebSocketServer.php
include/lib/WebSocketUser.php include/lib/WebSocketUser.php
operation/network/network_explorer.php

View File

@ -770,12 +770,6 @@ switch ($action) {
// Max values. // Max values.
break; break;
case 'nt_top_n':
$period = $item['period'];
$description = $item['description'];
$top_n_value = $item['top_n_value'];
break;
case 'permissions_report': case 'permissions_report':
$description = $item['description']; $description = $item['description'];
$es = json_decode($item['external_source'], true); $es = json_decode($item['external_source'], true);
@ -818,7 +812,6 @@ switch ($action) {
case 'simple_baseline_graph': case 'simple_baseline_graph':
case 'event_report_log': case 'event_report_log':
case 'increment': case 'increment':
case 'nt_top_n':
$label = (isset($style['label'])) ? $style['label'] : ''; $label = (isset($style['label'])) ? $style['label'] : '';
break; break;
@ -5908,12 +5901,6 @@ function chooseType() {
$("#row_historical_db_check").hide(); $("#row_historical_db_check").hide();
break; break;
case 'nt_top_n':
$("#row_description").show();
$("#row_period").show();
$("#row_quantity").show();
break;
case 'permissions_report': case 'permissions_report':
$("#row_description").show(); $("#row_description").show();
$("#row_users").show(); $("#row_users").show();

View File

@ -1718,14 +1718,6 @@ switch ($action) {
$good_format = true; $good_format = true;
break; break;
case 'nt_top_n':
$values['period'] = get_parameter('period');
$values['top_n_value'] = get_parameter(
'quantity'
);
$good_format = true;
break;
default: default:
$values['period'] = get_parameter('period'); $values['period'] = get_parameter('period');
$values['top_n'] = get_parameter( $values['top_n'] = get_parameter(
@ -2093,7 +2085,6 @@ switch ($action) {
case 'projection_graph': case 'projection_graph':
case 'prediction_date': case 'prediction_date':
case 'simple_baseline_graph': case 'simple_baseline_graph':
case 'nt_top_n':
if ($label != '') { if ($label != '') {
$style['label'] = $label; $style['label'] = $label;
} else { } else {
@ -2379,14 +2370,6 @@ switch ($action) {
$good_format = true; $good_format = true;
break; break;
case 'nt_top_n':
$values['top_n_value'] = get_parameter(
'quantity'
);
$values['period'] = get_parameter('period');
$good_format = true;
break;
default: default:
$values['period'] = get_parameter('period'); $values['period'] = get_parameter('period');
$values['top_n'] = get_parameter( $values['top_n'] = get_parameter(
@ -2727,7 +2710,6 @@ switch ($action) {
case 'projection_graph': case 'projection_graph':
case 'prediction_date': case 'prediction_date':
case 'simple_baseline_graph': case 'simple_baseline_graph':
case 'nt_top_n':
if ($label != '') { if ($label != '') {
$style['label'] = $label; $style['label'] = $label;
} else { } else {

View File

@ -242,14 +242,6 @@ $table->data[$i++][1] = html_print_checkbox_switch_extended(
true 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 = [ $zone_name = [
'Africa' => __('Africa'), 'Africa' => __('Africa'),

View File

@ -20,7 +20,7 @@
/** /**
* Pandora build version and version * Pandora build version and version
*/ */
$build_version = 'PC210324'; $build_version = 'PC210325';
$pandora_version = 'v7.0NG.752'; $pandora_version = 'v7.0NG.752';
// Do not overwrite default timezone set if defined. // Do not overwrite default timezone set if defined.

View File

@ -232,10 +232,6 @@ function config_update_config()
$error_update[] = __('Enable Netflow'); $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'); $timezone = (string) get_parameter('timezone');
if ($timezone != '') { if ($timezone != '') {
if (!config_update_value('timezone', $timezone)) { if (!config_update_value('timezone', $timezone)) {
@ -2459,10 +2455,6 @@ function config_process_config()
config_update_value('activate_netflow', 0); config_update_value('activate_netflow', 0);
} }
if (!isset($config['activate_nta'])) {
config_update_value('activate_nta', 0);
}
if (!isset($config['netflow_path'])) { if (!isset($config['netflow_path'])) {
if ($is_windows) { if ($is_windows) {
$default = 'C:\PandoraFMS\Pandora_Server\data_in\netflow'; $default = 'C:\PandoraFMS\Pandora_Server\data_in\netflow';

View File

@ -21,70 +21,6 @@
// Write here requires and definitions. // 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. * 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. * Return the array to pass to constructor to NetworkMap.
* *

View File

@ -851,14 +851,6 @@ function reporting_make_reporting_data(
); );
break; break;
case 'nt_top_n':
$report['contents'][] = reporting_nt_top_n_report(
$report,
$content,
$pdf
);
break;
default: default:
// Default. // Default.
break; 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. * Will display an hourly analysis of the selected period.
* *

View File

@ -403,10 +403,6 @@ function reporting_html_print_report($report, $mini=false, $report_info=1)
reporting_enterprise_html_SLA_monthly($table, $item, $mini); reporting_enterprise_html_SLA_monthly($table, $item, $mini);
break; break;
case 'nt_top_n':
reporting_html_nt_top_n($table, $item, $mini);
break;
case 'SLA_weekly': case 'SLA_weekly':
reporting_enterprise_html_SLA_weekly($table, $item, $mini); reporting_enterprise_html_SLA_weekly($table, $item, $mini);
break; 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'] = '<h3>'.__('No network traffic sent data').'</h3>';
} 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'] = '<h3>'.__('Network traffic sent').'</h3>';
$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'] = '<h3>'.__('No network traffic received data').'</h3>';
} 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'] = '<h3>'.__('Network traffic received').'</h3>';
$table->data['recv'] = html_print_table($table_top, true);
}
}
function reporting_html_planned_downtimes_table($planned_downtimes) function reporting_html_planned_downtimes_table($planned_downtimes)
{ {
global $config; global $config;

View File

@ -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) { if ($template === false) {
$types['permissions_report'] = [ $types['permissions_report'] = [
'optgroup' => __('Permissions report'), 'optgroup' => __('Permissions report'),

View File

@ -129,7 +129,7 @@
<div style='height: 10px'> <div style='height: 10px'>
<?php <?php
$version = '7.0NG.752'; $version = '7.0NG.752';
$build = '210324'; $build = '210325';
$banner = "v$version Build $build"; $banner = "v$version Build $build";
error_reporting(0); error_reporting(0);

View File

@ -67,7 +67,7 @@ if (check_acl($config['id_user'], 0, 'AR')) {
enterprise_hook('inventory_menu'); enterprise_hook('inventory_menu');
if ($config['activate_netflow'] || $config['activate_nta']) { if ($config['activate_netflow']) {
$sub['network_traffic'] = [ $sub['network_traffic'] = [
'text' => __('Network'), 'text' => __('Network'),
'id' => 'Network', 'id' => 'Network',
@ -79,45 +79,29 @@ if (check_acl($config['id_user'], 0, 'AR')) {
// Initialize the submenu. // Initialize the submenu.
$netflow_sub = []; $netflow_sub = [];
if ($config['activate_netflow']) { $netflow_sub = array_merge(
$netflow_sub = array_merge( $netflow_sub,
$netflow_sub, [
[ 'operation/netflow/netflow_explorer' => [
'operation/netflow/netflow_explorer' => [ 'text' => __('Netflow explorer'),
'text' => __('Netflow explorer'), 'id' => 'Netflow explorer',
'id' => 'Netflow explorer', ],
], 'operation/netflow/nf_live_view' => [
'operation/netflow/nf_live_view' => [ 'text' => __('Netflow Live View'),
'text' => __('Netflow Live View'), 'id' => 'Netflow Live View',
'id' => 'Netflow Live View', ],
], ]
] );
);
}
if ($config['activate_nta']) { $netflow_sub = array_merge(
$netflow_sub = array_merge( $netflow_sub,
$netflow_sub, [
[ 'operation/network/network_usage_map' => [
'operation/network/network_explorer' => [ 'text' => __('Network usage map'),
'text' => __('Network explorer'), 'id' => 'Network usage map',
'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',
],
]
);
}
$sub['network_traffic']['sub2'] = $netflow_sub; $sub['network_traffic']['sub2'] = $netflow_sub;
} }

View File

@ -33,7 +33,6 @@ if (! check_acl($config['id_user'], 0, 'AR')) {
} }
$action = get_parameter('action', 'listeners'); $action = get_parameter('action', 'listeners');
$is_network = false;
ui_print_page_header(__('Netflow explorer')); ui_print_page_header(__('Netflow explorer'));

View File

@ -1,40 +0,0 @@
<?php
/**
* Network explorer
*
* @package Operations.
* @subpackage Network explorer view.
*
* Pandora FMS - http://pandorafms.com
* ==================================================
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
* Please see http://pandorafms.org for full contribution list
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
global $config;
check_login();
// ACL Check.
if (! check_acl($config['id_user'], 0, 'AR')) {
db_pandora_audit(
'ACL Violation',
'Trying to access Network explorer'
);
include 'general/noaccess.php';
exit;
}
$action = get_parameter('action', 'listeners');
$is_network = true;
ui_print_page_header(__('Network explorer'));
require $config['homedir'].'/operation/network/network_report.php';

View File

@ -66,7 +66,7 @@ $table->class = 'databox filters';
$table->styleTable = 'width: 100%'; $table->styleTable = 'width: 100%';
$table->data['0']['0'] = __('Data to show').'&nbsp;&nbsp;'; $table->data['0']['0'] = __('Data to show').'&nbsp;&nbsp;';
$table->data['0']['0'] .= html_print_select( $table->data['0']['0'] .= html_print_select(
network_get_report_actions($is_network), network_get_report_actions(false),
'action', 'action',
$action, $action,
'', '',
@ -155,25 +155,14 @@ echo '</form>';
// Print the data. // Print the data.
$data = []; $data = [];
if ($is_network) { $data = netflow_get_top_summary(
$data = network_matrix_get_top( $top,
$top, $action,
$action === 'talkers', $utimestamp_lower,
$utimestamp_lower, $utimestamp_greater,
$utimestamp_greater, $main_value,
$main_value, $order_by
$order_by !== 'pkts' );
);
} else {
$data = netflow_get_top_summary(
$top,
$action,
$utimestamp_lower,
$utimestamp_greater,
$main_value,
$order_by
);
}
// Get the params to return the builder. // Get the params to return the builder.
$hidden_main_link = [ $hidden_main_link = [
@ -193,17 +182,16 @@ $table->styleTable = 'width: 60%';
// Print the header. // Print the header.
$table->head = []; $table->head = [];
$table->head['main'] = __('IP'); $table->head['main'] = __('IP');
if (!$is_network) { $table->head['flows'] = network_print_explorer_header(
$table->head['flows'] = network_print_explorer_header( __('Flows'),
__('Flows'), 'flows',
'flows', $order_by,
$order_by, array_merge(
array_merge( $hidden_main_link,
$hidden_main_link, ['main_value' => $main_value]
['main_value' => $main_value] )
) );
);
}
$table->head['pkts'] = network_print_explorer_header( $table->head['pkts'] = network_print_explorer_header(
__('Packets'), __('Packets'),
@ -242,9 +230,7 @@ if (get_parameter('export_csv')) {
// Print the header. // Print the header.
echo reset($table->head).$div; echo reset($table->head).$div;
if (!$is_network) { echo __('Flows').$div;
echo __('Flows').$div;
}
echo __('Packets').$div; echo __('Packets').$div;
echo __('Bytes').$div; echo __('Bytes').$div;
@ -295,20 +281,14 @@ foreach ($data as $item) {
} }
$row['main'] .= '</div>'; $row['main'] .= '</div>';
if (!$is_network) { $row['flows'] = format_for_graph($item['sum_flows'], 2);
$row['flows'] = format_for_graph($item['sum_flows'], 2); $row['flows'] .= ' ('.$item['pct_flows'].'%)';
$row['flows'] .= ' ('.$item['pct_flows'].'%)';
}
$row['pkts'] = format_for_graph($item['sum_pkts'], 2); $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']); $row['bytes'] = network_format_bytes($item['sum_bytes']);
if (!$is_network) { $row['bytes'] .= ' ('.$item['pct_bytes'].'%)';
$row['bytes'] .= ' ('.$item['pct_bytes'].'%)';
}
$table->data[] = $row; $table->data[] = $row;

View File

@ -121,7 +121,6 @@ $table->data['0']['2'] .= html_print_select(
true true
); );
$table->data['1']['0'] = __('Data to show').'&nbsp;&nbsp;'; $table->data['1']['0'] = __('Data to show').'&nbsp;&nbsp;';
$table->data['1']['0'] .= html_print_select( $table->data['1']['0'] .= html_print_select(
network_get_report_actions(), 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( $table->data['1']['2'] .= implode(
'&nbsp;&nbsp;', '&nbsp;&nbsp;',
[ [$netflow_button]
$netflow_button,
$nta_button,
]
); );
echo '<form method="post">'; echo '<form method="post">';
@ -181,15 +166,6 @@ if ((bool) get_parameter('update_netflow') === true) {
); );
$has_data = !empty($map_data['nodes']); $has_data = !empty($map_data['nodes']);
$first_load = false; $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) { if ($has_data === true) {

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_console %define name pandorafms_console
%define version 7.0NG.752 %define version 7.0NG.752
%define release 210324 %define release 210325
# User and Group under which Apache is running # User and Group under which Apache is running
%define httpd_name httpd %define httpd_name httpd

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_console %define name pandorafms_console
%define version 7.0NG.752 %define version 7.0NG.752
%define release 210324 %define release 210325
# User and Group under which Apache is running # User and Group under which Apache is running
%define httpd_name httpd %define httpd_name httpd

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_console %define name pandorafms_console
%define version 7.0NG.752 %define version 7.0NG.752
%define release 210324 %define release 210325
%define httpd_name httpd %define httpd_name httpd
# User and Group under which Apache is running # User and Group under which Apache is running
%define httpd_name apache2 %define httpd_name apache2

View File

@ -1,5 +1,5 @@
package: pandorafms-server package: pandorafms-server
Version: 7.0NG.752-210324 Version: 7.0NG.752-210325
Architecture: all Architecture: all
Priority: optional Priority: optional
Section: admin Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
pandora_version="7.0NG.752-210324" pandora_version="7.0NG.752-210325"
package_cpan=0 package_cpan=0
package_pandora=1 package_pandora=1

View File

@ -45,7 +45,7 @@ our @EXPORT = qw(
# version: Defines actual version of Pandora Server for this module only # version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.752"; my $pandora_version = "7.0NG.752";
my $pandora_build = "210324"; my $pandora_build = "210325";
our $VERSION = $pandora_version." ".$pandora_build; our $VERSION = $pandora_version." ".$pandora_build;
# Setup hash # Setup hash

View File

@ -34,7 +34,7 @@ our @ISA = qw(Exporter);
# version: Defines actual version of Pandora Server for this module only # version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.752"; my $pandora_version = "7.0NG.752";
my $pandora_build = "210324"; my $pandora_build = "210325";
our $VERSION = $pandora_version." ".$pandora_build; our $VERSION = $pandora_version." ".$pandora_build;
our %EXPORT_TAGS = ( 'all' => [ qw() ] ); our %EXPORT_TAGS = ( 'all' => [ qw() ] );

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_server %define name pandorafms_server
%define version 7.0NG.752 %define version 7.0NG.752
%define release 210324 %define release 210325
Summary: Pandora FMS Server Summary: Pandora FMS Server
Name: %{name} Name: %{name}

View File

@ -3,7 +3,7 @@
# #
%define name pandorafms_server %define name pandorafms_server
%define version 7.0NG.752 %define version 7.0NG.752
%define release 210324 %define release 210325
Summary: Pandora FMS Server Summary: Pandora FMS Server
Name: %{name} Name: %{name}

View File

@ -9,7 +9,7 @@
# ********************************************************************** # **********************************************************************
PI_VERSION="7.0NG.752" PI_VERSION="7.0NG.752"
PI_BUILD="210324" PI_BUILD="210325"
MODE=$1 MODE=$1
if [ $# -gt 1 ]; then if [ $# -gt 1 ]; then

View File

@ -35,7 +35,7 @@ use PandoraFMS::Config;
use PandoraFMS::DB; use PandoraFMS::DB;
# version: define current version # version: define current version
my $version = "7.0NG.752 PS210324"; my $version = "7.0NG.752 PS210325";
# Pandora server configuration # Pandora server configuration
my %conf; my %conf;

View File

@ -36,7 +36,7 @@ use Encode::Locale;
Encode::Locale::decode_argv; Encode::Locale::decode_argv;
# version: define current version # version: define current version
my $version = "7.0NG.752 PS210324"; my $version = "7.0NG.752 PS210325";
# save program name for logging # save program name for logging
my $progname = basename($0); my $progname = basename($0);