mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Added basic detection for Mellanox devices
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (stristr($poll_device['sysDescr'], "Linux")) {
|
||||
list(,,$version,$hardware) = explode(' ', $poll_device['sysDescr']);
|
||||
} else {
|
||||
list($hardware,,$version) = explode(',',$poll_device['sysDescr']);
|
||||
$hardware = preg_replace("/Mellanox /","", $hardware);
|
||||
}
|
||||
Reference in New Issue
Block a user