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
mrtg.cfg empty after upgrade from 2012 to 2014
-
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
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/
Re: mrtg.cfg empty after upgrade from 2012 to 2014
Dear slansing
Please check my post :
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
Please check my post :
URL : http://support.nagios.com/forum/viewtop ... 16&t=30215/etc/mrtg/mrtg.cfg v/s /etc/mrtg/conf.d
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
Re: mrtg.cfg empty after upgrade from 2012 to 2014
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.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
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.
"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.
Re: mrtg.cfg empty after upgrade from 2012 to 2014
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
Re: mrtg.cfg empty after upgrade from 2012 to 2014
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
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