Files
librenms-librenms/html/includes/graphs/macaccounting/pkts.inc.php
T

28 lines
847 B
PHP
Raw Normal View History

2009-10-27 13:04:16 +00:00
<?php
2011-03-17 13:25:37 +00:00
$query = mysql_query("SELECT * FROM `mac_accounting` AS M, `ports` AS I, `devices` AS D WHERE M.ma_id = '".mres($_GET['id'])."'
2009-10-27 13:04:16 +00:00
AND I.interface_id = M.interface_id AND I.device_id = D.device_id");
$acc = mysql_fetch_assoc($query);
2011-03-17 13:25:37 +00:00
if (is_file($config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd")))
{
$rrd_filename = $config['rrd_dir'] . "/" . $acc['hostname'] . "/" . safename("cip-" . $acc['ifIndex'] . "-" . $acc['mac'] . ".rrd");
2009-10-27 13:04:16 +00:00
}
$rra_in = "PIN";
$rra_out = "POUT";
$colour_area_in = "AA66AA";
$colour_line_in = "330033";
$colour_area_out = "FFDD88";
$colour_line_out = "FF6600";
$colour_area_in_max = "CC88CC";
$colour_area_out_max = "FFEFAA";
$graph_max = 1;
$unit_text = "Pkts\ \ \ ";
include("includes/graphs/generic_duplex.inc.php");
2009-10-27 13:04:16 +00:00
2011-03-17 13:25:37 +00:00
?>