mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Some *nix systems do not provide a descr :(
This commit is contained in:
@@ -53,6 +53,12 @@ if (is_array($hrDevice_array)) {
|
||||
$descr = 'Processor';
|
||||
}
|
||||
|
||||
// Workaround for Linux where some CPUs don't have a description
|
||||
if ($device['os'] == 'linux' && empty($entry['hrDeviceDescr'])) {
|
||||
$descr = 'Processor';
|
||||
}
|
||||
|
||||
|
||||
$descr = str_replace('CPU ', '', $descr);
|
||||
$descr = str_replace('(TM)', '', $descr);
|
||||
$descr = str_replace('(R)', '', $descr);
|
||||
|
Reference in New Issue
Block a user