<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Ben,<div class=""><br class=""></div><div class="">We just use the exec plugin of collect to throw all the stuff into <div class="">collectd and from there into graphite and from there to</div><div class="">Icinga/Nagios for monitoring/alarms.</div><div class=""><br class=""></div><div class="">It is super, super simple. Most people do that...</div><div class=""><br class=""></div><div class="">We are transitioning into influxdb/grafana instead but for the past</div><div class="">year or two the above are sufficient.</div><div class=""><br class=""></div><div class="">For the exec plugin, we just create one erb script, in Chef, which</div><div class="">sends out to the necessary systems, collects the items via the</div><div class="">templates/default/foobar.sh.erb, and which outputs them to</div><div class="">the stdout for the collectd parent process and from there up</div><div class="">to the collectd+graphite graphs/servers.</div><div class=""><br class=""></div><div class="">—Stuart</div><div class=""><br class=""></div><div class="">P.S. If you need to call me to get past the limitations of the</div><div class="">bandwidth of email, I am at 949-285-6573 (U.S.) during the day.</div><div class="">I’ll answer as available given the day-to-day. </div><div class=""><br class=""></div><div class="">Cheers.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 9, 2015, at 11:52 PM, Benjamin Schweikert <<a href="mailto:ben@beert.de" class="">ben@beert.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class=""><div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif" class=""><p class="">Ok Stuart, I try to narrow it down.</p><p class="">I am quite new to collectd and rrd and so I need some practical advice how I can get my collected data into collectd. I could do most of it with the iptables plugin, but how to handle the dynamic amount of ips? And the iptables plugin "only" shows the current speed [kbits/s] but not to total amount - is there a way to do this with the iptables plugin?</p><p class="">Another option would be to use the exec plugin, but how to solve the problem with the dynimc range of available ips?</p><p class="">Any hints like, "I solved it this way.." or something similar would be great!</p><div class=""> <br class="webkit-block-placeholder"></div><p class="">Best regards</p><p class="">Ben</p><p class="">Am 2015-04-10 08:45, schrieb Stuart Cracraft:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0" class=""><!-- html ignored --><!-- head ignored --><!-- meta ignored -->Ben,
<div class=""> </div>
<div class="">My immediate input is that your question is a bit general.</div>
<div class=""> </div>
<div class="">Please narrow it down.</div>
<div class=""> </div>
<div class="">—Stuart</div>
<div class=""><br class="">
<div class="">
<div class="">
<blockquote class="">
<div class="">On Apr 9, 2015, at 11:38 PM, Benjamin Schweikert <<a class="" href="mailto:ben@beert.de">ben@beert.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;"><!-- node type 8 --><!-- node type 8 --><!-- node type 8 --><!-- node type 8 --><!-- node type 8 --><!-- node type 8 --><p class="">Dear list,</p>
<div class="">I got a question on how to do this best. I wrote a (bash) script which executed every minute collects the traffic to and from external for each ip address and also calculates the overall traffic. The is based on iptables and based on the arp table. So every time the script es executed it checks what ips are available. A typical output would be something like this:</div>
<div class=""> </div>
<div class="">
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:01 192.168.2.1 0 0 28035 76</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:01 192.168.1.100 481 658 161480 131296</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:01 192.168.0.8 28 109 102670 13092</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:01 192.168.0.2 1366 29443 1340488 1767049</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:02 192.168.0.1 0 0 0 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:02 192.168.0.4 0 0 0 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:02 188.193.78.254 0 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:02 192.168.1.106 45 28 27471 1731</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:02 192.168.1.101 0 0 24662 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:03 192.168.0.9 5 8 25732 1108</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:03 192.168.0.3 0 0 0 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:03 192.168.0.5 0 0 0 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:03 192.168.1.107 0 0 0 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:04 192.168.0.176 0 0 3799 102</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:04 192.168.0.7 0 0 11845 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:04 192.168.2.2 0 0 0 0</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">2015.04.01-19:30:04 ALL 1925 30246 1726182 1914454</div>
</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"> </div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">$IP $UP $DOWN $TOTALUP $TOTALDOWN [bytes]</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"> </div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">What do you suggest to include this in collectd because I want to use a gui like CGP to visualize it. Currently I am creating my own rrd graphs but the rrd files are not compatible with the iptables plugin.</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"> </div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">Thanks for the help.</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;"> </div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">Best regards</div>
<div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">Ben</div>
<div class=""> </div>
<div class=""> </div>
</div>
_______________________________________________<br class="">collectd mailing list<br class=""><a class="" href="mailto:collectd@verplant.org">collectd@verplant.org</a><br class=""><a href="http://mailman.verplant.org/listinfo/collectd" class="">http://mailman.verplant.org/listinfo/collectd</a></div>
</blockquote>
</div>
</div>
</div>
</blockquote><div class=""> <br class="webkit-block-placeholder"></div>
<div class=""> </div>
</div>
</div></blockquote></div><br class=""></div></div></body></html>