Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have configured MRTG on Ubuntu machine & Its working great. I have have configured it for our MPLS router. In that there are many ports which being monitored. I don't want all to be monitored. I want only 1-2 interfaces to be monitored.

Can anyone please tell me how to configure that.

share|improve this question
up vote 1 down vote accepted

It should be as simple as taking the unwanted interfaces out of your mrtg.cfg file. Each interface should have its own set of lines with a unique identifier, so remove the lines you don't want.

If you're using some kind of script to generate the mrtg.cfg file, then you'll have to look to that. If you're using the stock cfgmaker script, you can apply an interface filter with the --if-filter= command; the filter is a perl-regex that defines the interfaces you want to include.

share|improve this answer
Thanks Buddy!! It Worked, I removed the unwanted interfaces from mrtg.cfg & removed the graph from /var/www/mrtg/index.html. Now its looking clean & clear. – Caterpillar Nov 27 '12 at 4:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.