initial commit; version 22.5.12042
This commit is contained in:
27
html/includes/graphs/c6kxbar/auth.inc.php
Normal file
27
html/includes/graphs/c6kxbar/auth.inc.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/auth.inc.php");
|
||||
|
||||
if ($auth && is_numeric($vars['mod']) && is_numeric($vars['chan'])) {
|
||||
|
||||
$entity = dbFetchRow("SELECT * FROM entPhysical WHERE device_id = ? AND entPhysicalIndex = ?", array($device['device_id'], $vars['mod']));
|
||||
|
||||
$title .= " :: ".$entity['entPhysicalName'];
|
||||
$title .= " :: Fabric ".$vars['chan'];
|
||||
|
||||
$graph_title = device_name($device, TRUE) . "::" . $entity['entPhysicalName']. "::Fabric" . $vars['chan'];
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "c6kxbar-" . $vars['mod']. "-".$vars['chan']. ".rrd");
|
||||
}
|
||||
|
||||
// EOF
|
30
html/includes/graphs/c6kxbar/util.inc.php
Normal file
30
html/includes/graphs/c6kxbar/util.inc.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds_in = "inutil";
|
||||
$ds_out = "oututil";
|
||||
|
||||
$colour_area_in = $config['colours']['graphs']['pkts']['in_area'];
|
||||
$colour_line_in = $config['colours']['graphs']['pkts']['in_line'];
|
||||
$colour_area_out = $config['colours']['graphs']['pkts']['out_area'];
|
||||
$colour_line_out = $config['colours']['graphs']['pkts']['out_line'];
|
||||
|
||||
$colour_area_in_max = $config['colours']['graphs']['pkts']['in_max'];
|
||||
$colour_area_out_max = $config['colours']['graphs']['pkts']['out_max'];
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Percent";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_duplex.inc.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user