initial commit; version 22.5.12042
This commit is contained in:
30
includes/polling/mempools/hpn-icf-entity-ext-mib.inc.php
Normal file
30
includes/polling/mempools/hpn-icf-entity-ext-mib.inc.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'HPN-ICF-ENTITY-EXT-MIB';
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'hpnicfEntityExtMemUsage', array(), $mib);
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'hpnicfEntityExtMemSize', $cache_storage[$mib], $mib);
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$cache_mempool = $cache_storage[$mib][$index];
|
||||
|
||||
$mempool['total'] = snmp_dewrap32bit($cache_mempool['hpnicfEntityExtMemSize']);
|
||||
$mempool['perc'] = $cache_mempool['hpnicfEntityExtMemUsage'];
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user