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.

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/



Article ID: 510
Created On: Tue, May 3, 2016 at 12:39 AM
Last Updated On: Tue, May 3, 2016 at 12:39 AM
Authored by: tlea

Online URL: https://support.nagios.com/kb/article/nagios-xi-mrtg-clean-configs-510.html