Page 1 of 3

Apply Configuration-Waiting For Verification

Posted: Wed Jan 31, 2018 8:40 pm
by hoegh
Hi,

We have recently Upgraded Nagios XI.Post-Upgradation we are facing issues for Apply Configuration for Adding up New Host and Services.
Waiting for configuration verification is the message display with no output. PFA snip for the issue.

Kindly advice procedure to fix the issue.

Thanks & Regards,
Mayur Jilla

Re: Apply Configuration-Waiting For Verification

Posted: Thu Feb 01, 2018 12:34 pm
by dwhitfield
Please take a look at https://support.nagios.com/kb/article.php?id=34 and let us know if that does not resolve your issue.

Re: Apply Configuration-Waiting For Verification

Posted: Fri Feb 02, 2018 3:13 am
by hoegh
Hi dwh,

I have executed the below commands and downloaded the file mentioned in the link you provided.
But issue dint resolved.Myself also troubleshooting .Kindly suggest some fix as ,it is affecting our business.
xecute the following commands (use your XI version download link in the wget command):

cd /tmp
wget https://assets.nagios.com/downloads/nag ... 2.9.tar.gz


Once downloaded you'll need to use the name of the downloaded file in the next command, in this example xi-5.2.9.tar.gz is the name being used:

tar xzf xi-5.2.9.tar.gz nagiosxi/nagiosxi/nagiosxi.sudoers --strip-components 2

This will have extracted a file called nagiosxi.sudoers and this file contains all the correct entries.

Run all these commands to fix your /etc/sudoers file to make sure it has all the correct entries:

grep -v NAGIOSXI /etc/sudoers > /etc/sudoers.new
mv -f /etc/sudoers.new /etc/sudoers
rm -rf /etc/sudoers.d/nagiosxi
sed -i 's/^Defaults requiretty/#Defaults requiretty/g' /etc/sudoers
cat /tmp/nagiosxi.sudoers >> /etc/sudoers
chmod 440 /etc/sudoers

Run this one last command to ensure the old lock file is removed:

rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock

PFB output after executing the above script:

[nagios@OSLMSnagios scripts]$ ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://loca lhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'subm it=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=c onfigadmin' -O nagiosql.login--2018-02-02 08:21:07-- http://localhost/nagiosxi/ includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.
NAGIOSQL LOGIN FAILED!



Thanks & Regards,
Neha Singh.

Re: Apply Configuration-Waiting For Verification

Posted: Fri Feb 02, 2018 11:26 am
by kyang
Could you PM or post your /etc/host file for us to review?



UPDATE: Received /etc/hosts file and shared with techs!

Re: Apply Configuration-Waiting For Verification

Posted: Mon Feb 05, 2018 7:47 am
by hoegh
Hi Kyang,

I have PM you /etc/hosts file.

Thanks & Reagrds,
Neha Singh.

Re: Apply Configuration-Waiting For Verification

Posted: Mon Feb 05, 2018 11:38 am
by kyang
Are you using a proxy? Possibly on a different port?

Any information on that would help.

Re: Apply Configuration-Waiting For Verification

Posted: Thu Feb 15, 2018 7:16 am
by hoegh
Hi,

No we are not using any proxy .
Kindly suggest some solution.

Thanks & Regards,
Neha Singh.

Re: Apply Configuration-Waiting For Verification

Posted: Thu Feb 15, 2018 11:33 am
by hoegh
Hi ,

As advised Post up-gradation to 5.4.12 we received these errors:

[root@xxxxxxx scripts]# ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=configadmin' -O nagiosql.login--2018-02-15 17:16:47-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.
NAGIOSQL LOGIN FAILED!

We would like to ask,if we need to install nagiosql or not.
Kindly suggest.

Thanks & Regards,
Neha Singh.

Re: Apply Configuration-Waiting For Verification

Posted: Thu Feb 15, 2018 2:44 pm
by kyang
No need to install anything for nagiosql.

Let's try doing something from the Config File Management in the CCM.

XI Home --> Configure --> Core Config Manager --> on the left side under "Tools" click Config File Management

Here you will, click Write --> Delete --> Write --> Verify --> Restart

If verify has any errors then please post them.

Re: Apply Configuration-Waiting For Verification

Posted: Fri Feb 16, 2018 5:51 am
by hoegh
Hi ,

We have performed the above steps in CCM .
All execution ran successfully .
Getting the same issue for Apply configuration,as its taking long time.

After execution also we are getting the same error :
HTTP request sent, awaiting response... 401 Authorization Required
Authorization failed.
NAGIOSQL LOGIN FAILED!


Kindly advice.

Thanks & Regards,
Neha Singh.