mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00: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:
21
html/includes/graphs/c6kxbar/auth.inc.php
Normal file
21
html/includes/graphs/c6kxbar/auth.inc.php
Normal 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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
19
html/includes/graphs/c6kxbar/util.inc.php
Normal file
19
html/includes/graphs/c6kxbar/util.inc.php
Normal 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");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user