26 lines
657 B
PHP
26 lines
657 B
PHP
<?php
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage discovery
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
$processors_array = snmpwalk_cache_oid($device, 'sgProxyCpuCoreBusyPerCent', [], 'BLUECOAT-SG-PROXY-MIB');
|
|
|
|
foreach ($processors_array as $index => $entry) {
|
|
$descr = ($index == 1) ? 'CPU' : 'CPU' . ($index - 1);
|
|
$oid = ".1.3.6.1.4.1.3417.2.11.2.4.1.8.$index";
|
|
$usage = $entry['sgProxyCpuCoreBusyPerCent'];
|
|
|
|
discover_processor($valid['processor'], $device, $oid, $index, 'cpu', $descr, 1, $usage);
|
|
}
|
|
|
|
unset($processors_array, $descr, $oid, $usage, $index, $entry);
|
|
|
|
// EOF
|