Waiting for configuration verification never ends.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Waiting for configuration verification never ends.

Post by suryakiran »

Hi,

We newly installed NagiosXI in a cleaned system, After the installation i saw 2 host-groups exists with names linux-servers and windows-servers.There were no other changes done, But after making it active i have clicked on the apply configuration which is taking long time and never ends.

Customer number:- 43636

Thanks,
Surya Kiran
Last edited by suryakiran on Tue Nov 06, 2018 12:18 pm, edited 1 time in total.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification never ends.

Post by npolovenko »

Hello, @suryakiran. Please run this command from the command line and post the output in the thread:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Waiting for configuration verification never ends.

Post by suryakiran »

[root@njbbngeoxp3v ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://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 12 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 1 contact groups.
Checked 124 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification never ends.

Post by npolovenko »

@suryakiran, This could be a suoers/permssion problem. Please run these commands and show me the output:
su - nagios
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Waiting for configuration verification never ends.

Post by suryakiran »

Thanks for your quick response, Please find the below output.

URL: https://localhost:4321/nagiosxi/include ... nents/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies https://localhost:4321/nagiosxi/include ... nents/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=4RW8B4BVjbWD' -O nagiosql.login--2018-11-06 12:26:26-- https://localhost:4321/nagiosxi/include ... nents/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:4321... failed: Connection refused.
NAGIOSQL LOGIN FAILED!
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Waiting for configuration verification never ends.

Post by suryakiran »

Please check the below output.

/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=4RW8B4BVjbWD' -O nagiosql.login--2018-11-06 12:38:15-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’

[ <=> ] 28,976 --.-K/s in 0.02s

2018-11-06 12:38:15 (1.59 MB/s) - ‘nagiosql.login’ saved [28976]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
[0] => FNAQOkUl.tmp.cfg
[1] => Njbbdcomrh230.nss.vzwnet.com.cfg
)
IMPORTING /usr/local/nagios/etc/import/FNAQOkUl.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/FNAQOkUl.tmp.cfg' -O nagiosql.import.monitoring
--2018-11-06 12:38:15-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.import.monitoring’

[ <=> ] 30,458 --.-K/s in 0.02s

2018-11-06 12:38:16 (1.78 MB/s) - ‘nagiosql.import.monitoring’ saved [30458]

IMPORTING /usr/local/nagios/etc/import/Njbbdcomrh230.nss.vzwnet.com.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/Njbbdcomrh230.nss.vzwnet.com.cfg' -O nagiosql.import.monitoring
--2018-11-06 12:38:16-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.import.monitoring’

[ <=> ] 30,311 --.-K/s in 0.02s

2018-11-06 12:38:16 (1.63 MB/s) - ‘nagiosql.import.monitoring’ saved [30311]

RESETTING PERMS
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=4RW8B4BVjbWD' -O nagiosql.login--2018-11-06 12:38:17-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’

[ <=> ] 29,417 --.-K/s in 0.01s

2018-11-06 12:38:18 (1.91 MB/s) - ‘nagiosql.login’ saved [29417]

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2018-11-06 12:38:18-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.export.monitoring’

[ <=> ] 21,860 --.-K/s in 0.02s

2018-11-06 12:38:18 (1.20 MB/s) - ‘nagiosql.export.monitoring’ saved [21860]

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://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 2 hosts.
Checked 2 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 8 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 8 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
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: root
Password: Failed to restart nagios.service: Connection timed out
See system logs and 'systemctl status nagios.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
-bash-4.2$ ● nagios.service - LSB: Starts and stops the Nagios monitoring server
Loaded: loaded (/etc/rc.d/init.d/nagios; bad; vendor preset: disabled)
Active: active (running) since Tue 2018-11-06 12:37:52 EST; 2min 14s ago
Docs: man:systemd-sysv-generator(8)
Process: 24466 ExecStop=/etc/rc.d/init.d/nagios stop (code=exited, status=0/SUCCESS)
Process: 24669 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=0/SUCCESS)
Main PID: 24691 (nagios)
CGroup: /system.slice/nagios.service
├─24691 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
├─24693 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24694 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24696 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24697 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24698 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24699 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24700 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24701 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24702 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24703 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24704 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24705 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24706 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24707 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24708 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24709 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24710 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24711 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24712 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24713 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24714 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24715 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24716 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24718 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24719 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24720 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24722 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24723 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24724 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24725 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24726 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24727 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24728 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24729 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24730 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24731 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24732 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24733 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24734 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24735 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24736 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24737 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24738 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24739 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24740 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24741 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24742 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
├─24743 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
└─24752 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification never ends.

Post by npolovenko »

@suryakiran, You have a polkit authentication agent running on this server, and its preventing the nagios user from having an access to the nagios service.
Authentication is required to manage system services or units.
Authenticating as: root
Password: Failed to restart nagios.service: Connection timed out
See system logs and 'systemctl status nagios.service' for details.
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Waiting for configuration verification never ends.

Post by suryakiran »

I have done the changes, I am able to execute the below command but through GUI mode its taking long time to execute and showing Waiting for configuration verification............

/usr/local/nagiosxi/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=4RW8B4BVjbWD' -O nagiosql.login--2018-11-06 14:41:08-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’

[ <=> ] 36,481 --.-K/s in 0.02s

2018-11-06 14:41:09 (1.59 MB/s) - ‘nagiosql.login’ saved [36481]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
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=4RW8B4BVjbWD' -O nagiosql.login--2018-11-06 14:41:09-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.login’

[ <=> ] 36,481 --.-K/s in 0.03s

2018-11-06 14:41:10 (1.25 MB/s) - ‘nagiosql.login’ saved [36481]

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2018-11-06 14:41:10-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nagiosql.export.monitoring’

[ <=> ] 22,065 --.-K/s in 0.03s

2018-11-06 14:41:10 (849 KB/s) - ‘nagiosql.export.monitoring’ saved [22065]

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL

Website: https://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.
Warning: Host 'njbbngeoxdw5av' has no default contacts or contactgroups defined!
Checked 3 hosts.
Checked 12 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 8 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 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 1
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
suryakiran
Posts: 34
Joined: Tue Nov 06, 2018 12:02 pm

Re: Waiting for configuration verification never ends.

Post by suryakiran »

I can also see this below.

To run as root, you can use a tool like sudo.
To set the setuid permissions, use the command:
chmod u+s yourpluginfile
check_icmp: Failed to obtain ICMP socket: Operation not permitted

-rwsrwxr-x 1 apache nagios 201856 Nov 5 12:05 check_dhcp
-rwsrwxr-x 1 apache nagios 213912 Nov 5 12:05 check_icmp
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Waiting for configuration verification never ends.

Post by npolovenko »

@suryakiran, Looks like the latest reconfigure_nagios script run completed successfully. Did you run it as the nagios user?
Please run the following commands:
service nagios stop
rm -f /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
service nagios start
Then execute this in the command line:
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
And while its running try to apply the configuration in the GUI.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked