working with default configuration files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

working with default configuration files

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: working with default configuration files

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked