mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Output image for graphs with no data * add font * Fix graph error, try to detect rrd missing * centralize graph_error use it for graph_text_and_exit() * Add SVG, right now the text can get a little big... * fix style
14 lines
394 B
PHP
14 lines
394 B
PHP
<?php
|
|
|
|
$procs = dbFetchRows('SELECT * FROM `processors` where `device_id` = ?', [$device['device_id']]);
|
|
|
|
if (empty($procs)) {
|
|
graph_text_and_exit('No Processors');
|
|
}
|
|
|
|
if (\LibreNMS\Config::getOsSetting($device['os'], 'processor_stacked')) {
|
|
include 'includes/html/graphs/device/processor_stack.inc.php';
|
|
} else {
|
|
include 'includes/html/graphs/device/processor_separate.inc.php';
|
|
}
|