mrtg.cfg empty after upgrade from 2012 to 2014

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

mrtg.cfg empty after upgrade from 2012 to 2014

Post by zaji_nms »

Dear Expert

Observed /etc/mrtg/mrtg.cfg nearly empty after upgrade from 2012 to 2014R2

Are this upgrade keeping copy somewhere before the removing contain (before upgrade)?

Regards
Zajil NMS
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: mrtg.cfg empty after upgrade from 2012 to 2014

Post by slansing »

We have split the main mrtg.cfg file into individual host configuration files for a number of reasons, most of them performance orientated. You will find them in the following directory:

Code: Select all

/etc/mrtg/conf.d/
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: mrtg.cfg empty after upgrade from 2012 to 2014

Post by zaji_nms »

Dear slansing

Please check my post :
/etc/mrtg/mrtg.cfg v/s /etc/mrtg/conf.d
URL : http://support.nagios.com/forum/viewtop ... 16&t=30215

I have commented (#Include: conf.d/*.cfg) , due to reason mentioned in the above Post.

Please let us know more or post URL that stating /etc/mrtg/conf.d is far better than /etc/mrtg/mrtg.cfg

but please read little lengthy previous Post

Regards
Zajil NMS
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: mrtg.cfg empty after upgrade from 2012 to 2014

Post by abrist »

zaji_nms wrote:Please let us know more or post URL that stating /etc/mrtg/conf.d is far better than /etc/mrtg/mrtg.cfg
This decision was made so that our scripts can perform cleanup of the configs properly. Your line additions are fine, but they should be located in a config in /etc/mrtg/conf.d as that is the new expected location for mrtg configs. Also, our upgrade script may try to move settings out of /etc/mrtg/mrtg.conf and into the conf.d directory.

There is a good chance those lines you added are now in conf.d.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: mrtg.cfg empty after upgrade from 2012 to 2014

Post by tmcdonald »

As for MRTG writing out the unselected configs, I can only say that this is a MRTG problem. The checkboxes are just for our services being created. It may be possible in a future revision to automatically remove the lines associated with the unselected interface.
Former Nagios employee
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: mrtg.cfg empty after upgrade from 2012 to 2014

Post by zaji_nms »

Dear Abrist, for new feature DEAD HOST REMOVAL , I think /etc/mrtg/conf.d easy to remove.

Dear tcmdonald, for NagiosXI developer, it matter of some hours to add that feature, then conf.d is good.

You can close the case.

Regards
Zajil NMS
Locked