initial commit; version 22.5.12042
This commit is contained in:
34
includes/polling/mempools/agent-general-mib.inc.php
Normal file
34
includes/polling/mempools/agent-general-mib.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'AGENT-GENERAL-MIB';
|
||||
|
||||
$oids = array('agentDRAMutilizationTotalDRAM', 'agentDRAMutilizationUsedDRAM');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['used'] = $cache_mempool[$index]['agentDRAMutilizationUsedDRAM'];
|
||||
$mempool['total'] = $cache_mempool[$index]['agentDRAMutilizationTotalDRAM'];
|
||||
|
||||
// EOF
|
31
includes/polling/mempools/bianca-brick-mibres-mib.inc.php
Normal file
31
includes/polling/mempools/bianca-brick-mibres-mib.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'BIANCA-BRICK-MIBRES-MIB';
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach (array('memoryTotal', 'memoryInuse') as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib, NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$mempool['total'] = $cache_mempool[$index]['memoryTotal'];
|
||||
$mempool['used'] = $cache_mempool[$index]['memoryInuse'];
|
||||
|
||||
// EOF
|
35
includes/polling/mempools/bluecoat-sg-proxy-mib.inc.php
Normal file
35
includes/polling/mempools/bluecoat-sg-proxy-mib.inc.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'BLUECOAT-SG-PROXY-MIB';
|
||||
|
||||
$oids = array('sgProxyMemAvailable', 'sgProxyMemSysUsage');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['total'] = $cache_mempool[$index]['sgProxyMemAvailable'];
|
||||
$mempool['used'] = $cache_mempool[$index]['sgProxyMemSysUsage'];
|
||||
//$mempool['perc'] = $cache_mempool[$index]['sgProxyMemoryPressure'];
|
||||
|
||||
// EOF
|
34
includes/polling/mempools/bluecoat-sg-usage-mib.inc.php
Normal file
34
includes/polling/mempools/bluecoat-sg-usage-mib.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// ProxyAV devices hide their CPUs/Memory/Interfaces in here
|
||||
|
||||
$mib = 'BLUECOAT-SG-USAGE-MIB';
|
||||
|
||||
$oids = array('deviceUsagePercent');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$mempool['perc'] = $cache_mempool[$mempool['mempool_index']]['deviceUsagePercent'];
|
||||
|
||||
// EOF
|
53
includes/polling/mempools/cisco-enhanced-mempool-mib.inc.php
Normal file
53
includes/polling/mempools/cisco-enhanced-mempool-mib.inc.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'CISCO-ENHANCED-MEMPOOL-MIB';
|
||||
|
||||
if ($mempool['mempool_hc'])
|
||||
{
|
||||
$cemp_oid = 'cempMemPoolHC';
|
||||
} else {
|
||||
$cemp_oid = 'cempMemPool';
|
||||
}
|
||||
$oids = array('used' => $cemp_oid.'Used',
|
||||
'free' => $cemp_oid.'Free');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
if ($device['os'] == 'iosxr' && !$GLOBALS['snmp_status'])
|
||||
{
|
||||
// Hack for some old IOS-XR, sometime return "Timeout: No Response".
|
||||
// See http://jira.observium.org/browse/OBSERVIUM-1170
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$mempool[$param] = $cache_mempool[$index][$oid];
|
||||
}
|
||||
|
||||
$mempool['total'] = $mempool['used'] + $mempool['free'];
|
||||
|
||||
unset ($index, $cemp_oid, $oid);
|
||||
|
||||
// EOF
|
36
includes/polling/mempools/cisco-entity-qfp-mib.inc.php
Normal file
36
includes/polling/mempools/cisco-entity-qfp-mib.inc.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'CISCO-ENTITY-QFP-MIB';
|
||||
$oids = array('used' => 'ceqfpMemoryResInUse',
|
||||
'total' => 'ceqfpMemoryResTotal');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$mempool[$param] = $cache_mempool[$index][$oid];
|
||||
}
|
||||
|
||||
// EOF
|
38
includes/polling/mempools/cisco-memory-pool-mib.inc.php
Normal file
38
includes/polling/mempools/cisco-memory-pool-mib.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'CISCO-MEMORY-POOL-MIB';
|
||||
$oids = array('used' => 'ciscoMemoryPoolUsed',
|
||||
'free' => 'ciscoMemoryPoolFree');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$mempool[$param] = $cache_mempool[$index][$oid];
|
||||
}
|
||||
|
||||
unset ($index, $oid, $oids);
|
||||
|
||||
// EOF
|
38
includes/polling/mempools/cisco-process-mib.inc.php
Normal file
38
includes/polling/mempools/cisco-process-mib.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'CISCO-PROCESS-MIB';
|
||||
$oids = array('used' => 'cpmCPUMemoryUsed',
|
||||
'free' => 'cpmCPUMemoryFree');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$mempool[$param] = $cache_mempool[$index][$oid];
|
||||
}
|
||||
|
||||
unset ($index, $oid, $oids);
|
||||
|
||||
// EOF
|
@ -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 = 'DELL-NETWORKING-CHASSIS-MIB';
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'dellNetCpuUtilMemUsage', array(), $mib, NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'dellNetProcessorMemSize', $cache_storage[$mib], $mib, NULL, OBS_SNMP_ALL_NUMERIC_INDEX);
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$cache_mempool = $cache_storage[$mib][$index];
|
||||
|
||||
$mempool['total'] = $cache_mempool['dellNetProcessorMemSize'];
|
||||
$mempool['perc'] = $cache_mempool['dellNetCpuUtilMemUsage'];
|
||||
|
||||
// EOF
|
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'EXTREME-SOFTWARE-MONITOR-MIB';
|
||||
|
||||
$oids = array('extremeMemoryMonitorSystemTotal', 'extremeMemoryMonitorSystemFree');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['free'] = $cache_mempool[$index]['extremeMemoryMonitorSystemFree'];
|
||||
$mempool['total'] = $cache_mempool[$index]['extremeMemoryMonitorSystemTotal'];
|
||||
$mempool['used'] = $mempool['total'] - $mempool['free'];
|
||||
|
||||
// EOF
|
40
includes/polling/mempools/f10-c-series-chassis-mib.inc.php
Normal file
40
includes/polling/mempools/f10-c-series-chassis-mib.inc.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'F10-C-SERIES-CHASSIS-MIB';
|
||||
|
||||
$oids = array('chRpmMemUsageUtil', 'chSysProcessorMemSize');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
|
||||
if ($mempool['mempool_multiplier'] == 1)
|
||||
{
|
||||
$mempool['total'] = 1090519040; // Hardcoded total.
|
||||
} else {
|
||||
$mempool['total'] = $cache_mempool[$index]['chSysProcessorMemSize'];
|
||||
}
|
||||
$mempool['perc'] = $cache_mempool[$index]['chRpmMemUsageUtil'];
|
||||
|
||||
// EOF
|
28
includes/polling/mempools/f10-chassis-mib.inc.php
Normal file
28
includes/polling/mempools/f10-chassis-mib.inc.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if (!is_array($cache_storage['F10-CHASSIS-MIB']))
|
||||
{
|
||||
$cache_storage['F10-CHASSIS-MIB'] = snmpwalk_cache_oid($device, 'chRpmMemUsageUtil', array(), 'F10-CHASSIS-MIB');
|
||||
$cache_storage['F10-CHASSIS-MIB'] = snmpwalk_cache_oid($device, 'chSysProcessorMemSize', $cache_storage['F10-CHASSIS-MIB'], 'F10-CHASSIS-MIB');
|
||||
} else {
|
||||
print_debug('Cached!');
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$cache_mempool = $cache_storage['F10-CHASSIS-MIB'][$index];
|
||||
|
||||
$mempool['total'] = $cache_mempool['chSysProcessorMemSize'];
|
||||
$mempool['perc'] = $cache_mempool['chRpmMemUsageUtil'];
|
||||
|
||||
// EOF
|
34
includes/polling/mempools/f10-m-series-chassis-mib.inc.php
Normal file
34
includes/polling/mempools/f10-m-series-chassis-mib.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'F10-M-SERIES-CHASSIS-MIB';
|
||||
|
||||
$oids = array('chStackUnitMemUsageUtil', 'chSysProcessorMemSize');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['total'] = $cache_mempool[$index]['chSysProcessorMemSize'];
|
||||
$mempool['perc'] = $cache_mempool[$index]['chStackUnitMemUsageUtil'];
|
||||
|
||||
// EOF
|
30
includes/polling/mempools/f10-s-series-chassis-mib.inc.php
Normal file
30
includes/polling/mempools/f10-s-series-chassis-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 = 'F10-S-SERIES-CHASSIS-MIB';
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'chStackUnitMemUsageUtil', array(), $mib);
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'chSysProcessorMemSize', $cache_storage[$mib], $mib);
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$cache_mempool = $cache_storage[$mib][$index];
|
||||
|
||||
$mempool['total'] = $cache_mempool['chSysProcessorMemSize'];
|
||||
$mempool['perc'] = $cache_mempool['chStackUnitMemUsageUtil'];
|
||||
|
||||
// EOF
|
34
includes/polling/mempools/f5-bigip-system-mib.inc.php
Normal file
34
includes/polling/mempools/f5-bigip-system-mib.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'F5-BIGIP-SYSTEM-MIB';
|
||||
|
||||
$oids = array('sysTmmStatMemoryUsed', 'sysTmmStatMemoryTotal');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['total'] = $cache_mempool[$index]['sysTmmStatMemoryTotal'];
|
||||
$mempool['used'] = $cache_mempool[$index]['sysTmmStatMemoryUsed'];
|
||||
|
||||
// EOF
|
25
includes/polling/mempools/foundry-sn-agent-mib.inc.php
Normal file
25
includes/polling/mempools/foundry-sn-agent-mib.inc.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if ($mempool['mempool_hc'])
|
||||
{
|
||||
$mempool['perc'] = snmp_get($device, "snAgSystemDRAMUtil.0", "-OvQ", 'FOUNDRY-SN-AGENT-MIB');
|
||||
$mempool['total'] = snmp_get($device, "snAgSystemDRAMTotal.0", "-OvQ", 'FOUNDRY-SN-AGENT-MIB');
|
||||
if ($mempool['total'] < -1) { $mempool['total'] = abs($mempool['total']); }
|
||||
} else {
|
||||
$mempool['perc'] = snmp_get($device, "snAgGblDynMemUtil.0", "-OvQ", 'FOUNDRY-SN-AGENT-MIB');
|
||||
$mempool['total'] = snmp_get($device, "snAgGblDynMemTotal.0", "-OvQ", 'FOUNDRY-SN-AGENT-MIB');
|
||||
if ($mempool['total'] == -1) { $mempool['total'] = 100; }
|
||||
}
|
||||
|
||||
// EOF
|
30
includes/polling/mempools/hh3c-entity-ext-mib.inc.php
Normal file
30
includes/polling/mempools/hh3c-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 = 'HH3C-ENTITY-EXT-MIB';
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'hh3cEntityExtMemUsage', array(), $mib);
|
||||
$cache_storage[$mib] = snmpwalk_cache_oid($device, 'hh3cEntityExtMemSize', $cache_storage[$mib], $mib);
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$cache_mempool = $cache_storage[$mib][$index];
|
||||
|
||||
$mempool['total'] = snmp_dewrap32bit($cache_mempool['hh3cEntityExtMemSize']);
|
||||
$mempool['perc'] = $cache_mempool['hh3cEntityExtMemUsage'];
|
||||
|
||||
// EOF
|
20
includes/polling/mempools/host-resources-mcd.inc.php
Normal file
20
includes/polling/mempools/host-resources-mcd.inc.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// WARNING. This is custom poller for mcd os type..
|
||||
// hrStorageSize.1 = 160481280
|
||||
|
||||
$mempool['total'] = 536870912; // 512Mb
|
||||
$mempool['free'] = snmp_get_oid($device, 'hrStorageSize.1', 'HOST-RESOURCES-MIB');
|
||||
$mempool['used'] = $mempool['total'] - $mempool['free'];
|
||||
|
||||
// EOF
|
58
includes/polling/mempools/host-resources-mib.inc.php
Normal file
58
includes/polling/mempools/host-resources-mib.inc.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$hrStorage = snmp_cache_table($device, "hrStorageEntry", [], "HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES");
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
|
||||
if ($device['os'] === "arista_eos" && $index == 1) {
|
||||
// Arista EOS derp hack for correct free memory
|
||||
// https://eos.arista.com/memory-utilization-on-eos-devices/
|
||||
|
||||
// hrStorageType.1 = hrStorageRam
|
||||
// hrStorageType.2 = hrStorageRam
|
||||
// hrStorageType.3 = hrStorageRam
|
||||
// hrStorageType.100 = hrStorageRam
|
||||
// hrStorageDescr.1 = RAM
|
||||
// hrStorageDescr.2 = RAM (Buffers)
|
||||
// hrStorageDescr.3 = RAM (Cache)
|
||||
// hrStorageDescr.100 = RAM (Unavailable)
|
||||
// hrStorageAllocationUnits.1 = 1024
|
||||
// hrStorageAllocationUnits.2 = 1024
|
||||
// hrStorageAllocationUnits.3 = 1024
|
||||
// hrStorageAllocationUnits.100 = 1024
|
||||
// hrStorageSize.1 = 8152456
|
||||
// hrStorageSize.2 = 8152456
|
||||
// hrStorageSize.3 = 8152456
|
||||
// hrStorageSize.100 = 8152456
|
||||
// hrStorageUsed.1 = 7376060
|
||||
// hrStorageUsed.2 = 288472
|
||||
// hrStorageUsed.3 = 2984372
|
||||
// hrStorageUsed.100 = 1811664
|
||||
$hrStorage[1]['hrStorageUsed'] = snmp_dewrap32bit($hrStorage[1]['hrStorageUsed']);
|
||||
foreach ($hrStorage as $idx => $entry) {
|
||||
if ($idx != '1' && $entry['hrStorageType'] === 'hrStorageRam' &&
|
||||
str_starts($entry['hrStorageDescr'], 'RAM') && !str_contains($entry['hrStorageDescr'], 'Unavailable')) {
|
||||
// Use only Buffers and Cache
|
||||
$hrStorage[1]['hrStorageUsed'] -= snmp_dewrap32bit($entry['hrStorageUsed']);
|
||||
unset($hrStorage[$idx]);
|
||||
}
|
||||
}
|
||||
unset($idx);
|
||||
print_debug_vars($hrStorage);
|
||||
}
|
||||
|
||||
$mempool['mempool_multiplier'] = $hrStorage[$index]['hrStorageAllocationUnits'];
|
||||
$mempool['used'] = (int) snmp_dewrap32bit($hrStorage[$index]['hrStorageUsed']); // if hrStorageUsed not set, use 0
|
||||
$mempool['total'] = snmp_dewrap32bit($hrStorage[$index]['hrStorageSize']);
|
||||
|
||||
// EOF
|
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
|
31
includes/polling/mempools/huawei-entity-extent-mib.inc.php
Normal file
31
includes/polling/mempools/huawei-entity-extent-mib.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'HUAWEI-ENTITY-EXTENT-MIB';
|
||||
|
||||
$oids = array('hwEntityMemUsage', 'hwEntityMemSize');
|
||||
|
||||
if (!is_array($cache_storage[$mib])) {
|
||||
foreach ($oids as $oid) {
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['total'] = isset($cache_mempool[$index]['hwEntityMemSize']) && $cache_mempool[$index]['hwEntityMemSize'] > 0 ? $cache_mempool[$index]['hwEntityMemSize'] : 100;
|
||||
$mempool['perc'] = $cache_mempool[$index]['hwEntityMemUsage'];
|
||||
|
||||
// EOF
|
39
includes/polling/mempools/juniper-mib.inc.php
Normal file
39
includes/polling/mempools/juniper-mib.inc.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'JUNIPER-MIB';
|
||||
|
||||
$oids = array('jnxOperatingBuffer', 'jnxOperatingDRAMSize', 'jnxOperatingMemory');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
if ($mempool['mempool_multiplier'] == 1)
|
||||
{
|
||||
$mempool['total'] = $cache_mempool[$index]['jnxOperatingDRAMSize'];
|
||||
} else {
|
||||
$mempool['total'] = $cache_mempool[$index]['jnxOperatingMemory'];
|
||||
}
|
||||
|
||||
$mempool['perc'] = $cache_mempool[$index]['jnxOperatingBuffer'];
|
||||
|
||||
// EOF
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'JUNIPER-SRX5000-SPU-MONITORING-MIB';
|
||||
|
||||
$oids = array('jnxJsSPUMonitoringMemoryUsage');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$mempool['perc'] = $cache_mempool[$index]['jnxJsSPUMonitoringMemoryUsage'];
|
||||
|
||||
// EOF
|
33
includes/polling/mempools/netswitch-mib.inc.php
Normal file
33
includes/polling/mempools/netswitch-mib.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'NETSWITCH-MIB';
|
||||
|
||||
$oids = array('hpLocalMemTotalBytes', 'hpLocalMemAllocBytes');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$mempool['used'] = $cache_mempool[$index]['hpLocalMemAllocBytes'];
|
||||
$mempool['total'] = $cache_mempool[$index]['hpLocalMemTotalBytes'];
|
||||
|
||||
// EOF
|
35
includes/polling/mempools/oneaccess-sys-mib.inc.php
Normal file
35
includes/polling/mempools/oneaccess-sys-mib.inc.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'ONEACCESS-SYS-MIB';
|
||||
|
||||
$oids = array('oacSysMemoryTotal', 'oacSysMemoryAllocated');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['total'] = $cache_mempool[$index]['oacSysMemoryTotal'];
|
||||
$mempool['used'] = $cache_mempool[$index]['oacSysMemoryAllocated'];
|
||||
//$mempool['free'] = $cache_mempool[$index]['oacSysMemoryFree'];
|
||||
|
||||
// EOF
|
21
includes/polling/mempools/peakflow-sp-mib.inc.php
Normal file
21
includes/polling/mempools/peakflow-sp-mib.inc.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'PEAKFLOW-SP-MIB';
|
||||
|
||||
$cache_mempool = snmp_get_multi_oid($device, "devicePhysicalMemory.0 devicePhysicalMemoryInUse.0", array(), $mib);
|
||||
|
||||
$mempool['total'] = $cache_mempool[$index]['devicePhysicalMemory'];
|
||||
$mempool['used'] = $cache_mempool[$index]['devicePhysicalMemoryInUse'];
|
||||
|
||||
// EOF
|
34
includes/polling/mempools/s5-chassis-mib.inc.php
Normal file
34
includes/polling/mempools/s5-chassis-mib.inc.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'S5-CHASSIS-MIB';
|
||||
|
||||
$oids = array('s5ChasUtilMemoryTotalMB', 's5ChasUtilMemoryAvailableMB');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$mempool['total'] = $cache_mempool[$index]['s5ChasUtilMemoryTotalMB'];
|
||||
$mempool['free'] = $cache_mempool[$index]['s5ChasUtilMemoryAvailableMB'];
|
||||
$mempool['used'] = $mempool['total'] - $mempool['free'];
|
||||
|
||||
// EOF
|
35
includes/polling/mempools/smartnode-mib.inc.php
Normal file
35
includes/polling/mempools/smartnode-mib.inc.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'SMARTNODE-MIB';
|
||||
|
||||
$oids = array('memFreeBytes', 'memAllocatedBytes');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['total'] = $cache_mempool[$index]['memFreeBytes'] + $cache_mempool[$index]['memAllocatedBytes'];
|
||||
$mempool['used'] = $cache_mempool[$index]['memAllocatedBytes'];
|
||||
$mempool['free'] = $cache_mempool[$index]['memFreeBytes'];
|
||||
|
||||
// EOF
|
31
includes/polling/mempools/timetra-system-mib.inc.php
Normal file
31
includes/polling/mempools/timetra-system-mib.inc.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'TIMETRA-SYSTEM-MIB';
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach (array('sgiMemoryAvailable', 'sgiMemoryUsed', 'sgiMemoryPoolAllocated') as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$mempool['total'] = $cache_mempool[$index]['sgiMemoryAvailable'] + $cache_mempool[$index]['sgiMemoryPoolAllocated'];
|
||||
$mempool['used'] = $cache_mempool[$index]['sgiMemoryUsed'];
|
||||
|
||||
// EOF
|
52
includes/polling/mempools/ucd-snmp-mib.inc.php
Normal file
52
includes/polling/mempools/ucd-snmp-mib.inc.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if ($mempool['mempool_index'] == "swap")
|
||||
{
|
||||
|
||||
// this is for swap
|
||||
|
||||
$data = snmp_get_multi_oid($device, 'memTotalSwap.0 memAvailSwap.0', [], 'UCD-SNMP-MIB');
|
||||
$data = $data[0];
|
||||
|
||||
$mempool['total'] = $data['memTotalSwap'] * 1024;
|
||||
$mempool['free'] = $data['memAvailSwap'] * 1024;
|
||||
$mempool['used'] = $mempool['total'] - $mempool['free'];
|
||||
$mempool['perc'] = percent($mempool['free'], $mempool['total'], FALSE);
|
||||
|
||||
}
|
||||
elseif ($mempool['mempool_hc'])
|
||||
{
|
||||
$data = snmp_get_multi_oid($device, 'memTotalReal.0 memAvailReal.0', array(), 'UCD-SNMP-MIB');
|
||||
$data = $data[0];
|
||||
|
||||
$mempool['total'] = $data['memTotalReal'] * 1024;
|
||||
$mempool['free'] = $data['memAvailReal'] * 1024;
|
||||
$mempool['used'] = $mempool['total'] - $mempool['free'];
|
||||
$mempool['perc'] = percent($mempool['free'], $mempool['total'], FALSE);
|
||||
} else {
|
||||
|
||||
// Not doing swap, so do memory!
|
||||
|
||||
//$data = snmpwalk_cache_oid($device, "mem", array(), "UCD-SNMP-MIB");
|
||||
$data = snmp_get_multi_oid($device, 'memTotalReal.0 memAvailReal.0 memBuffer.0 memCached.0', array(), 'UCD-SNMP-MIB');
|
||||
$data = $data[0];
|
||||
|
||||
$mempool['total'] = $data['memTotalReal'] * 1024;
|
||||
//$mempool['free'] = $data['memAvailReal'] * 1024;
|
||||
$mempool['free'] = ($data['memAvailReal'] + ($data['memBuffer'] + $data['memCached'])) * 1024;
|
||||
$mempool['used'] = $mempool['total'] - $mempool['free'];
|
||||
$mempool['perc'] = percent($mempool['free'], $mempool['total'], FALSE);
|
||||
}
|
||||
|
||||
// EOF
|
40
includes/polling/mempools/zhone-card-resources-mib.inc.php
Normal file
40
includes/polling/mempools/zhone-card-resources-mib.inc.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'ZHONE-CARD-RESOURCES-MIB';
|
||||
echo("$mib ");
|
||||
|
||||
//ZHONE-CARD-RESOURCES-MIB::cardRuntimeTable
|
||||
//ZHONE-CARD-RESOURCES-MIB::cardPeakMemUsage.1.1 = INTEGER: 80762
|
||||
//ZHONE-CARD-RESOURCES-MIB::cardAvailMem.1.1 = INTEGER: 145131
|
||||
//ZHONE-CARD-RESOURCES-MIB::cardTotalMem.1.1 = INTEGER: 225421
|
||||
//ZHONE-CARD-RESOURCES-MIB::cardMemStatus.1.1 = INTEGER: ramMemOK(1)
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach (array('cardAvailMem', 'cardTotalMem') as $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
$mempool['free'] = $cache_storage[$mib][$index]['cardAvailMem'];
|
||||
$mempool['total'] = $cache_storage[$mib][$index]['cardTotalMem'];
|
||||
|
||||
unset ($index, $oid);
|
||||
|
||||
// EOF
|
38
includes/polling/mempools/zxr10-mib.inc.php
Normal file
38
includes/polling/mempools/zxr10-mib.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'ZXR10-MIB';
|
||||
$oids = array('perc' => 'zxr10SystemMemUsed',
|
||||
'total' => 'zxr10SystemMemSize');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$mempool[$param] = $cache_mempool[$index][$oid];
|
||||
}
|
||||
|
||||
unset ($index, $oid, $oids);
|
||||
|
||||
// EOF
|
38
includes/polling/mempools/zyxel-sys-memory-mib.inc.php
Normal file
38
includes/polling/mempools/zyxel-sys-memory-mib.inc.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$mib = 'ZYXEL-SYS-MEMORY-MIB';
|
||||
$oids = array('used' => 'zySysMemoryPoolUsedSize',
|
||||
'total' => 'zySysMemoryPoolTotalSize');
|
||||
|
||||
if (!is_array($cache_storage[$mib]))
|
||||
{
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$cache_mempool = snmpwalk_cache_oid($device, $oid, $cache_mempool, $mib);
|
||||
}
|
||||
$cache_storage[$mib] = $cache_mempool;
|
||||
} else {
|
||||
print_debug("Cached!");
|
||||
$cache_mempool = $cache_storage[$mib];
|
||||
}
|
||||
|
||||
$index = $mempool['mempool_index'];
|
||||
foreach ($oids as $param => $oid)
|
||||
{
|
||||
$mempool[$param] = $cache_mempool[$index][$oid];
|
||||
}
|
||||
|
||||
unset ($index, $oid, $oids);
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user