mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
43 lines
1.3 KiB
PHP
43 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.
|
|
*
|
|
* @link https://www.librenms.org
|
|
*
|
|
* @copyright 2019 LibreNMS
|
|
* @author Pavle Obradovic <pobradovic08@gmail.com>
|
|
*/
|
|
$cisco_if_extension_ds = [
|
|
'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 (Rrd::checkRrdExists($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';
|