Home » Categories » Products » Nagios XI » Documentation » Best Practices

Nagios XI - MRTG Clean Configs


This guide on Best Practices is about MRTG configuration files and considerations that need to be taken when using the Network Switch / Router wizard.


MRTG Clean Configs

Your MRTG configs may be collecting more than what you think.

In Nagios XI, the Network Switch / Router wizard uses MRTG to collect the monitoring data from the network device.

The configuration files for MRTG are created with the program cfgmaker. While you may have selected to only monitor a handful of ports from your network device, MRTG will collect data from all the interfaces. This creates extra network traffic and I/O.

  • /etc/mrtg/conf.d/*.cfg files

You can edit these MRTG config files and comment out the ports for which you do not need data to be collected for. Each port consists of about 37 lines in total.

Also you’ll find non-interfaces like VLANs, these can also be commented out, unless of course you want to monitor them.

You can run a command to see if MRTG is complaining about any of the configuration files:

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

 If this produces no output, you have clean configuration files.


When you no longer want to monitor the device, after removing the services from Core Configuration Manager, you'll also need to delete the .cfg file from the /etc/mrtg/conf.d/ directory to stop MRTG from collecting data.



Final Thoughts

For any support related questions please visit the Nagios Support Forums at:


0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - What Is Monitoring XI ?
Viewed 2223 times since Mon, May 2, 2016
Nagios XI - Macros and Custom Object Variables
Viewed 3776 times since Tue, May 3, 2016
Nagios XI - Monitoring the Nagios XI "localhost"
Viewed 3901 times since Mon, May 2, 2016
Nagios XI - Groups
Viewed 4341 times since Tue, May 3, 2016
Nagios XI - Check Interval Considerations
Viewed 3848 times since Tue, May 3, 2016
Nagios XI - Service Dependencies
Viewed 6113 times since Tue, May 3, 2016
Nagios XI - XI Server Considerations
Viewed 3756 times since Mon, May 2, 2016
Nagios XI - Best Practices for Managing Configs
Viewed 4924 times since Wed, Jul 19, 2017
Nagios XI - Configuration Wizards and Templates
Viewed 6347 times since Tue, May 3, 2016