. * * @package LibreNMS * @link http://librenms.org * @copyright 2017 Neil Lathwood * @author Neil Lathwood */ $oceanstor_tmp = snmp_get_multi_oid($device, ['usedCapacity.0', 'totalCapacity.0'], '-OUQs', 'ISM-STORAGE-SVC-MIB'); $storage['size'] = $oceanstor_tmp['totalCapacity.0']; $storage['used'] = $oceanstor_tmp['usedCapacity.0']; $storage['free'] = ($storage['size'] - $storage['used']); $storage['units'] = 1024; unset($oceanstor_tmp);