Files
bonzo81 107736697c Add Sla jitter packet loss percent graph (#13600)
* Add sla packet loss percent rrd graph

* Add packet loss percent div

* Add OID for NumPackets

* Fixed CDEF typo

* Rename graph file to include .inc

* Flipped axis for Src and Dst to match key

* Create new rrd file for loss percent

* Remove duplicate rrd data and rename rrd to reflect

* Amend to use second rrd file for NumPackets

* Removed spaces

* dbFetchRow be gone

* insert if statement check

* white space cleanup

* New line at end of file

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-09 18:57:16 -06:00

112 lines
3.8 KiB
PHP

<div class="panel-heading">
<h3 class="panel-title">Average Latency One Way</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_sla_jitter-latency';
$graph_array['id'] = $vars['id'];
require 'includes/html/print-graphrow.inc.php';
?>
</div>
<div class="panel-heading">
<h3 class="panel-title">Average Jitter</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_sla_jitter';
$graph_array['id'] = $vars['id'];
require 'includes/html/print-graphrow.inc.php';
?>
</div>
<div class="panel-heading">
<h3 class="panel-title">Packet Loss (Percent)</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_sla_jitter-loss-percent';
$graph_array['id'] = $vars['id'];
require 'includes/html/print-graphrow.inc.php';
?>
</div>
<div class="panel-heading">
<h3 class="panel-title">Packet Loss (Count)</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_sla_jitter-loss';
$graph_array['id'] = $vars['id'];
require 'includes/html/print-graphrow.inc.php';
?>
</div>
<div class="panel-heading">
<h3 class="panel-title">Lost Packets (Out Of Sequence, Tail Drop, Late Arrival)</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_sla_jitter-lost';
$graph_array['id'] = $vars['id'];
require 'includes/html/print-graphrow.inc.php';
?>
</div>
<div class="panel-heading">
<h3 class="panel-title">Mean Opinion Score</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_sla_jitter-mos';
$graph_array['id'] = $vars['id'];
require 'includes/html/print-graphrow.inc.php';
?>
</div>
<div class="panel-heading">
<h3 class="panel-title">Impairment / Calculated Planning Impairment Factor</h3>
</div>
<div class="panel-body">
<?php
$graph_array = [];
$graph_array['device'] = $device['device_id'];
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['type'] = 'device_sla_jitter-icpif';
$graph_array['id'] = $vars['id'];
require 'includes/html/print-graphrow.inc.php';
?>
</div>