Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.