fix malformed snmp data parsing (#15931)

This commit is contained in:
Holger Hees
2024-04-10 15:40:22 +02:00
committed by GitHub
parent f1070108e8
commit 9df48647bb

View File

@@ -6,6 +6,8 @@ if (in_array($device['os'], ['windows', 'hpe-ilo']) || $device['os_group'] == 'u
if (is_array($ilo_storage)) {
echo 'HPE ILO4 ';
foreach ($ilo_storage as $index => $storage) {
if( !is_array($storage) ) continue;
$type = $storage['cpqHoFileSysDesc'];
preg_match_all('/\[.*?:(.*?)\]/', $type, $matches);