initial commit; version 22.5.12042
This commit is contained in:
27
includes/discovery/mempools/peakflow-sp-mib.inc.php
Normal file
27
includes/discovery/mempools/peakflow-sp-mib.inc.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage discovery
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
//PEAKFLOW-SP-MIB::devicePhysicalMemory.0 = INTEGER: 8293156
|
||||
//PEAKFLOW-SP-MIB::devicePhysicalMemoryInUse.0 = INTEGER: 2493368
|
||||
//PEAKFLOW-SP-MIB::devicePhysicalMemoryUsage.0 = INTEGER: 30
|
||||
|
||||
if (!is_device_mib($device, 'HOST-RESOURCES-MIB')) // Memory pools already available in HOST-RESOURCES-MIB
|
||||
{
|
||||
$mempool_array = snmp_get_multi_oid($device, 'devicePhysicalMemory.0 devicePhysicalMemoryInUse.0', array(), $mib);
|
||||
|
||||
discover_mempool($valid['mempool'], $device, 0, 'PEAKFLOW-SP-MIB', 'Physical Memory', 1024, $mempool_array[0]['devicePhysicalMemory'], $mempool_array[0]['devicePhysicalMemoryInUse']);
|
||||
|
||||
unset ($mempool_array);
|
||||
}
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user