2011-04-26 16:05:56 +00:00
|
|
|
<?php
|
2011-04-22 15:13:15 +00:00
|
|
|
|
2020-09-21 15:40:17 +02:00
|
|
|
$procs = dbFetchRows('SELECT * FROM `processors` where `device_id` = ?', [$device['device_id']]);
|
2011-04-22 15:13:15 +00:00
|
|
|
|
2021-01-13 07:23:47 -06:00
|
|
|
if (empty($procs)) {
|
|
|
|
graph_text_and_exit('No Processors');
|
|
|
|
}
|
|
|
|
|
2020-05-19 14:35:32 -05:00
|
|
|
if (\LibreNMS\Config::getOsSetting($device['os'], 'processor_stacked')) {
|
2019-04-11 23:26:42 -05:00
|
|
|
include 'includes/html/graphs/device/processor_stack.inc.php';
|
2016-08-18 20:28:22 -05:00
|
|
|
} else {
|
2019-04-11 23:26:42 -05:00
|
|
|
include 'includes/html/graphs/device/processor_separate.inc.php';
|
2011-04-22 15:13:15 +00:00
|
|
|
}
|