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

Nagios XI - MRTG Clean Configs

Overview

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:

http://support.nagios.com/forum/

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 - Configuration Wizards and Templates
Viewed 9859 times since Tue, May 3, 2016
Nagios XI - Service Dependencies
Viewed 9725 times since Tue, May 3, 2016
Nagios XI - Monitoring the Nagios XI "localhost"
Viewed 7154 times since Mon, May 2, 2016
Nagios XI - Groups
Viewed 7821 times since Tue, May 3, 2016
Nagios XI - Best Practices for Managing Configs
Viewed 7634 times since Wed, Jul 19, 2017
Nagios XI - XI Server Considerations
Viewed 6524 times since Mon, May 2, 2016
Nagios XI - Macros and Custom Object Variables
Viewed 6569 times since Tue, May 3, 2016
Nagios XI - Check Interval Considerations
Viewed 6650 times since Tue, May 3, 2016
Nagios XI - What Is Monitoring XI ?
Viewed 3735 times since Mon, May 2, 2016