0

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.

Caterpillar
  • 1,122
  • 2
  • 22
  • 47

1 Answers1

1

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.

Blue Warrior NFB
  • 611
  • 6
  • 17
  • 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 04:48