Re: ucdDiskIOMIB

"Mariusz Iwański" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
23-01-08, Dave Shield <[email protected]> napisał(a):
> On 23/01/2008, Mariusz Iwański <[email protected]> wrote:
> > I'm running on:
> > Linux version 2.4.31, gcc version 3.3.5
> >
> > After looking into diskio.c code I think that this is the problem.
> > There is no statistics in /proc/partitions and agent is looking for
> > them there.
> >
> > Is it possible to fix this without kernel compilation ???
>
> Ummm... possibly not.
> Checking the kernel code, the contents of this interface are
> provided by the routine part_show()   (in 'drivers/block/genhd.c').
>
> This starts:
>                   seq_puts(s, "major minor  #blocks  name"
> #ifdef CONFIG_BLK_STATS
>                            "     rio rmerge rsect ruse wio wmerge "
>                            "wsect wuse running use aveq"
> #endif
>                           "\n\n");
>
>
> and continues in a similar vein.
> And from Documentation/Configure.help,
>
> Per partition statistics in /proc/partitions
> CONFIG_BLK_STATS
>  If you say yes here, your kernel will keep statistical information
>  for every partition. The information includes things as numbers of
>  read and write accesses, the number of merged requests etc.
>
>  This is required for the full functionality of sar(8) and interesting
>  if you want to do performance tuning, by tweaking the elevator, e.g.
>
>  If unsure, say N.
>
>
>
> So it looks as if the 2.4.x kernel needs to be built with this option to
> provide the neccesary information to support the diskIO table.
>   If you can find an alternative interface to this data, then it might
> be possible to amend the diskIO module code accordingly.   But
> otherwise, you may need to recompile your kernel.
>
> The bottom line is that we can only report the information that's
> available.  The Net-SNMP agent isn't magic, and can't conjure
> statistics out of thin air!
>
> Dave
>

OK, so thats it, it will take me some time to switch to new
kernel.Serwer I'm working on is werry havy used so I cant just switch
it off :)

Thank you Dave for all your help and patience. See you in some time :)
on kernel 2.6  :)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.