Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $storage_array = snmpwalk_cache_oid($device, 'fwKmem', null, 'CHECKPOINT-MIB');
- if (is_array($storage_array)) {
- echo 'fwKmem : ';
- foreach ($storage_array as $index => $storage) {
- $fstype = 'fwKmem';
- $descr = 'Sec Memory';
- $size = ($storage['fwKmem-alloc-operations']);
- $used = ($storage['fwKmem-failed-alloc']);
- $units = $storage['fwKmem-failed-free'];
- $deny = 1;
- discover_mempool($valid_mempool, $device, $index, 'fwKmem', $descr, $units, null, null);
- unset($deny, $fstype, $descr, $size, $used, $units, $storage_rrd, $old_storage_rrd);
- }//end foreach
- unset($storage_array);
- }//end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement