Page 1 of 1

Apply Configuration never completes

Posted: Wed Jan 13, 2016 9:26 am
by ChathamDaleJ
Linux Distribution and version? CentOS release 6.7 (Final)
32 or 64bit? 64 bit
VMware Image or Manual Install of XI? VMware (Your image)
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? No proxy, using SSL Running headless runlevel 3
**If you are encountering multiple issues that may not be related, start a thread for each issue

I imported a number of services.

However, now once I apply configuration, the screen never comes back. I’m not sure what it is doing, The screen says “Waiting for configuration verification” and never comes back.

I do see that it seems to be stuck in /usr/local/nagiosxi/html/includes/components/nagioscorecfg/applyconfig.php

Looping between line 177 and 266, waiting for a command result around line 183.

I suspect the Nagios database, specifically the services table. I also suspect the fix is going to be:

Mysql –u nagiosxi –p < nagios-dump-file

I’m hoping we don’t have to do something quite that radical, but I’m not hopeful.

I was told to submit a ticket, but I cannot find the URL to your ticketing system.

Re: Apply Configuration never completes

Posted: Wed Jan 13, 2016 11:49 am
by jolson
If you'd like to submit a ticket for higher priority, you can do so by sending an email to [email protected] - or if you'd like to proceed here we can do that as well. Thank you!

Re: Apply Configuration never completes

Posted: Wed Jan 13, 2016 3:05 pm
by ChathamDaleJ
I did... yesterday. I'm getting desperate. Tomorrow I'm just going to restore the database. Is there anything in scripts to help, or just mysql to do it?

Re: Apply Configuration never completes

Posted: Wed Jan 13, 2016 3:24 pm
by jolson
The only script that we have available regarding the database are the following:
/usr/local/nagiosxi/scripts/restore_xi.sh - restore XI binaries and configuration, including the database. This is used in combination with backup files located at /store/backups/nagiosxi. This may be your quickest route to a working system.

/usr/local/nagiosxi/scripts/repair_databases.sh - this script will repair any crashed tables in your databases, but I suspect that this won't help in your situation, as the tables likely aren't crashed. There is no harm in attempting this route first if you're confident you will be restoring to the past anyway.

Let me know what you find out - thanks!

Jesse