Configuration verification Hangs and never completes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
partners.nagios
Posts: 14
Joined: Thu Mar 29, 2012 10:13 am

Configuration verification Hangs and never completes

Post by partners.nagios »

Hi All,
I have setup a new NagiosXI VM running on VMWare Server (yes I converted it). When I run a wizard to add a windows server host, I get to the end and tell the wizard to finish and it hangs on:

Windows Server Monitoring Wizard

Configuration submitted for processing...
Waiting for configuration verification..................................................................................................


I found this document:

http://support.nagios.com/wiki/index.ph ... _Completes


And I tried changing the values in php.ini but no good. I also added a line to /etc/hosts that has my local nagios XI private IP address and it's hostname. Now a note on this, I am connecting to the nagiosxi server using a DNS name that points to a public IP address (not sure if that matters).

In /var/log/messages I am getting a bunch of logs that look like this:

[1333030578] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
[1333030609] Nagios 3.2.3 starting... (PID=1680)
[1333030609] Local time is Thu Mar 29 14:16:49 UTC 2012
[1333030609] LOG VERSION: 2.0
[1333030609] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1333030609] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
[1333030609] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1333030610] Finished daemonizing... (New PID=1681)
[1333030625] ndomod: Successfully connected to data sink. 471 queued items to flush.
[1333030625] ndomod: Successfully flushed 471 queued items to data sink.

The only thing that I could find online is that it may be a bug with NDOMOD 1.4b9? What am I missing? Another piece of info is that I'm using https (not sure if that matters). Here is my profile information:

System:

mbo1-monitor1 2.6.32-220.4.1.el6.i686 i686
CentOS release 6.2 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19
Server Name: mbo1-monitor1.prod.paytronix.com
Server Address: 192.168.117.25
Server Port: 8443
Date/Time

PHP Timezone: Europe/London
PHP Time: Thu, 29 Mar 2012 17:10:42 +0100
System Time: Thu, 29 Mar 2012 16:10:42 +0000
Nagios XI Data

nagios (pid 1671) is running...
NPCD running (pid 1651).
ndo2db (pid 1691) is running...
CPU Load 15: 0.92
Total Hosts: 1
Total Services: 8
Function 'get_base_uri' returns: https://address of nagios server:8443/nagiosxi/
Function 'get_base_url' returns:https://address of nagios server:8443/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: https://address of nagios server:8443/nagiosxi//includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: https://localhost:8443/nagiosxi/backend/
Ping Test localhost

Running:
/bin/ping -c 3 localhost 2>&1
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.019 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.034 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.019/0.028/0.034/0.008 ms
Test wget To locahost

WGET From URL: Removed because it was complaining about too many urls in my forum post
Running:
/usr/bin/wget http://localhost/nagiosql/index.php
--2012-03-29 16:10:44-- Removed because it was complaining about too many urls in my forum post
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'

0K ..... 100% 252M=0s

2012-03-29 16:10:44 (252 MB/s) - `/tmp/nagiosql_index.tmp' saved [5259/5259]
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Configuration verification Hangs and never completes

Post by scottwilkerson »

Can I have you go to Configure -> Core Config Manager -> Tools -> Write Config Tool

And walk through each step and report the output.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
partners.nagios
Posts: 14
Joined: Thu Mar 29, 2012 10:13 am

Re: Configuration verification Hangs and never completes

Post by partners.nagios »

Everything passed except the Check configuration files, below is the error:

Error: There are no services defined!
Error: There are no hosts defined!
Total Warnings: 0
Total Errors: 2


Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config directory '/usr/local/nagios/etc/services'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Error: There are no services defined!
Checked 0 services.
Checking hosts...
Error: There are no hosts defined!
Checked 0 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 2 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 104 commands.
Checking time periods...
Checked 8 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 2

***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Configuration verification Hangs and never completes

Post by scottwilkerson »

Do you have any hosts or services setup? There should be at a minimum localhost setup unless you deleted it...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
partners.nagios
Posts: 14
Joined: Thu Mar 29, 2012 10:13 am

Re: Configuration verification Hangs and never completes

Post by partners.nagios »

The localhost is there, but I can't add any other hosts because every time I try to apply the config it hangs. I did try to delete the localhost (just to see if I could apply the config) but it didn't work.
partners.nagios
Posts: 14
Joined: Thu Mar 29, 2012 10:13 am

Re: Configuration verification Hangs and never completes

Post by partners.nagios »

oh wait, when I tried to delete localhost it did remove it from the config file so it is no longer showing up in the web UI
partners.nagios
Posts: 14
Joined: Thu Mar 29, 2012 10:13 am

Re: Configuration verification Hangs and never completes

Post by partners.nagios »

If I look at the nagios_objects table I see localhost and all the other hosts I have tried to add, however, if I check the below database tables (which I think should contain data) they are empty:

DB - Nagios
Table - nagios_hosts

DB - Nagiosql
Table - tbl_host


I did find some forum posts about how this might be a bug with NDOMOD 1.4b9?
partners.nagios
Posts: 14
Joined: Thu Mar 29, 2012 10:13 am

Re: Configuration verification Hangs and never completes

Post by partners.nagios »

I just noticed that I am also getting this error in /etc/httpd/logs/error_log

[client ::1] File does not exist: /var/www/html/nagiosxi
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Configuration verification Hangs and never completes

Post by scottwilkerson »

One problem at a time...

First lets just run a basic wizard to get at least 1 host and 1 service in there...

Run the Generic Network Device
Device Address: localhost
Next
Host Name: localhost
Next
Finish
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
partners.nagios
Posts: 14
Joined: Thu Mar 29, 2012 10:13 am

Re: Configuration verification Hangs and never completes

Post by partners.nagios »

How am I supposed to do that if the wizard hangs at verification?
Locked