hi collectd list,<br><br>I am using a very minimal installation of collectd on a couple of servers.<br>Everything works perfectly so far, except for iptables plugin.<br><br>I am using collectd version 4.5.0 rpm install from Centos 5.2 (also tried 4.5.1 source version).<br>
<br>/etc/collectd.conf:<br><br>Hostname "localhost"<br>FQDNLookup false<br>BaseDir "/var/lib/collectd"<br>PIDFile "/var/run/collectd.pid"<br>Interval 10<br>ReadThreads 5<br>
<br>LoadPlugin logfile<br>LoadPlugin syslog<br>LoadPlugin cpu<br>LoadPlugin df<br>LoadPlugin interface<br>LoadPlugin iptables<br>LoadPlugin irq<br>LoadPlugin load<br>LoadPlugin memory<br>LoadPlugin rrdtool<br>LoadPlugin swap<br>
<br><Plugin rrdtool><br> DataDir "/var/lib/collectd/rrd"<br> CacheTimeout 120<br> CacheFlush 900<br></Plugin><br><br><Plugin iptables><br> Chain filter INPUT<br></Plugin><br><br># /etc/init.d/collectd start<br>
Starting collectd: [ OK ]<br><br># tail /var/log/messages<br>Jan 2 19:49:14 run23 collectd[25784]: iptables plugin: iptc_init (filte) failed: Table does not exist (do you need to insmod?)<br>Jan 2 19:49:14 run23 collectd[25784]: read-function of plugin `iptables' failed. Will suspend it for 10 seconds.<br>
<br>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.<br>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.<br>
<br>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:<br>Jan 2 19:48:57 run23 collectd[25007]: iptables plugin: iptc_init (filte) failed: iptables who? (do you need to insmod?)<br>
<br># iptables -L -v -n -t filter<br>Chain INPUT (policy ACCEPT 71278 packets, 8859K bytes)<br> pkts bytes target prot opt in out source destination <br> 9590 477K ACCEPT tcp -- * * <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://0.0.0.0/0">0.0.0.0/0</a> tcp dpt:80 flags:0x17/0x02 /* HTTP */ <br>
0 0 ACCEPT tcp -- * * <a href="http://0.0.0.0/0">0.0.0.0/0</a> xx.xxx.xxx.yyy tcp dpt:22 flags:0x17/0x02 <br> 0 0 ACCEPT tcp -- * * xx.xxx.xxx.yyy <a href="http://0.0.0.0/0">0.0.0.0/0</a> tcp dpt:54444 flags:0x17/0x02 <br>
3 402 ACCEPT udp -- * * xx.xxx.xxx.y <a href="http://0.0.0.0/0">0.0.0.0/0</a> udp spt:53 <br> 1 76 ACCEPT udp -- * * xx.xxx.xxx.yy <a href="http://0.0.0.0/0">0.0.0.0/0</a> udp spt:123 <br>
0 0 ACCEPT icmp -- * * xx.xxx.xxx.yy <a href="http://0.0.0.0/0">0.0.0.0/0</a> <br> 9 910 ACCEPT all -- lo * <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://0.0.0.0/0">0.0.0.0/0</a> <br>
3 144 REJECT tcp -- * * <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://0.0.0.0/0">0.0.0.0/0</a> tcp flags:0x17/0x02 reject-with icmp-port-unreachable <br> 37 6588 REJECT udp -- * * <a href="http://0.0.0.0/0">0.0.0.0/0</a> <a href="http://0.0.0.0/0">0.0.0.0/0</a> udp reject-with icmp-port-unreachable <br>
<br>Any help?<br>Thanks<br>Karolis<br><br>