diff --git a/includes/polling/os/hpmsm.inc.php b/includes/polling/os/hpmsm.inc.php index 9d41c038a2..585db128c2 100644 --- a/includes/polling/os/hpmsm.inc.php +++ b/includes/polling/os/hpmsm.inc.php @@ -10,8 +10,7 @@ * the source code distribution for details. */ -$sysdescr = snmp_get($device, 'SNMPv2-MIB::sysDescr.0', '-Ovq'); -preg_match_all('/^(MSM\d{3})|Serial number ([\S]+)|Firmware version (\d+\.\d+\.\d+\.\d+-\d+)/', $sysdescr, $matches); +preg_match_all('/^(MSM\d{3})|Serial number ([\S]+)|Firmware version (\d+\.\d+\.\d+\.\d+-\d+)/', $poll_device['sysDescr'], $matches); $hardware = $matches[1][0]; $serial = $matches[2][1]; $version = $matches[3][2];