[collectd] problems with iptables plugin
Karolis D
list at pg.lt
Fri Jan 2 20:59:53 CET 2009
hi collectd list,
I am using a very minimal installation of collectd on a couple of servers.
Everything works perfectly so far, except for iptables plugin.
I am using collectd version 4.5.0 rpm install from Centos 5.2 (also tried
4.5.1 source version).
/etc/collectd.conf:
Hostname "localhost"
FQDNLookup false
BaseDir "/var/lib/collectd"
PIDFile "/var/run/collectd.pid"
Interval 10
ReadThreads 5
LoadPlugin logfile
LoadPlugin syslog
LoadPlugin cpu
LoadPlugin df
LoadPlugin interface
LoadPlugin iptables
LoadPlugin irq
LoadPlugin load
LoadPlugin memory
LoadPlugin rrdtool
LoadPlugin swap
<Plugin rrdtool>
DataDir "/var/lib/collectd/rrd"
CacheTimeout 120
CacheFlush 900
</Plugin>
<Plugin iptables>
Chain filter INPUT
</Plugin>
# /etc/init.d/collectd start
Starting collectd: [ OK ]
# tail /var/log/messages
Jan 2 19:49:14 run23 collectd[25784]: iptables plugin: iptc_init (filte)
failed: Table does not exist (do you need to insmod?)
Jan 2 19:49:14 run23 collectd[25784]: read-function of plugin `iptables'
failed. Will suspend it for 10 seconds.
It seems that for some reason iptables plugin reads the table name as
"filte" instead of "filter", like the last char is being cut off.
If I try to add additional char at the end of table name, for example
"filterr", then it seems like the table is found (there is no output in the
log file), but RRD file is not being created.
I also compiled the latest source version of collectd, and copied
iptables.so file to the plugins folder. The result is the same, only with
different error message:
Jan 2 19:48:57 run23 collectd[25007]: iptables plugin: iptc_init (filte)
failed: iptables who? (do you need to insmod?)
# iptables -L -v -n -t filter
Chain INPUT (policy ACCEPT 71278 packets, 8859K bytes)
pkts bytes target prot opt in out source
destination
9590 477K ACCEPT tcp -- * * 0.0.0.0/0
0.0.0.0/0 tcp dpt:80 flags:0x17/0x02 /* HTTP */
0 0 ACCEPT tcp -- * * 0.0.0.0/0
xx.xxx.xxx.yyy tcp dpt:22 flags:0x17/0x02
0 0 ACCEPT tcp -- * * xx.xxx.xxx.yyy
0.0.0.0/0 tcp dpt:54444 flags:0x17/0x02
3 402 ACCEPT udp -- * * xx.xxx.xxx.y
0.0.0.0/0 udp spt:53
1 76 ACCEPT udp -- * * xx.xxx.xxx.yy
0.0.0.0/0 udp spt:123
0 0 ACCEPT icmp -- * * xx.xxx.xxx.yy
0.0.0.0/0
9 910 ACCEPT all -- lo * 0.0.0.0/0
0.0.0.0/0
3 144 REJECT tcp -- * * 0.0.0.0/0
0.0.0.0/0 tcp flags:0x17/0x02 reject-with icmp-port-unreachable
37 6588 REJECT udp -- * * 0.0.0.0/0
0.0.0.0/0 udp reject-with icmp-port-unreachable
Any help?
Thanks
Karolis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090102/d0d94b54/attachment.htm
More information about the collectd
mailing list