mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
more cleanups and reindents, still a lot to come
git-svn-id: http://www.observium.org/svn/observer/trunk@1836 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
global $valid_processor;
|
||||
|
||||
## JUNOSe Processors
|
||||
if($device['os'] == "junose")
|
||||
if ($device['os'] == "junose")
|
||||
{
|
||||
echo("JUNOSe : ");
|
||||
$processors_array = snmpwalk_cache_double_oid($device, "juniSystemModule", $processors_array, "Juniper-System-MIB" , $config['install_dir']."/mibs/junose");
|
||||
if($debug) { print_r($processors_array); }
|
||||
if ($debug) { print_r($processors_array); }
|
||||
|
||||
foreach ($processors_array as $index => $entry)
|
||||
foreach ($processors_array as $index => $entry)
|
||||
{
|
||||
if ($entry['juniSystemModuleCpuUtilPct'] && $entry['juniSystemModuleCpuUtilPct'] != "-1")
|
||||
{
|
||||
@@ -19,14 +19,14 @@ if($device['os'] == "junose")
|
||||
$descr = $entry['juniSystemModuleDescr'];
|
||||
$usage = $entry['juniSystemModuleCpuFiveMinAvgPct'];
|
||||
|
||||
if(!strstr($descr, "No") && !strstr($usage, "No") && $descr != "" )
|
||||
if (!strstr($descr, "No") && !strstr($usage, "No") && $descr != "" )
|
||||
{
|
||||
discover_processor($valid_processor, $device, $usage_oid, $index, "junose", $descr, "1", $usage, $entPhysicalIndex, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} ## End JUNOSe Processors
|
||||
|
||||
unset ($processors_array);
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user