27 lines
756 B
PHP
27 lines
756 B
PHP
<?php
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage discovery
|
|
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2023 Observium Limited
|
|
*
|
|
*/
|
|
|
|
$processors_array = snmpwalk_cache_oid($device, 'wlsxSysXProcessorTable', [], $mib);
|
|
|
|
foreach ($processors_array as $index => $entry) {
|
|
if (is_numeric($entry['sysXProcessorLoad']) && is_numeric($index)) {
|
|
$descr = $entry['sysXProcessorDescr'];
|
|
$usage = $entry['sysXProcessorLoad'];
|
|
$oid = ".1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.$index";
|
|
discover_processor($valid['processor'], $device, $oid, $index, 'WLSX-SWITCH-MIB', $descr, 1, $usage);
|
|
}
|
|
}
|
|
|
|
unset($processors_array, $index, $descr, $usage, $oid);
|
|
|
|
// EOF
|