From 9797be367736cb284b43148e67741ff6b8a54440 Mon Sep 17 00:00:00 2001 From: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com> Date: Thu, 29 Oct 2020 02:08:29 +0100 Subject: [PATCH] Update DSL stats even if port is down (#12262) * Update DSL stats even if port is down * Correct swapped Upload/download on graphs * Display attainable line speed in the ADSL page * Correct SNR graph * Rewrite labels to avoid misunderstanding * last swap I hope --- includes/html/graphs/port/adsl_attainable.inc.php | 8 ++++---- includes/html/graphs/port/adsl_attenuation.inc.php | 8 ++++---- includes/html/graphs/port/adsl_power.inc.php | 8 ++++---- includes/html/graphs/port/adsl_snr.inc.php | 8 ++++---- includes/html/graphs/port/adsl_speed.inc.php | 4 ++-- includes/html/pages/device/port/adsl.inc.php | 7 ++++++- includes/html/print-interface.inc.php | 4 ++-- includes/polling/ports.inc.php | 3 ++- 8 files changed, 28 insertions(+), 22 deletions(-) diff --git a/includes/html/graphs/port/adsl_attainable.inc.php b/includes/html/graphs/port/adsl_attainable.inc.php index 6b3427df98..c0ba86625a 100644 --- a/includes/html/graphs/port/adsl_attainable.inc.php +++ b/includes/html/graphs/port/adsl_attainable.inc.php @@ -3,12 +3,12 @@ $rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id'], 'adsl'); $rrd_list[0]['filename'] = $rrd_filename; -$rrd_list[0]['descr'] = 'Downstream'; -$rrd_list[0]['ds'] = 'AtucCurrAttainableR'; +$rrd_list[0]['descr'] = 'Central to CPE'; +$rrd_list[0]['ds'] = 'AturCurrAttainableR'; $rrd_list[1]['filename'] = $rrd_filename; -$rrd_list[1]['descr'] = 'Upstream'; -$rrd_list[1]['ds'] = 'AturCurrAttainableR'; +$rrd_list[1]['descr'] = 'CPE to Central'; +$rrd_list[1]['ds'] = 'AtucCurrAttainableR'; $unit_text = 'Bits/sec'; diff --git a/includes/html/graphs/port/adsl_attenuation.inc.php b/includes/html/graphs/port/adsl_attenuation.inc.php index 2e50e1cfc0..7297b6b0a1 100644 --- a/includes/html/graphs/port/adsl_attenuation.inc.php +++ b/includes/html/graphs/port/adsl_attenuation.inc.php @@ -3,12 +3,12 @@ $rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id'], 'adsl'); $rrd_list[0]['filename'] = $rrd_filename; -$rrd_list[0]['descr'] = 'Downstream'; -$rrd_list[0]['ds'] = 'AtucCurrAtn'; +$rrd_list[0]['descr'] = 'Central to CPE'; +$rrd_list[0]['ds'] = 'AturCurrAtn'; $rrd_list[1]['filename'] = $rrd_filename; -$rrd_list[1]['descr'] = 'Upstream'; -$rrd_list[1]['ds'] = 'AturCurrAtn'; +$rrd_list[1]['descr'] = 'CPE to Central'; +$rrd_list[1]['ds'] = 'AtucCurrAtn'; $unit_text = 'dB'; diff --git a/includes/html/graphs/port/adsl_power.inc.php b/includes/html/graphs/port/adsl_power.inc.php index d1e7f20a4a..2d3c562e13 100644 --- a/includes/html/graphs/port/adsl_power.inc.php +++ b/includes/html/graphs/port/adsl_power.inc.php @@ -3,12 +3,12 @@ $rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id'], 'adsl'); $rrd_list[0]['filename'] = $rrd_filename; -$rrd_list[0]['descr'] = 'Downstream'; -$rrd_list[0]['ds'] = 'AtucCurrOutputPwr'; +$rrd_list[0]['descr'] = 'Central'; +$rrd_list[0]['ds'] = 'AturCurrOutputPwr'; $rrd_list[1]['filename'] = $rrd_filename; -$rrd_list[1]['descr'] = 'Upstream'; -$rrd_list[1]['ds'] = 'AturCurrOutputPwr'; +$rrd_list[1]['descr'] = 'CPE'; +$rrd_list[1]['ds'] = 'AtucCurrOutputPwr'; $unit_text = 'dBm'; diff --git a/includes/html/graphs/port/adsl_snr.inc.php b/includes/html/graphs/port/adsl_snr.inc.php index ac78f8e962..ed4a038f58 100644 --- a/includes/html/graphs/port/adsl_snr.inc.php +++ b/includes/html/graphs/port/adsl_snr.inc.php @@ -3,12 +3,12 @@ $rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id'], 'adsl'); $rrd_list[0]['filename'] = $rrd_filename; -$rrd_list[0]['descr'] = 'Downstream'; -$rrd_list[0]['ds'] = 'AtucCurrSnrMgn'; +$rrd_list[0]['descr'] = 'Central to CPE'; +$rrd_list[0]['ds'] = 'AturCurrSnrMgn'; $rrd_list[1]['filename'] = $rrd_filename; -$rrd_list[1]['descr'] = 'Upstream'; -$rrd_list[1]['ds'] = 'AturCurrSnrMgn'; +$rrd_list[1]['descr'] = 'CPE to Central'; +$rrd_list[1]['ds'] = 'AtucCurrSnrMgn'; $unit_text = 'dB'; diff --git a/includes/html/graphs/port/adsl_speed.inc.php b/includes/html/graphs/port/adsl_speed.inc.php index 58b14f5fb4..1a8e818416 100644 --- a/includes/html/graphs/port/adsl_speed.inc.php +++ b/includes/html/graphs/port/adsl_speed.inc.php @@ -3,11 +3,11 @@ $rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id'], 'adsl'); $rrd_list[0]['filename'] = $rrd_filename; -$rrd_list[0]['descr'] = 'Downstream'; +$rrd_list[0]['descr'] = 'Central to CPE'; $rrd_list[0]['ds'] = 'AtucChanCurrTxRate'; $rrd_list[1]['filename'] = $rrd_filename; -$rrd_list[1]['descr'] = 'Upstream'; +$rrd_list[1]['descr'] = 'CPE to Central'; $rrd_list[1]['ds'] = 'AturChanCurrTxRate'; $unit_text = 'Bits/sec'; diff --git a/includes/html/pages/device/port/adsl.inc.php b/includes/html/pages/device/port/adsl.inc.php index 64f8b85f84..868688a538 100644 --- a/includes/html/pages/device/port/adsl.inc.php +++ b/includes/html/pages/device/port/adsl.inc.php @@ -2,11 +2,16 @@ if (file_exists(get_port_rrdfile_path($device['hostname'], $port['port_id'], 'adsl'))) { $iid = $id; - echo '