From owner-freebsd-stable@FreeBSD.ORG Fri Jan 29 20:59:41 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2490B1065679 for ; Fri, 29 Jan 2010 20:59:41 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id A67278FC1D for ; Fri, 29 Jan 2010 20:59:40 +0000 (UTC) Received: by fxm27 with SMTP id 27so735038fxm.3 for ; Fri, 29 Jan 2010 12:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:cc:subject:references :organization:from:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=9wqwXrxyAzkna5dsTuTG9I6iHxmKL1UfH1swP4aAMkY=; b=Y1m8clUmkhglIUNHM3XQLa89KF22+dGHwIQLmZn/sy5HQJHouFzNXPSAZzMqjkK+/5 jZVhJFWeR+OHS/5KCHVCkTZPFeOV3ucYfulD+ergm0PA6nX6Lqru6RcQCwI7S9b9xJLU +vQ3OPpJxKm0H/YhA5LHEnoq8SeVZNolUFb/w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:references:organization:from:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; b=xAdX8D4fiFyYqiruuvPjmqh0ktObhT1edsVLBpWI8eyYEeezYYyugiPQB7fZTwwWB/ iBSsLzb3dwv/CgVs2ddDlCcaawzryNt5Yk3g2JP0WGLUxjQHztU/p5YGwsB8gkdH7RtR 3Uehg5TgeoCJFovmAuHiUncKsCNmyV0O+4DrA= Received: by 10.102.17.4 with SMTP id 4mr758323muq.4.1264798779226; Fri, 29 Jan 2010 12:59:39 -0800 (PST) Received: from localhost ([95.69.163.7]) by mx.google.com with ESMTPS id w5sm10795276mue.52.2010.01.29.12.59.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Jan 2010 12:59:38 -0800 (PST) To: Gustau =?iso-8859-1?Q?P=E9rez?= References: <4B62C890.3020802@entel.upc.edu> Organization: TOA Ukraine From: Mikolaj Golub Date: Fri, 29 Jan 2010 22:59:36 +0200 In-Reply-To: <4B62C890.3020802@entel.upc.edu> ("Gustau =?iso-8859-1?Q?P=E9?= =?iso-8859-1?Q?rez=22's?= message of "Fri\, 29 Jan 2010 12\:37\:52 +0100") Message-ID: <86ljfg7hl3.fsf@kopusha.onet> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: bsnmpd returns incorrect hrProcessorLoad values X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2010 20:59:41 -0000 On Fri, 29 Jan 2010 12:37:52 +0100 Gustau P=E9rez wrote: > Hi, > > I'm using cacti to monitor some servers running FBSD. I was using 7.2 > with SCHED_4BSD. With this configuration : bsnmpd+bsnmp-ucd was > returning right values for the cores' load. > > I recently updated the servers (via csup) to RELENG_8 and bsnmpd is > returning negative values for the cores' load. If I try something like > in a 4-core system : > > snmpwalk -v 2c -c community server .1.3.6.1.2.1.25.3.3.1 > > what I get is : > > .1.3.6.1.2.1.25.3.3.1.1.6 =3D OID: .0.0 > .1.3.6.1.2.1.25.3.3.1.1.10 =3D OID: .0.0 > .1.3.6.1.2.1.25.3.3.1.1.14 =3D OID: .0.0 > .1.3.6.1.2.1.25.3.3.1.1.18 =3D OID: .0.0 > .1.3.6.1.2.1.25.3.3.1.2.6 =3D INTEGER: -182 > .1.3.6.1.2.1.25.3.3.1.2.10 =3D INTEGER: -182 > .1.3.6.1.2.1.25.3.3.1.2.14 =3D INTEGER: -182 > .1.3.6.1.2.1.25.3.3.1.2.18 =3D INTEGER: -182 > > I tried and old bsnmpd-ucd (0.2.1, works fine in a 7,2 system) with a > 8.0 system. Same wrong results. And it seems bsnmpd in /usr/src/contrib > has not changed between 7.2 and 8.0. > > Any ideas ? I'm not an expert, but with tcpdump I see different > results. Against an old 7.2 system, the field related to each core load > gives the right value. Instead, against and 8.0 system, those field show > (in hex) values like fd 4b. What I don't know is how bsdnmp-ucb retrives > those values and how it construct the udp response packet. bsnmpd-ucd has nothing to do with HOST-RESOURCES-MIB. These mibs are provid= ed by snmp_hostres(3) module (/usr/lib/snmp_hostres.so). So something wrong is there (I suppose it is not in sync with some recent changes in kernel or libkvm). --=20 Mikolaj Golub