29 lines
749 B
PHP
29 lines
749 B
PHP
<?php
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage discovery
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
// Force10 M-Series
|
|
|
|
$processors_array = snmpwalk_cache_oid($device, 'chStackUnitCpuUtil5Min', [], $mib);
|
|
$processors_array = snmpwalk_cache_oid($device, 'chStackUnitSysType', $processors_array, $mib);
|
|
|
|
foreach ($processors_array as $index => $entry) {
|
|
$descr = 'Unit ' . ($index - 1) . ' ' . $entry['chStackUnitSysType'];
|
|
$oid = ".1.3.6.1.4.1.6027.3.19.1.2.8.1.4.$index";
|
|
$usage = $entry['chStackUnitCpuUtil5Min'];
|
|
|
|
discover_processor($valid['processor'], $device, $oid, $index, 'F10-M-SERIES-CHASSIS-MIB', $descr, 1, $usage);
|
|
}
|
|
|
|
unset($processors_array);
|
|
|
|
// EOF
|