graphing for c6k fabric

git-svn-id: http://www.observium.org/svn/observer/trunk@2724 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-11-14 20:21:53 +00:00
parent 45c6d95501
commit 2c8a5633bc
3 changed files with 64 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<?php
include("includes/graphs/device/auth.inc.php");
if ($auth && is_numeric($_GET['mod']) && is_numeric($_GET['chan']))
{
$entity = dbFetchRow("SELECT * FROM entPhysical WHERE device_id = ? AND entPhysicalIndex = ?", array($device['device_id'], $_GET['mod']));
$title .= " :: ".$entity['entPhysicalName'];
$title .= " :: Fabric ".$_GET['chan'];
$graph_title = shorthost($device['hostname']) . "::" . $entity['entPhysicalName']. "::Fabric".$_GET['chan'];
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/c6kxbar-" . safename($_GET['mod']. "-".$_GET['chan']. ".rrd");
}
?>

View File

@@ -0,0 +1,19 @@
<?
$ds_in = "inutil";
$ds_out = "oututil";
$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 = "Percent";
include("includes/graphs/generic_duplex.inc.php");
?>