Files
librenms-librenms/includes/html/graphs/port/cie.inc.php
pobradovic08 7f32af4f7b Add CISCO-IF-EXTENSION port stats for IOS/IOS-XE (#10644)
* Add CISCO-IF-EXTENSION polling and graph

* Added test data

* Code style

* Move CISCO-IF-EXTENSION-MIB to cisco mib dir

* Test data?

* Recollect test data again

* ios-xe variant 'ports' with ports test data

* Removed unnecessary test data
2019-10-21 00:39:14 +00:00

45 lines
1.3 KiB
PHP

<?php
/**
* 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, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*
* @package LibreNMS
* @subpackage webui
* @link http://librenms.org
* @copyright 2019 LibreNMS
* @author Pavle Obradovic <pobradovic08@gmail.com>
*/
$cisco_if_extension_ds = array(
'InRuntsErrs' => 'In Runts',
'InGiantsErrs' => 'In Giants',
'InFramingErrs' => 'In Framing err',
'InOverrunErrs' => 'In Overruns',
'InIgnored' => 'In Ignored',
'InAbortErrs' => 'In Aborts',
'InputQueueDrops' => 'In Queue drops',
'OutputQueueDrops' => 'Out Queue drops'
);
$i = 0;
$rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id'], 'cie');
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($cisco_if_extension_ds as $ds => $descr) {
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;
$rrd_list[$i]['ds'] = $ds;
$i++;
}
}
$colours = 'mixed';
$nototal = 1;
$unit_text = 'Errors/sec';
$simple_rrd = 1;
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';