mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: mikrotik cpu detection (#5306)
This commit is contained in:
committed by
Neil Lathwood
parent
c3d678b112
commit
82579fbb04
@@ -33,7 +33,7 @@ if (is_array($hrDevice_array)) {
|
||||
}
|
||||
|
||||
// Workaround to set fake description for Mikrotik who don't populate hrDeviceDescr
|
||||
if ($device['os'] == 'routeros' && !isset($entry['hrDeviceDescr'])) {
|
||||
if ($device['os'] == 'routeros' && (!isset($entry['hrDeviceDescr']) || empty($entry['hrDeviceDescr']))) {
|
||||
$descr = 'Processor';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user