Skip site navigation (1)Skip section navigation (2)
Date:      20 Nov 1996 20:04:35 GMT
From:      peter@spinner.DIALix.COM (Peter Wemm)
To:        freebsd-hackers@freebsd.org
Subject:   Re: Help: ucd-snmpd w/freebsd
Message-ID:  <56vo8j$irv$1@haywire.DIALix.COM>
References:  <199611182122.OAA09009@hemi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Mutt.19961118180324.jc@irbs.com>,
	jc@irbs.com (John Capo) writes:
> Quoting Ade Barkah (mbarkah@hemi.com):
>> Hello,
>> 
>> I'm getting rather frustrated trying to get an snmpd running for
>> FreeBSD 2.1 machines. Please help! =-) Problem: the interface counters 
>> never seem to get updated once snmpd is running. 
>> 
>> Example. (on a pretty busy system network-wise):
>> 
>> $ snmpget -v 1 localhost public interfaces.ifTable.ifEntry.ifInOctets.1
>> interfaces.ifTable.ifEntry.ifInOctets.1 = 558046531
>> 
>> (five minutes later)
>> 
>> $ snmpget -v 1 localhost public interfaces.ifTable.ifEntry.ifInOctets.1
>> interfaces.ifTable.ifEntry.ifInOctets.1 = 558046531
>> 
> 
> The result of the last request is cached by snmpd.  I haven't looked
> at the code to see if this is a feature or not.  Query another
> variable then query ifInOctets.1 again and you should see that it
> has changed.
>
> John Capo

I ran into this when setting up mrtg, and disabled the "optimisation" in
the snmpd code.  I was unsure whether to commit the patch to the ports
collection, it makes very little difference in cpu resource consumption
but certainly makes a lot of strange side effects disappear.

-Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56vo8j$irv$1>