mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #1114 from Rosiak/master
Ubiquiti EdgeOS - Fix missing CPU load graphs
This commit is contained in:
@@ -29,6 +29,8 @@ if (is_array($hrDevice_array))
|
||||
if ($device['os'] == "routeros" && !isset($entry['hrDeviceDescr'])) { $descr = "Processor"; }
|
||||
// Workaround to set fake description for Engenius who don't populate hrDeviceDescr
|
||||
if ($device['os'] == "engenius" && empty($entry['hrDeviceDescr'])) { $descr = "Processor"; }
|
||||
// Workaround to set fake description for Ubiquiti EdgeOS who don't populate hrDeviceDescr
|
||||
if ($device['os'] == "edgeos" && empty($entry['hrDeviceDescr'])) { $descr = "Processor"; }
|
||||
|
||||
$descr = str_replace("CPU ", "", $descr);
|
||||
$descr = str_replace("(TM)", "", $descr);
|
||||
|
Reference in New Issue
Block a user