1 && count($cache_storage['cisco-flash-mib'])) { print_vars($cache_storage['cisco-flash-mib']); } //} //$entry = $cache_storage['cisco-flash-mib'][$storage['storage_index']]; $storage['units'] = 1; if ($storage['storage_hc']) { $oids = ['ciscoFlashPartitionSizeExtended.' . $storage['storage_index'], 'ciscoFlashPartitionFreeSpaceExtended.' . $storage['storage_index']]; $entry = snmp_get_multi_oid($device, $oids, [], "CISCO-FLASH-MIB"); $entry = array_shift($entry); $storage['size'] = $entry['ciscoFlashPartitionSizeExtended']; $storage['free'] = $entry['ciscoFlashPartitionFreeSpaceExtended']; } else { $oids = ['ciscoFlashPartitionSize.' . $storage['storage_index'], 'ciscoFlashPartitionFreeSpace.' . $storage['storage_index']]; $entry = snmp_get_multi_oid($device, $oids, [], "CISCO-FLASH-MIB"); $entry = array_shift($entry); $storage['size'] = $entry['ciscoFlashPartitionSize']; $storage['free'] = $entry['ciscoFlashPartitionFreeSpace']; } if (OBS_DEBUG > 1 && count($entry)) { print_vars($entry); } $storage['used'] = $storage['size'] - $storage['free']; // EOF