Files
librenms-librenms/html/includes/graphs/port/auth.inc.php
Adam Amstrong baf538df88 reengineering of port rrdfile. merged ifx (will notify existance of this via database).
****** YOU MUST RUN DISCOVERY OR "php fix-port-rrd.php" AFTER THIS *******



git-svn-id: http://www.observium.org/svn/observer/trunk@1656 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-10 15:54:01 +00:00

15 lines
371 B
PHP

<?php
if(is_numeric($id) && port_permitted($id)) {
$port = get_port_by_id($id);
$device = device_by_id_cache($port['device_id']);
$title = generate_device_link($device);
$title .= " :: Port ".generate_port_link($port);
$auth = TRUE;
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/port-" . safename($port['ifIndex'] . ".rrd");
}
?>