Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -6,19 +6,32 @@
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
* @copyright (C) Adam Armstrong
*
*/
$proc = dbFetchRow("SELECT * FROM `processors` where `processor_id` = ?", array($vars['id']));
if (!is_intnum($vars['id'])) {
return;
}
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;
$proc = get_entity_by_id_cache('processor', $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, get_processor_rrd($device, $proc));
$title_array = [];
$title_array[] = [ 'text' => $device['hostname'],
'url' => generate_url([ 'page' => 'device', 'device' => $device['device_id'] ]) ];
$title_array[] = [ 'text' => 'Processors',
'url' => generate_url([ 'page' => 'device', 'device' => $device['device_id'], 'tab' => 'health', 'metric' => 'processor' ]) ];
$title_array[] = [ 'text' => escape_html($proc['processor_descr']),
'url' => generate_url([ 'page' => 'device', 'device' => $device['device_id'], 'tab' => 'health', 'metric' => 'processor', 'processor_id' => $vars['id'] ]) ];
$graph_title = device_name($device, TRUE);
$graph_title .= " :: Processor :: " . rewrite_entity_name($proc['processor_descr'], 'processor');
$auth = TRUE;
}
// EOF