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