initial commit; version 22.5.12042
This commit is contained in:
24
html/includes/graphs/processor/auth.inc.php
Normal file
24
html/includes/graphs/processor/auth.inc.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$proc = dbFetchRow("SELECT * FROM `processors` where `processor_id` = ?", array($vars['id']));
|
||||
|
||||
if (is_numeric($proc['device_id']) && ($auth || device_permitted($proc['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($proc['device_id']);
|
||||
$rrd_filename = get_rrd_path($device, "processor-" . $proc['processor_type'] . "-" . $proc['processor_index'] . ".rrd");
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: Processor :: " . rewrite_entity_name($proc['processor_descr'], 'processor');
|
||||
$auth = TRUE;
|
||||
}
|
||||
|
||||
// EOF
|
29
html/includes/graphs/processor/usage.inc.php
Normal file
29
html/includes/graphs/processor/usage.inc.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
|
||||
$ds = "usage";
|
||||
|
||||
$descr = rrdtool_escape(rewrite_entity_name($proc['processor_descr'], 'processor'), 28);
|
||||
|
||||
$colour_line = "cc0000";
|
||||
$colour_area = "FFBBBB";
|
||||
$colour_minmax = "c5c5c5";
|
||||
|
||||
$graph_max = 1;
|
||||
$unit_text = "Usage";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user