Page 1 of 1

Waiting for configuration verification...

Posted: Mon Feb 09, 2015 12:51 am
by BMUoN
Hi,
I have installed Nagios XI as a pre-sale / proof of concept (which if it works well we will be purchasing an Enterprise license) and I have across across an issue.
When applying configuration either when adding a new host or a new host group I get "Waiting for configuration verification..." but it never completes. This is on a fresh and up to date RHEL 6 install using Nagios XI 2014R2.5.

I have applied the suggestions in the FAQ [1] without success (ie php.ini and /etc/hosts changes).
Preflight checks look ok [2]

Any advice would be appreciated.

[1] http://support.nagios.com/wiki/index.php/Nagios_XI:FAQs
[2] Preflight checks are all OK

Code: Select all

# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 24 services.
        Checked 3 hosts.
        Checked 2 host groups.
        Checked 0 service groups.
        Checked 3 contacts.
        Checked 2 contact groups.
        Checked 118 commands.
        Checked 9 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 3 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 9 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check

Re: Waiting for configuration verification...

Posted: Mon Feb 09, 2015 10:07 am
by abrist
What is the output of:

Code: Select all

grep manage_services /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh

Re: Waiting for configuration verification...

Posted: Mon Feb 09, 2015 4:11 pm
by BMUoN
# grep manage_services /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
./manage_services.sh restart nagios

Re: Waiting for configuration verification...

Posted: Mon Feb 09, 2015 6:24 pm
by scottwilkerson
There is a known bug in the current version if you are on CentOS 7

You can follow this post for resolution, new version will be out soon as well

http://support.nagios.com/forum/viewtop ... 27#p125127

Re: Waiting for configuration verification...

Posted: Mon Feb 09, 2015 10:13 pm
by BMUoN
Hi,
Thanks for the reply but I suspect that is for a different issue.
Nevertheless I applied the scripts, restarted the server and tested again. Unfortunately it didn't resolve the issue.

Re: Waiting for configuration verification...

Posted: Mon Feb 09, 2015 10:27 pm
by Box293
Open an ssh session to your Nagios XI host

Run these commands and send back the output:

Code: Select all

cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.sh

Re: Waiting for configuration verification...

Posted: Thu Feb 12, 2015 8:40 pm
by BMUoN
So just to make sure I haven't done anything stupid, I rolled back the system to a pre-install image and ran through the installation process again. I configured Nagios to use Active Directory for authentication and added one npre host to monitor. When I added the host the issue still occurred.

I the ran the commands as requested (above):

Code: Select all

cd /usr/local/nagiosxi/scripts/; ./reconfigure_nagios.sh

<snip>

Running pre-flight check on configuration data...

Checking objects...
        Checked 22 services.
        Checked 2 hosts.
        Checked 1 host groups.
        Checked 0 service groups.
        Checked 3 contacts.
        Checked 2 contact groups.
        Checked 118 commands.
        Checked 9 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 2 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 9 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios: done.
Starting nagios: done.
The host which I setup for monitoring is now visible in the "Host detail" page, however I still get the same results when I try to add new hosts (ie stuck on "Waiting for configuration verification"

Re: Waiting for configuration verification...

Posted: Thu Feb 12, 2015 9:33 pm
by Box293
Great to so we know it's just the Apply Configuration Process that has issues.

Here's some things to try:

At the command line type:

Code: Select all

grep manage_services /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
If the result starts with sudo, remove the "sudo" from the file:

Code: Select all

/usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
Change from:

Code: Select all

sudo ./manage_services.sh restart nagios
To:

Code: Select all

./manage_services.sh restart nagios
Save and try Apply Configuration now.

If that doesn't work, post your /etc/sudoers file and any files in /etc/sudoers.d/

Re: Waiting for configuration verification...

Posted: Sun Feb 15, 2015 9:08 pm
by BMUoN
Hi,
Thanks for the help. There is no sudo line in /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh

Following is /etc/sudoers (with munged usernames). There are no files in /etc/sudoers.d/

Code: Select all

User_Alias OPERADMINS = username1, username2, username3, username4, username5, username6, username7, username8, username9, username10, username11, username12, username13, username14, username15
Defaults    env_reset
Defaults    env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
                        LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
                        LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
                        LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
                        LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
                        _XKB_CHARSET XAUTHORITY"
root    ALL=(ALL)       ALL
%wheel  ALL=(ALL)       ALL
OPERADMINS      ALL=(ALL)       ALL
User_Alias      NAGIOSXI=nagios
User_Alias              NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/ndo2db status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/nmap *
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh

Re: Waiting for configuration verification...

Posted: Mon Feb 16, 2015 10:37 am
by abrist
BMUoN wrote:Thanks for the help. There is no sudo line in /usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
You will actually want to add "sudo" to line #44 if you are running cent/rhel 5 or 6. Edit :

Code: Select all

/usr/local/nagiosxi/scripts/restart_nagios_with_export.sh
Change line #44 from:

Code: Select all

./manage_services.sh restart nagios
To:

Code: Select all

sudo ./manage_services.sh restart nagios
The sudo needs to be removed on cent/rhel 7 systems.
Not: This all should be fixed in XI 2014r2.6.