From d16f4b30ae5f00c06bf8a313a28a80cc0828c342 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Wed, 4 Apr 2012 17:50:55 +0000 Subject: [PATCH] Lazy attempt to fix FS#189, reported by Bill Fenestro Fenner git-svn-id: http://www.observium.org/svn/observer/trunk@2954 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/processors-ucd-old.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/discovery/processors-ucd-old.inc.php b/includes/discovery/processors-ucd-old.inc.php index 470d6b8bf..330ed0993 100644 --- a/includes/discovery/processors-ucd-old.inc.php +++ b/includes/discovery/processors-ucd-old.inc.php @@ -10,10 +10,9 @@ if ($device['os_group'] == "unix" && $count == "0") $user = snmp_get($device, "ssCpuUser.0" , "-OvQ", "UCD-SNMP-MIB"); $idle = snmp_get($device, "ssCpuIdle.0" , "-OvQ", "UCD-SNMP-MIB"); - $percent = $system + $user + $idle; - - if (is_numeric($percent)) + if (is_numeric($system)) { + $percent = $system + $user + $idle; discover_processor($valid['processor'], $device, 0, 0, "ucd-old", "CPU", "1", $system+$user, NULL, NULL); } }