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
This commit is contained in:
Tom Laermans
2012-04-04 17:50:55 +00:00
parent a239be3164
commit d16f4b30ae

View File

@@ -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);
}
}