Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -5,9 +5,9 @@
*
* This file is part of Observium.
*
* @package observium
* @subpackage discovery
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @package observium
* @subpackage discovery
* @copyright (C) Adam Armstrong
*
*/
@ -28,23 +28,24 @@
//ISILON-MIB::nodePerCPUIdle.2 = Gauge32: 972
// Skip this processors discovery if HOST-RESOURCES-MIB discovered and exist
if (isset($valid['processor']['hr']) || isset($valid['processor']['hr-average'])) { return; }
if (isset($valid['processor']['hr']) || isset($valid['processor']['hr-average'])) {
return;
}
$processors_array = snmpwalk_cache_oid($device, 'nodePerCPUIdle', array(), 'ISILON-MIB');
$processors_array = snmpwalk_cache_oid($device, 'nodePerCPUIdle', [], 'ISILON-MIB');
//print_vars($processors_array);
$processors_count = count($processors_array);
foreach ($processors_array as $index => $entry)
{
$dot_index = ".{$index}";
$descr = 'Processor ' . strval($index - 1);
$oid_table = 'nodeCPUPerfTable';
$oid_name = 'nodePerCPUIdle';
$oid_num = ".1.3.6.1.4.1.12124.2.2.3.10.1.5{$dot_index}";
$usage = $entry[$oid_name];
$idle = 1;
foreach ($processors_array as $index => $entry) {
$dot_index = ".{$index}";
$descr = 'Processor ' . strval($index - 1);
$oid_table = 'nodeCPUPerfTable';
$oid_name = 'nodePerCPUIdle';
$oid_num = ".1.3.6.1.4.1.12124.2.2.3.10.1.5{$dot_index}";
$usage = $entry[$oid_name];
$idle = 1;
discover_processor($valid['processor'], $device, $oid_num, $oid_table . $dot_index, $oid_name, $descr, 10, $usage, NULL, NULL, $idle);
discover_processor($valid['processor'], $device, $oid_num, $oid_table . $dot_index, $oid_name, $descr, 10, $usage, NULL, NULL, $idle);
}
unset($processors_array, $dot_index, $entry, $descr, $oid_table, $oid_name, $oid_num, $usage, $idle);