[collectd] IPTables Module

Sjoerd van der Berg harekiet<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>gmail.com
Thu Mar 1 09:02:41 CET 2007


My first attempt at a module for this is an iptables modules
This will try to read out the rules from iptables for a specific table
and chain.
It will go through the rules looking for ones with "comment" matches
and will use the comment as a base for the generated filename.

So basically looking for lines like
iptables -t mangle -A incoming -p tcp  -m comment --comment "tcp"
will generate a iptables-incoming/tcp.rrd file from the byte counters

There used to also be an account iptables module but that seems to
have been neglected, which would generate /proc entries for specific
rules, don't know what would work better.
Either way, this seems to work somewhat.

tar.gz has a diff, firewall script and the regular files
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iptables.tar.gz
Type: application/x-gzip
Size: 47409 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20070301/856ab9a0/iptables.tar-0001.bin


More information about the collectd mailing list