diff --git a/includes/polling/os/hpe-msl.inc.php b/includes/polling/os/hpe-msl.inc.php index bd4eb00cc5..39eeacbfa1 100644 --- a/includes/polling/os/hpe-msl.inc.php +++ b/includes/polling/os/hpe-msl.inc.php @@ -23,8 +23,11 @@ * @author Neil Lathwood */ -$hardware_array = snmp_get_multi($device, 'hpHttpMgDeviceProductName.1 hpHttpMgDeviceSerialNumber.1 hpHttpMgDeviceVersion.1', '-OQUs', 'SEMI-MIB'); -d_echo($hardware_array); -$hardware = trim($hardware_array[0]['hpHttpMgDeviceProductName'], '"'); -$serial = trim($hardware_array[0]['hpHttpMgDeviceSerialNumber'], '"'); -$version = trim($hardware_array[0]['hpHttpMgDeviceVersion'], '"'); +$oids = 'hpHttpMgDeviceProductName.1 hpHttpMgDeviceSerialNumber.1 hpHttpMgDeviceVersion.1'; + +$data = snmp_get_multi($device, $oids, '-OQUs', 'SEMI-MIB'); +d_echo($data); + +$hardware = $data[1]['hpHttpMgDeviceProductName']; +$serial = $data[1]['hpHttpMgDeviceSerialNumber']; +$version = $data[1]['hpHttpMgDeviceVersion'];