[collectd] How to compile my own plugin?

Florian Forster octo at verplant.org
Mon Dec 8 11:04:56 CET 2008


Hi Marco,

On Fri, Dec 05, 2008 at 07:47:42PM +0100, Marco Chiappero wrote:
> I modified the entropy plugin to get some uptime statistics but I
> don't know how to compile it. Yes, I've read
> http://collectd.org/development/build-system.shtml but honestly I
> think it's almost impossible to understand something useful without
> knowing how make, automake ecc... work.

yes, the autotools are somewhat weird to use. I've added some more
information to the site mentioned above, but it's mostly ``look for a
line similar to the one you need and copy and edit it.''

What exactly is your problem?

> Well, I'd like to suggest adding a plugin too: an ip6tables plugin. It
> should be easy being the iptables already implemented but I'm not sure
> whether it is better to create a new plugin or modify the iptables one
> adding IPv6 functionality. Does it sound interesting?

Sure, sounds good :) Not sure whether or not this should be a separate
plugin. How would you configure the plugin if you added the
functionality to the existing `iptables' plugin?

> About the uptime plugin, I "created" it (well, I had to modify almost
> nothing :D) because I used to collect uptime on my own home server
> with rrdcollect (I'm moving to collectd ;), but if you find it
> interesting please include it in the upstream package.

To be honest, I don't quite see the point of ``uptime graphs''..
Wouldn't it be much easier just to add something like
  date >>/var/log/uptime.log
to your startup scripts?

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- 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/20081208/83c6f695/attachment.pgp 


More information about the collectd mailing list