mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@937 61d68cd4-352d-0410-923a-c4978735b2b8
21 lines
561 B
PHP
Executable File
21 lines
561 B
PHP
Executable File
<?php
|
|
|
|
if($device['os'] == "ios" || $device['os_type'] == "ios") {
|
|
|
|
echo("OLD-CISCO-MEMORY-POOL: ");
|
|
|
|
$cmp_oids = array('ciscoMemoryPool');
|
|
|
|
foreach ($cmp_oids as $oid) { $cmp_array = snmp_cache_oid($oid, $device, array(), "CISCO-MEMORY-POOL-MIB"); }
|
|
|
|
if(is_array($cmp_array)) {
|
|
foreach($cmp_array[$device[device_id]] as $index => $cmp) {
|
|
if(is_numeric($cmp['ciscoMemoryPoolUsed']) && is_numeric($index)) {
|
|
discover_mempool($valid_mempool, $device, $index, "cmp", $cmp['ciscoMemoryPoolName'], "1", NULL, NULL);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|