$storage) { $fstype = $storage['hrStorageType']; $descr = $storage['hrStorageDescr']; $storage['hrStorageSize'] = fix_integer_value($storage['hrStorageSize']); $storage['hrStorageUsed'] = fix_integer_value($storage['hrStorageUsed']); $size = ($storage['hrStorageSize'] * $storage['hrStorageAllocationUnits']); $used = ($storage['hrStorageUsed'] * $storage['hrStorageAllocationUnits']); $units = $storage['hrStorageAllocationUnits']; if (in_array($fstype, $bad_fs_types)) { continue; } if ($device['os'] == 'vmware' && $descr == 'Real Memory') { $old_rrdfile = array('storage', 'hrstorage', $descr); $new_rrdfile = array('mempool', 'hrstorage', $storage['hrStorageIndex']); rrd_file_rename($device, $old_rrdfile, $new_rrdfile); continue; } if (ignore_storage($device['os'], $descr)) { continue; } if (Config::get('ignore_mount_removable', false) && $fstype == 'hrStorageRemovableDisk') { d_echo("skip(removable)\n"); continue; } if (Config::get('ignore_mount_network', false) && $fstype == 'hrStorageNetworkDisk') { d_echo("skip(network)\n"); continue; } if (Config::get('ignore_mount_optical', false) && $fstype == 'hrStorageCompactDisc') { d_echo("skip(cd)\n"); continue; } if (is_numeric($index)) { discover_storage($valid_storage, $device, $index, $fstype, 'hrstorage', $descr, $size, $units, $used); } unset($deny, $fstype, $descr, $size, $used, $units, $storage_rrd, $old_storage_rrd, $hrstorage_array); }//end foreach }//end if