mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Merge pull request #198 from toyowheelin/issue-197
This addresses issues-197. Thanks to lafwood for debugging this for me.
This commit is contained in:
@@ -27,6 +27,8 @@ if (is_array($hrDevice_array))
|
||||
|
||||
// Workaround to set fake description for Mikrotik who don't populate hrDeviceDescr
|
||||
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"; }
|
||||
|
||||
$descr = str_replace("CPU ", "", $descr);
|
||||
$descr = str_replace("(TM)", "", $descr);
|
||||
|
||||
Reference in New Issue
Block a user