Waiting for configuration verification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bns
Posts: 11
Joined: Fri Nov 02, 2012 10:08 am

Waiting for configuration verification

Post by bns »

I am running

full=2012R2.7
major=2012
minor=R2.7
releasedate=2013-11-26
release=316

When ever I try adding a new machine or changing existing configuration and try to apply the configuration I receive;

Command submitted for processing...
Waiting for configuration verification..... (Fail)
Backend login to the Core Config Manager failed.

I tried a few things for some posts here in the fourms (http://support.nagios.com/forum/viewtop ... 3&start=10) and now when I try to apply it's stuck at Waiting for configuration verification ............ .... and the dots keep going

Any help would be greatly appreciated
Last edited by bns on Thu Oct 30, 2014 4:27 pm, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Waiting for configuration verification

Post by slansing »

Can you run the following and then send us the output file?:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh > /tmp/reconfig.txt
bns
Posts: 11
Joined: Fri Nov 02, 2012 10:08 am

Re: Waiting for configuration verification

Post by bns »

[root@nagiosfp tmp]# more reconfig.txt
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Lo
gin&tfUsername=nagiosxi&tfPassword=correct password' -O nagiosql.loginNAGIOSQL LOGIN FAILED!

Note** I changed the password to correct password.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Waiting for configuration verification

Post by lmiltchev »

Run the following command and show us the output:

Code: Select all

ll /usr/local/nagiosxi/scripts/nagiosql*
Are you using a proxy?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bns
Posts: 11
Joined: Fri Nov 02, 2012 10:08 am

Re: Waiting for configuration verification

Post by bns »

-rw-r----- 1 root root 153 Oct 30 12:46 nagiosql.cookies
-rw-r-----. 1 nagios nagios 272368 Jan 10 2014 nagiosql_defaults.sql
-rwxr-x---. 1 nagios nagios 970 Jan 10 2014 nagiosql_delete_contact.php
-rw-r----- 1 root root 17602 Oct 30 07:00 nagiosql.delete.host
-rwxr-x---. 1 nagios nagios 2010 Jan 10 2014 nagiosql_delete_host.php
-rwxr-x---. 1 nagios nagios 505 Jan 10 2014 nagiosql_delete_object.sh
-rw-r----- 1 root root 30689 Oct 30 07:00 nagiosql.delete.service
-rwxr-x---. 1 nagios nagios 2867 Jan 10 2014 nagiosql_delete_service.php
-rwxr-x---. 1 nagios nagios 993 Jan 10 2014 nagiosql_delete_timeperiod.php
-rw-r----- 1 root root 7400 Oct 30 07:00 nagiosql.export.additional
-rwxr-x---. 1 nagios nagios 1637 Jan 10 2014 nagiosql_exportall.php
-rw-r----- 1 root root 7096 Oct 30 07:00 nagiosql.export.monitoring
-rwxr-x---. 1 nagios nagios 1323 Jan 10 2014 nagiosql_importall.php
-rw-r----- 1 root root 49592 Oct 30 07:00 nagiosql.import.monitoring
-rw-r----- 1 root root 116 Oct 30 12:46 nagiosql.login
-rwxr-x---. 1 nagios nagios 1847 Jan 10 2014 nagiosql_login.php
-rwxr-x--- 1 nagios nagios 2246 Jan 10 2014 nagiosql_snapshot.sh
-rwxr-x---. 1 nagios nagios 258 Jan 10 2014 nagiosql_trim_backups.sh
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Waiting for configuration verification

Post by lmiltchev »

Run the following commands:

Code: Select all

cd /usr/local/nagiosxi/scripts
chown nagios:nagios nagiosql*
chmod 775 nagiosql*
See if this is going to fix your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bns
Posts: 11
Joined: Fri Nov 02, 2012 10:08 am

Re: Waiting for configuration verification

Post by bns »

Ok... this got us back to where I first started;


Command submitted for processing...
Waiting for configuration verification....
Backend login to the Core Config Manager failed.

That fix the "Perpetual" Waiting for configuration verification ..................................... issue.
-
However,The "Backend login to the core configuration manager failed" is still not allowing the process to complete.
bns
Posts: 11
Joined: Fri Nov 02, 2012 10:08 am

Re: Waiting for configuration verification

Post by bns »

Do you think upgrading to a newer version might fix this?

I kind of get the feeling this is the type of problem that would show up even through the upgrade. (Subsequently making it harder to troubleshoot)

Your thoughts :?:
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Waiting for configuration verification

Post by slansing »

While it is possible an update may help, the issue is likely to persist through an update. Are you forcing SSL on the server? Are you using an offloaded mysql database?

Can you run the following for a few seconds and then post the output?:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt
In /etc/php.ini, what are the following values set to?:

Code: Select all

max_execution_time

max_input_time

memory_limit
bns
Posts: 11
Joined: Fri Nov 02, 2012 10:08 am

Re: Waiting for configuration verification

Post by bns »

............................
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated

PROCESSED 0 COMMANDS
ssword for user nagiosadmin
OUTPUT=
RETURNCODE=0
.................................PROCESSING COMMAND ID 981...
PROCESS COMMAND: CMD=17, DATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosql/index.php
CMDLINE
--2014-10-31 23:02:46-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 116 [text/html]
Saving to: `nagiosql.login'

0K 100% 15.8M=0s

2014-10-31 23:02:46 (15.8 MB/s) - `nagiosql.login' saved [116/116]

/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --n
o-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=correct_password' -O nagiosql.login
NAGIOSQL LOGIN FAILED!
OUTPUT=/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.
php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=correct_password' -O nagiosq
l.loginNAGIOSQL LOGIN FAILED!
RETURNCODE=2
____________________________________________________________________________________________________________________
Re your question about the values in the php.ini file;

; max_input_time
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
---------------------------------------------------
max_input_time = 30
---------------------------------------------------
memory_limit = 128M
Locked