port graphs cleanup

git-svn-id: http://www.observium.org/svn/observer/trunk@1905 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-17 13:25:37 +00:00
parent 75edcd1323
commit e1db733590
16 changed files with 136 additions and 119 deletions
+9 -8
View File
@@ -7,10 +7,13 @@ $oids = array('dot3StatsAlignmentErrors', 'dot3StatsFCSErrors', 'dot3StatsSingle
'dot3StatsInternalMacTransmitErrors', 'dot3StatsCarrierSenseErrors', 'dot3StatsFrameTooLongs', 'dot3StatsInternalMacReceiveErrors',
'dot3StatsSymbolErrors');
$i=0;
$i = 0;
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("port-" . $port['ifIndex'] . "-dot3.rrd");
if(is_file($rrd_filename)) {
foreach($oids as $oid){
if (is_file($rrd_filename))
{
foreach ($oids as $oid)
{
$oid = str_replace("dot3Stats", "", $oid);
$oid_rra = truncate($oid, 19, '');
$rrd_list[$i]['filename'] = $rrd_filename;
@@ -18,14 +21,12 @@ if(is_file($rrd_filename)) {
$rrd_list[$i]['rra'] = $oid_rra;
$i++;
}
} else {echo("file missing: $file"); }
} else { echo("file missing: $file"); }
$colours = "mixed";
$nototal = 1;
$unit_text = "Errors";
include ("includes/graphs/generic_multi_simplex_seperated.inc.php");
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
?>
?>