mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir..
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
if ($device['os'] == 'ironware' || $device['os_group'] == 'ironware') {
|
||||
echo 'IronWare : ';
|
||||
$processors_array = snmpwalk_cache_triple_oid($device, 'snAgentCpuUtilEntry', $processors_array, 'FOUNDRY-SN-AGENT-MIB');
|
||||
if ($debug) {
|
||||
print_r($processors_array);
|
||||
}
|
||||
d_echo($processors_array);
|
||||
|
||||
foreach ($processors_array as $index => $entry) {
|
||||
if (($entry['snAgentCpuUtilValue'] || $entry['snAgentCpuUtil100thPercent']) && $entry['snAgentCpuUtilInterval'] == '300') {
|
||||
|
||||
Reference in New Issue
Block a user