mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: hardware detection for Sub10 2.1.7 hardware (#5985)
This commit is contained in:
committed by
Neil Lathwood
parent
0ec02360d9
commit
ecd467fee7
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
if (preg_match("/Sub10 Systems - ([\s\d\w]+)/", $poll_device['sysDescr'], $hardware)) {
|
if (preg_match("/Sub10 Systems - ([\s\d\w]+)/", $poll_device['sysDescr'], $hardware)) {
|
||||||
$hardware = $hardware[1];
|
$hardware = $hardware[1];
|
||||||
|
} else {
|
||||||
|
$hardware = $poll_device['sysDescr'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$version = str_replace('"', '', snmp_get($device, 'sub10UnitLclFirmwareVersion.0', '-Osqnv', 'SUB10SYSTEMS-MIB'));
|
$version = str_replace('"', '', snmp_get($device, 'sub10UnitLclFirmwareVersion.0', '-Osqnv', 'SUB10SYSTEMS-MIB'));
|
||||||
|
Reference in New Issue
Block a user