Page 1 of 1
mrtg.cfg empty after upgrade from 2012 to 2014
Posted: Fri Dec 12, 2014 5:26 am
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
Re: mrtg.cfg empty after upgrade from 2012 to 2014
Posted: Fri Dec 12, 2014 10:04 am
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:
Re: mrtg.cfg empty after upgrade from 2012 to 2014
Posted: Sat Dec 13, 2014 12:58 pm
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
Re: mrtg.cfg empty after upgrade from 2012 to 2014
Posted: Mon Dec 15, 2014 11:22 am
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.
Re: mrtg.cfg empty after upgrade from 2012 to 2014
Posted: Mon Dec 15, 2014 11:25 am
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.
Re: mrtg.cfg empty after upgrade from 2012 to 2014
Posted: Mon Dec 15, 2014 12:25 pm
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