mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -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");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user