Index: html/includes/graphs/port/baystackstats_dropnores.inc.php =================================================================== --- html/includes/graphs/port/baystackstats_dropnores.inc.php (Revision 0) +++ html/includes/graphs/port/baystackstats_dropnores.inc.php (Arbeitskopie) @@ -0,0 +1,33 @@ +'); } + + if (is_file(get_port_rrdfilename($port, "baystackstats", TRUE))) + { + echo(''); + echo("

Drops On no Resources

"); + $graph_array['type'] = "port_baystackstats_dropnores"; + print_graph_row_port($graph_array, $port); + echo(''); + + echo(''); + echo("

Priority-Based Flow Control

"); + $graph_array['type'] = "port_baystackstats_pfcinout"; + + print_graph_row_port($graph_array, $port); + echo(''); + + } + if (is_file(get_port_rrdfilename($port, "fdbcount", TRUE))) { echo(''); Index: includes/polling/ports/bay-stack-stats-mib.inc.php =================================================================== --- includes/polling/ports/bay-stack-stats-mib.inc.php (Revision 0) +++ includes/polling/ports/bay-stack-stats-mib.inc.php (Arbeitskopie) @@ -0,0 +1,19 @@ + $port['port_id']), 'ports_bayStackStats'); + } + + foreach ($baystackstats_oids as $oid) + { + $baystackstats_update[$oid] = $this_port[$oid]; + } + + dbUpdate($baystackstats_update, 'ports_bayStackStats', '`port_id` = ?', array($port['port_id'])); + + // Update RRDs + rrdtool_update_ng($device, 'port-baystackstats', array( + 'IfNoResPktsDropped' => $this_port['bayStackStatsIfNoResourcesPktsDropped'], + 'IfInPfcFrames' => $this_port['bayStackStatsIfInPfcFrames'], + 'IfOutPfcFrames' => $this_port['bayStackStatsIfOutPfcFrames'], + ), get_port_rrdindex($port)); + +} + + +// EOF