Remove all unneeded if($debug)-statements and replace them with d_echo . discovery dir..

This commit is contained in:
Mark Schouten
2015-08-21 16:10:01 +02:00
parent 4fa88bb928
commit 677a4f3f5f
89 changed files with 192 additions and 561 deletions
@@ -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') {