bsnmpd returns incorrect hrProcessorLoad values

Ulrich Spörlein uqs at spoerlein.net
Wed Jun 2 15:27:26 UTC 2010


On Wed, 03.02.2010 at 19:50:26 +0100, Gustau Pérez wrote:
> En/na Mikolaj Golub ha escrit:
> > On Fri, 29 Jan 2010 12:37:52 +0100 Gustau Pérez 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 = OID: .0.0
> >>         .1.3.6.1.2.1.25.3.3.1.1.10 = OID: .0.0
> >>         .1.3.6.1.2.1.25.3.3.1.1.14 = OID: .0.0
> >>         .1.3.6.1.2.1.25.3.3.1.1.18 = OID: .0.0
> >>         .1.3.6.1.2.1.25.3.3.1.2.6 = INTEGER: -182
> >>         .1.3.6.1.2.1.25.3.3.1.2.10 = INTEGER: -182
> >>         .1.3.6.1.2.1.25.3.3.1.2.14 = INTEGER: -182
> >>         .1.3.6.1.2.1.25.3.3.1.2.18 = INTEGER: -182

Guys,

can you please try the attached patch? I haven't yet tried it on an UP
system but it should mostly work. It is not finished though.

Regards,
Uli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bsnmpd.diff
Type: text/x-diff
Size: 3869 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100602/91911c9c/bsnmpd.bin


More information about the freebsd-stable mailing list