[collectd] Collecting more detail network statistics
Ulf Zimmermann
ulf at openlane.com
Tue Mar 3 18:41:44 CET 2009
> -----Original Message-----
> From: Bruno Prémont [mailto:bonbons at linux-vserver.org]
> Sent: 03/02/2009 09:30
> To: Ulf Zimmermann
> Cc: Florian Forster; collectd at verplant.org
> Subject: Re: [collectd] Collecting more detail network statistics
>
> On Mon, 02 March 2009 "Ulf Zimmermann" <ulf at openlane.com> wrote:
> > > > On Fri, Feb 27, 2009 at 12:10:10PM -0800, Ulf Zimmermann wrote:
> > > > > I am looking at how I could collect more detailed network
> > > (interface)
> > > > > statistics. Extra numbers I am interested in are (all on Linux
> > > > > database servers):
> > > >
> > > > > netstat -in
> > > >
> > > > Bruno already mentioned the Netlink plugin [0], I think it's
> > > > exactly what you want for interface errors.
> >
> > Hmmm, netlink is a problem under RedHat EL4 so far. Can't find a
> > libnetlink for it so far.
> >
> If RedHat is doing things similar to (Open)SuSE then the netlink
> package might even be named differently if available.
>
> For OpenSuSE I was missing netlink library as well but it did show up
> starting with 11.0 (libnlink) and 11.1 (libnetlink-devel)...
>
> For Gentoo the static library is not being installed either but it's
> pretty easy to fix with slightly modified ebuild.
>
> Bruno
Ok, here is what I did:
Downloaded iproute-2.6.9-4.EL4.src.rpm from rhn.redhat.com
Installed into my rpmbuild directory
Copied the iproute.spec file to libnetlink.spec
Changed the "Name: " to libnetlink
Changed under the %install section to only create the %{_includedir} and %{_libdir}
Changed under the %install section to only install lib/libnetlink.a and include/libnetlink.h
Changed under %files that only %{_includedir}/* and %{_libdir}/* are getting included
Removed most comments and replaced it with a based on iproute-2.6.9-4.EL4 to just build/package libnetlink
This let collectd configure with libnetlink and I am going to build a rpm now and test it on a machine.
More information about the collectd
mailing list