Comments on: Munin traffic accounting with iptables https://backreference.org/2010/07/31/munin-traffic-accounting-with-iptables/ Proudly uncool and out of fashion Mon, 13 May 2013 18:40:04 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: hoedlmoser https://backreference.org/2010/07/31/munin-traffic-accounting-with-iptables/#comment-24769 Sun, 15 Jul 2012 20:06:23 +0000 http://backreference.org/?p=2284#comment-24769 In reply to waldner.

as I've been searching for a traffic accounting I just found yours. many thanks for all your efforts.
and be sure its also working with munin 2.0, see it running on http://munin.rekmp.net/rekmp.net/echse.rekmp.net/traffic_accounting/index.html (not yet long and not that many traffic, ...)

]]>
By: waldner https://backreference.org/2010/07/31/munin-traffic-accounting-with-iptables/#comment-24724 Fri, 30 Dec 2011 08:58:32 +0000 http://backreference.org/?p=2284#comment-24724 In reply to Max.

This is what I have on a system where it works:

-rwxr-xr-x 1 root root 10584 2011-04-08 11:53 traffic_accounting

In the config file I have

[traffic_accounting]
user root
env.chain4 ACCT4
env.chain6 ACCT6

(the above may of course be different for you). Other than that, check that your firewall rules have appropriate description tags, for example:

-A ACCT4 -d 10.12.14.16/32 -p tcp -m tcp --dport 80 -m comment --comment "=tcp80_down= TCP to local 80"
-A ACCT4 -s 10.12.14.16/32 -p tcp -m tcp --sport 80 -m comment --comment "=tcp80_up="

and the same for the IPv6 accounting chain, if you have defined it. Also mind that the plugin was developed on munin 1.4, and although I haven't tried, I'm almost sure it won't work with munin 2.x.

]]>
By: Max https://backreference.org/2010/07/31/munin-traffic-accounting-with-iptables/#comment-24723 Thu, 29 Dec 2011 20:38:25 +0000 http://backreference.org/?p=2284#comment-24723 In reply to waldner.

Thank you! So, I did changed /etc/munin/plugin-conf.d/munin-node as you suggested, but I still get no stats. I can see empty images where graphs suppose to be. So, script works but doesn't provide graphs. Could it be because of wrong right settings?

Could you please tell me which rights and ownership I have to grand to to the script?

]]>
By: waldner https://backreference.org/2010/07/31/munin-traffic-accounting-with-iptables/#comment-24722 Thu, 29 Dec 2011 16:05:00 +0000 http://backreference.org/?p=2284#comment-24722 In reply to Max.

On most systems, that'll be where you configure all the plugins, eg /etc/munin/plugin-conf.d/munin-node or similar.

]]>
By: Max https://backreference.org/2010/07/31/munin-traffic-accounting-with-iptables/#comment-24720 Thu, 29 Dec 2011 15:08:51 +0000 http://backreference.org/?p=2284#comment-24720 Where have I put config? This on: [traffic_accounting]....

In which file?

]]>