initial commit; version 22.5.12042
This commit is contained in:
29
includes/discovery/mempools/f5-bigip-system-mib.inc.php
Normal file
29
includes/discovery/mempools/f5-bigip-system-mib.inc.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$tmm_memory = snmpwalk_cache_oid($device, 'sysTmmStatMemoryUsed', array(), $mib);
|
||||
$tmm_memory = snmpwalk_cache_oid($device, 'sysTmmStatMemoryTotal', $tmm_memory, $mib);
|
||||
|
||||
foreach ($tmm_memory as $index => $entry)
|
||||
{
|
||||
$total = $entry['sysTmmStatMemoryTotal'];
|
||||
if ($total == 0) continue;
|
||||
|
||||
$used = $entry['sysTmmStatMemoryUsed'];
|
||||
$descr = "TMM $index Memory";
|
||||
discover_mempool($valid['mempool'], $device, $index, 'F5-BIGIP-SYSTEM-MIB', $descr, 1, $total, $used);
|
||||
}
|
||||
|
||||
unset ($mempool_array, $index, $total, $used);
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user