Page 1 of 1

working with default configuration files

Posted: Wed Dec 24, 2014 12:58 pm
by reincarne
Hi,
We created a script which generates default configuration file with checks. Then we added this default configuration file inside the nagios.cfg file.
When we run the script, everything is added to Nagios and we see all the checks under the Service Details. The problem is that we dont see it under the configuration options like rest of the checks.
Is there more effective way to work with default configuration file?

Re: working with default configuration files

Posted: Fri Dec 26, 2014 9:57 am
by scottwilkerson
reincarne wrote:Is there more effective way to work with default configuration file?
Yes! And I would do this with what you have added extra to you nagios.cfg file.

Make a new file with your changes and add the file to /usr/local/nagios/etc/import

Then run the following

Code: Select all

( cd /usr/local/nagiosxi/scripts/; ./reconfigure_nagios.sh )
this will import the file into the CCM and then restart the monitoring engine as well as take a backup that can be rolled back to in case of a problem.