Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2010 22:59:36 +0200
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        Gustau =?iso-8859-1?Q?P=E9rez?= <gperez@entel.upc.edu>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: bsnmpd returns incorrect hrProcessorLoad values
Message-ID:  <86ljfg7hl3.fsf@kopusha.onet>
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 %2B0100")
References:  <4B62C890.3020802@entel.upc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ljfg7hl3.fsf>