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
Apply Configuration-Waiting For Verification
Apply Configuration-Waiting For Verification
You do not have the required permissions to view the files attached to this post.
Thanks
Höegh
Höegh
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Apply Configuration-Waiting For Verification
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
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.
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.
Thanks
Höegh
Höegh
Re: Apply Configuration-Waiting For Verification
Could you PM or post your /etc/host file for us to review?
UPDATE: Received /etc/hosts file and shared with techs!
UPDATE: Received /etc/hosts file and shared with techs!
Last edited by kyang on Mon Feb 05, 2018 10:14 am, edited 1 time in total.
Reason: Shared with techs!
Reason: Shared with techs!
Re: Apply Configuration-Waiting For Verification
Hi Kyang,
I have PM you /etc/hosts file.
Thanks & Reagrds,
Neha Singh.
I have PM you /etc/hosts file.
Thanks & Reagrds,
Neha Singh.
Thanks
Höegh
Höegh
Re: Apply Configuration-Waiting For Verification
Are you using a proxy? Possibly on a different port?
Any information on that would help.
Any information on that would help.
Re: Apply Configuration-Waiting For Verification
Hi,
No we are not using any proxy .
Kindly suggest some solution.
Thanks & Regards,
Neha Singh.
No we are not using any proxy .
Kindly suggest some solution.
Thanks & Regards,
Neha Singh.
Thanks
Höegh
Höegh
Re: Apply Configuration-Waiting For Verification
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.
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.
Thanks
Höegh
Höegh
Re: Apply Configuration-Waiting For Verification
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.
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
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.
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.
Thanks
Höegh
Höegh