fix: hardware detection for Sub10 2.1.7 hardware (#5985)

This commit is contained in:
Thom Seddon 2017-02-25 11:38:00 +00:00 committed by Neil Lathwood
parent 0ec02360d9
commit ecd467fee7

View File

@ -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'));