Page 1 of 1

Waiting for configuration verification - forever

Posted: Thu Aug 04, 2016 5:02 pm
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

Re: Waiting for configuration verification - forever

Posted: Thu Aug 04, 2016 5:04 pm
by Box293

Re: Waiting for configuration verification - forever

Posted: Fri Aug 05, 2016 3:04 pm
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..........."

Re: Waiting for configuration verification - forever

Posted: Mon Aug 08, 2016 1:58 am
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?

Re: Waiting for configuration verification - forever

Posted: Mon Aug 08, 2016 12:49 pm
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

Re: Waiting for configuration verification - forever

Posted: Mon Aug 08, 2016 2:14 pm
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?

Re: Waiting for configuration verification - forever

Posted: Wed Sep 07, 2016 6:06 pm
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

Re: Waiting for configuration verification - forever

Posted: Thu Sep 08, 2016 10:11 am
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?

Re: Waiting for configuration verification - forever

Posted: Thu Sep 08, 2016 12:33 pm
by iroy
Thanks rkennedy; it worked like a charm.

THANKS LOTS.

Re: Waiting for configuration verification - forever

Posted: Thu Sep 08, 2016 4:22 pm
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!