mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Merge pull request #1226 from laf/issue-1214
Alter Windows CPU descr when unknown
This commit is contained in:
@@ -31,6 +31,10 @@ if (is_array($hrDevice_array))
|
||||
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"; }
|
||||
// Workaround to set fake description for Windows who use Unknown Processor Type
|
||||
if ($device['os'] == "windows" && $entry['hrDeviceDescr'] == "Unknown Processor Type") {
|
||||
$descr = "Processor";
|
||||
}
|
||||
|
||||
$descr = str_replace("CPU ", "", $descr);
|
||||
$descr = str_replace("(TM)", "", $descr);
|
||||
|
||||
Reference in New Issue
Block a user