mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
workaround cisco's idiocy of including ' in interface names. idiots.
git-svn-id: http://www.observium.org/svn/observer/trunk@2565 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -31,9 +31,11 @@ foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ?", array($id))
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
|
||||
if ($ignore != 1 && is_file($rrd_filename))
|
||||
{
|
||||
$port = ifLabel($port); ## Fix Labels! ARGH. This needs to be in the bloody database!
|
||||
|
||||
$rrd_filenames[] = $rrd_filename;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $port['ifDescr'];
|
||||
$rrd_list[$i]['descr'] = $port['label'];
|
||||
$rrd_list[$i]['ds_in'] = $ds_in;
|
||||
$rrd_list[$i]['ds_out'] = $ds_out;
|
||||
$i++;
|
||||
|
Reference in New Issue
Block a user