Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Graphing Traffic With Munin's IP Plugin

DZone's Guide to

Graphing Traffic With Munin's IP Plugin

· DevOps Zone ·
Free Resource

Planning to extract out a few microservices from your monolith? Read this free guide to learn the best practice before you get started.

This is just a short post about using the Munin ip_ plugin to monitor traffic to and from particular hosts using iptables.

There are a number of posts that describe how to add the necessary rules to iptables for counting traffic to each host that you’re interested in. Unfortunately, they all suggest using rules which are the wrong way around. The correct rules should look like this (to monitor traffic to the host at 192.168.0.1):

-A INPUT -s 192.168.0.1
-A OUTPUT -d 192.168.0.1

All the resources I found quoted the rules above with the INPUT and OUTPUT chains switched, meaning no traffic would ever be recorded.

Learn how to measure the impact of every feature release on performance and customer experience metrics.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}