From 9fb7b30ed87668ab70a0656ca6add60879e6d522 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 21 Feb 2010 14:55:15 +0000 Subject: [PATCH] cleanup junos processor detection git-svn-id: http://www.observium.org/svn/observer/trunk@919 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/processors-junos.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/processors-junos.inc.php b/includes/discovery/processors-junos.inc.php index e82d6c2ed..7e3289227 100755 --- a/includes/discovery/processors-junos.inc.php +++ b/includes/discovery/processors-junos.inc.php @@ -12,7 +12,7 @@ if($device['os'] == "junos") if(is_array($processors_array[$device['device_id']])) { foreach($processors_array[$device['device_id']] as $index => $entry) { if($entry['jnxOperatingDRAMSize'] && !strpos($entry['jnxOperatingDescr'], "sensor") && !strstr($entry['jnxOperatingDescr'], "fan")) { - echo($index . " " . $entry['jnxOperatingDescr'] . " -> " . $entry['jnxOperatingCPU'] . " -> " . $entry['jnxOperatingDRAMSize'] . "\n"); + if ($debug) { echo($index . " " . $entry['jnxOperatingDescr'] . " -> " . $entry['jnxOperatingCPU'] . " -> " . $entry['jnxOperatingDRAMSize'] . "\n"); } $usage_oid = ".1.3.6.1.4.1.2636.3.1.13.1.8." . $index; $descr = $entry['jnxOperatingDescr']; $usage = $entry['jnxOperatingCPU'];