move pbn mibs to subdirectory

This commit is contained in:
vitalisator
2016-08-07 11:40:37 +02:00
parent f1268848b0
commit 850c4a2f92
15 changed files with 25 additions and 12 deletions

View File

@@ -10,8 +10,9 @@ if ($device['os'] == 'pbn') {
// specified MIB supported since build 16607
if ($version[build] >= 16607) {
$perc = snmp_get($device, "NMS-MEMORY-POOL-MIB::nmsMemoryPoolUtilization.0", '-OUvQ');
$memory_available = snmp_get($device, "NMS-MEMORY-POOL-MIB::nmsMemoryPoolTotalMemorySize.0", '-OUvQ');
$mibdir = $config['mibdir'].'/pbn'.':'.$config['mibdir'];
$perc = snmp_get($device, 'nmsMemoryPoolUtilization.0', '-OUvQ', 'NMS-MEMORY-POOL-MIB', $mibdir);
$memory_available = snmp_get($device, 'nmsMemoryPoolTotalMemorySize.0', '-OUvQ', 'NMS-MEMORY-POOL-MIB', $mibdir);
$mempool['total'] = $memory_available;
if (is_numeric($perc)) {