2010-07-10 11:23:14 +00:00
|
|
|
<?php
|
|
|
|
|
2012-05-25 12:24:34 +00:00
|
|
|
// JUNOSe Processors
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($device['os'] == 'junose') {
|
|
|
|
echo 'JUNOSe : ';
|
2016-09-28 08:19:28 -05:00
|
|
|
$processors_array = snmpwalk_cache_double_oid($device, 'juniSystemModule', $processors_array, 'Juniper-System-MIB', 'junose');
|
2015-08-20 15:59:43 +02:00
|
|
|
d_echo($processors_array);
|
2010-07-10 11:23:14 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
foreach ($processors_array as $index => $entry) {
|
|
|
|
if ($entry['juniSystemModuleCpuUtilPct'] && $entry['juniSystemModuleCpuUtilPct'] != '-1') {
|
|
|
|
$entPhysicalIndex = $entry['juniSystemModulePhysicalIndex'];
|
|
|
|
$usage_oid = '.1.3.6.1.4.1.4874.2.2.2.1.3.5.1.3.'.$index;
|
|
|
|
$descr_oid = '.1.3.6.1.4.1.4874.2.2.2.1.3.5.1.6.'.$index;
|
|
|
|
$descr = $entry['juniSystemModuleDescr'];
|
|
|
|
$usage = $entry['juniSystemModuleCpuFiveMinAvgPct'];
|
2010-07-10 11:23:14 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if (!strstr($descr, 'No') && !strstr($usage, 'No') && $descr != '') {
|
|
|
|
discover_processor($valid['processor'], $device, $usage_oid, $index, 'junose', $descr, '1', $usage, $entPhysicalIndex, null);
|
|
|
|
}
|
|
|
|
}
|
2010-07-10 11:23:14 +00:00
|
|
|
}
|
2015-07-13 20:10:26 +02:00
|
|
|
} //end if
|
2010-07-10 11:23:14 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
unset($processors_array);
|