[collectd] Problems with 'traffic' plugin

Florian Forster octo at verplant.org
Thu May 4 23:34:13 CEST 2006

Hi Sune,

On Thu, May 04, 2006 at 08:04:51PM +0200, Sune Marcher wrote:
> [getifaddrs] Do I need any special kernel config, system setup, or
> whatnot?

not that I know of.. `getifaddrs' is, apparenty, a BSD function
originally that was adapted by the glibc people..

> And do you guys use getifaddrs() for traffic, or do you depend on
> /proc/net/dev parsing? And if getifaddrs() works for you, what
> distro/kernel/etc do you use?

I successfully use `getifaddrs' on Debian Sarge (x86, powerpc and
sparc; glibc 2.3.2), Debian Sid (x86; glibc 2.3.6) and Mac OS X Tiger
(10.4.6; BSD libc of unknown version).

> I hand-edited config.h to make traffic use the proc-parsing instead of
> getifaddrs(), and that _does_ work (duh). And I guess that it gives
> the exact same data as getifaddrs(), so I should be happy. But getting
> at the data without harving to parse text would just feel better :)

That's why I made i the default for Linux in the first place ;) Sorry I
don't know what the matter is though. If more people are having the same
problem I'll just make proc-parsing the default again (possibly with a
configure option to change this).. Anyone?

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20060504/98aa45da/attachment.pgp

More information about the collectd mailing list