Files
librenms-librenms/includes/html/graphs/device/processor.inc.php
Tony Murray b07b81021a Output image for graphs with no data (#11865)
* 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
2021-01-13 07:23:47 -06:00

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';
}