Automatic MRTG Configuration Management documentation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
TBT
Posts: 626
Joined: Wed May 18, 2011 1:26 pm

Automatic MRTG Configuration Management documentation

Post by TBT »

Where can we find documentation on the "Automatic MRTG Configuration Management" configuration option?
Nagios XI 2026R1.5 (8 Servers)
Nagios Fusion 2024R1.0.2
DoubleDoubleA
Posts: 317
Joined: Thu Feb 09, 2017 5:07 pm

Re: Automatic MRTG Configuration Management documentation

Post by DoubleDoubleA »

It turns out we don't have an external doc on that, however, while we address that gap, here's what we have internally:

As of XI 2024R1.2, users may opt in to automatic management of MRTG Configuration.

To opt in, go to Admin->System Config->System Settings->General. Check the box for "Automatic MRTG Configuration Management" and then "Update Settings".

You can see the MRTG configuration that XI expects to exist by going to Configure->CCM->Advanced->MRTG Files. If you have MRTG configuration which is missing from this page, you can run /usr/local/nagiosxi/scripts/import_mrtg_configuration.php to attempt an automatic scan.

Once imported, configuration file referenced are linked to a host. If the host is deleted, the file reference will also be deleted.
When you Apply Configuration, Nagios XI will only retain the MRTG files that are listed in the MRTG Files section of the CCM - any others will be deleted.
lyraellington121
Posts: 1
Joined: Fri Jul 10, 2026 2:02 am

Re: Automatic MRTG Configuration Management documentation

Post by lyraellington121 »

The note about Apply Configuration removing MRTG files that aren't listed in the CCM is especially helpful and easy to overlook. One question: if someone already has a number of manually maintained MRTG configuration files, is there a recommended migration process before enabling this option? I'd be interested to know whether it's best to run the import script first and verify everything in Configure → CCM → Advanced → MRTG Files before applying the configuration to avoid accidentally removing existing files.
gwalters
Posts: 1
Joined: Sun Jul 12, 2026 2:04 pm

Re: Automatic MRTG Configuration Management documentation

Post by gwalters »

lyraellington121 wrote: Fri Jul 10, 2026 2:06 am The note about Apply Configuration removing MRTG files that aren't listed in the CCM is especially helpful and easy to overlook. One question: if someone already has a number of manually maintained MRTG configuration files, is there a recommended migration process before enabling this option? I'd be interested to know whether it's best to run the import script first and verify everything in Configure → CCM → Advanced → MRTG Files before applying the configuration to avoid accidentally removing existing files.https://essaypay.com/blog/how-to-write-an-essay-fast/
That's definitely something people could easily miss so it's a really useful question to raise.
lvlDev
Posts: 2
Joined: Mon Apr 13, 2026 3:23 am

Re: Automatic MRTG Configuration Management documentation

Post by lvlDev »

Maybe a safer approach would be to back up all existing MRTG configuration files before enabling Automatic MRTG Configuration Management. Then run the import script, verify that all files appear in CCM, and only apply the configuration after confirming everything has been imported correctly.
Post Reply