<div dir="ltr">Ah, never mind. User error. :)<div><br class="webkit-block-placeholder"></div><div>I needed to insert the rules into iptables, not append them. Now the traffic is flowing fine.</div><div><br class="webkit-block-placeholder">
</div><div>Thanks! Really impressed with collectd so far. :)</div><div><br class="webkit-block-placeholder"></div><div>-Brian</div><div><br><div class="gmail_quote">On Mon, Aug 4, 2008 at 1:50 PM, Brian Long <span dir="ltr"><<a href="mailto:brian@dotspots.com">brian@dotspots.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">In my test fleet (a mishmash of linux variants right now), I'm having trouble getting networking to work. I've verified with tcpdump that udp traffic is going from the clients to master. However, no rrd's are being generated on the master for the clients. How can I debug this?</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">server conf (simplified) -- a.b.c.d is master's ip:</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">LoadPlugin network</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">LoadPlugin rrdtool</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"><Plugin network></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"> Listen "a.b.c.d" "9999"</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"></Plugin></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">client conf (simplified):</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">LoadPlugin cpu</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">LoadPlugin df</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">LoadPlugin network</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"><Plugin network></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"> Server "a.b.c.d" "9999"</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"></Plugin></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">iptable commands I ran on master to open 9999 (x.y.z.w is client ip):</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">iptables -A INPUT -p udp -s x.y.z.w -d a.b.c.d --dport 9999 -j ACCEPT</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">iptables -A OUTPUT -p udp -d x.y.z.w -s a.b.c.d --sport 9999 -j ACCEPT</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">(client is open and does not need iptables tweaking right now)</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial;min-height:15.0px"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">How can one debug this? Is there any kind of debug logging I can apply to determine if the master is receiving the traffic? With tcpdump, I can verify that the machine has received the traffic. I don't know if it's making it through iptables, and if so, why is collectd not taking any action upon receiving it?</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial"><br></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">Thanks,</p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:13.0px Arial">
Brian</p></div>
</blockquote></div><br></div></div>