> I am trying to poll my machine (localhost) every 1 sec for ipInReceives.
> Between the 6th and 7th second, there's a jump of (2342917-2342896=21).
> Is there any way by which i can make this more smooth.. i.e.
> how can i increase the frequency with which this counter is updated?
> do i have to change the agent code for doing this?
Yes - you have to change the code.
But it shouldn't be difficult.
If you take a look in the file 'mibgroup/mibII/ip.c' at the routine
'init_ip', you'll see a call to 'netsnmp_get_cache_handler'.
The first parameter ("IP_STATS_CACHE_TIMEOUT") is the length
of time that the IP statistic will be cached for.
I *think* that if you set this to 0, then the data will be loaded
afresh for every request. This will increase the load on the agent,
but will avoid this sort of jump.
Dave
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users