Waiting for configuration verification - forever

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Waiting for configuration verification - forever

Post by iroy »

I make changes to my nagios configuration for monitoring a remote nagios server.

STEP 1.
ADDRESS: 192.168.1.48
URL: http://192.168.1.48:4321/nagiosxi/

STEP 2.
ADDRESS: 192.168.1.48
HOST NAME: node-0.attlocal.net
URL: http://192.168.1.48:4321/nagiosxi/
USERNAME: nagiosadmin
PASSWORD:

NAGIOS XI SERVER METRICS
Selected: Nagios XI Web Interface, Monitoring Daemons, Monitoring Jobs

SEND ALERT NOTIFICATIONS TO: MYSELF


Finally after hitting "Apply" getting - "Waiting for configuration verification" forever; seems to go into a never ending loop
Last edited by iroy on Thu Aug 04, 2016 5:04 pm, edited 1 time in total.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Waiting for configuration verification - forever

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: Waiting for configuration verification - forever

Post by iroy »

thanks so much sir.

https://support.nagios.com/kb/article.php?id=34
is most relevant and I did everything that the article said but problem persists.

"Waiting for configuration verification..........."
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Waiting for configuration verification - forever

Post by Box293 »

Can you run the following in an ssh session on your Nagios XI host.

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Then go into XI and Apply Configuration.

What output is produced in the SSH session?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: Waiting for configuration verification - forever

Post by iroy »

Thanks so much for trying to help.

Output of "tail -f /usr/local/nagiosxi/var/cmdsubsys.log" & other commands like "netstat -tulnp | grep 80", "nmap localhost" is below.


PROCESSED 0 COMMANDS
ONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2016-08-08 10:19:03-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:80... failed: Connection refused.
/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&username=nagiosxi&password=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
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&username=nagiosxi&password=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
RETURNCODE=2



vps@node-0:/usr/local/nagiosxi/var$ netstat -tulnp | grep 80
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::8082 :::* LISTEN 3718/java
udp6 0 0 2602:306:80af:9440::123 :::* -
udp6 0 0 fe80::ec4:7aff:fe72:123 :::* -


vps@node-0:/usr/local/nagiosxi/var$ nmap localhost

Starting Nmap 6.40 ( http://nmap.org ) at 2016-08-08 10:29 PDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00028s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 991 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
389/tcp open ldap
443/tcp open https
3306/tcp open mysql
4321/tcp open rwhois
5666/tcp open nrpe
8082/tcp open blackice-alerts
9200/tcp open wap-wsp

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Waiting for configuration verification - forever

Post by rkennedy »

Looks like the applyconfig is failing, possibly due to the localhost resolution.
/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&username=nagiosxi&password=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
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&username=nagiosxi&password=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
RETURNCODE=2
Can you post your /etc/hosts file, and also a screenshot of your Admin -> System Settings page?
Former Nagios Employee
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: Waiting for configuration verification - forever

Post by iroy »

Attaching Admin -> System Settings

root@vps-cl0:/home/vps# more /etc/hosts
127.0.0.1 localhost vps-cl0
127.0.1.1 vps-cl0

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Waiting for configuration verification - forever

Post by rkennedy »

The issue is it's trying to access localhost on port 80, not 4321. Take a look at the file /usr/local/nagiosxi/html/config.inc.php.

Change -

Code: Select all

$cfg['port_number'] = false;
to

Code: Select all

$cfg['port_number'] = 4321;
Does it work now?
Former Nagios Employee
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: Waiting for configuration verification - forever

Post by iroy »

Thanks rkennedy; it worked like a charm.

THANKS LOTS.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Waiting for configuration verification - forever

Post by tmcdonald »

Glad we could help! I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked