Page 2 of 3

Re: Configuration verification Hangs and never completes

Posted: Thu Mar 29, 2012 4:35 pm
by partners.nagios
I just tried your instructions for good measure but nope, it just hangs on verification. :(

Re: Configuration verification Hangs and never completes

Posted: Thu Mar 29, 2012 4:46 pm
by scottwilkerson
Please go to
Configure -> Core Config Manager -> Tools -> Write Config Tool

And walk through the 4 steps, and return the output

Re: Configuration verification Hangs and never completes

Posted: Thu Mar 29, 2012 4:59 pm
by partners.nagios
Write host configurations ...
Configuration file successfully written!

Write service configurations ...
Configuration file successfully written!

Write hostgroups.cfg ...
Configuration file successfully written!
Write servicegroups.cfg ...
Configuration file successfully written!
Write hosttemplates.cfg ...
Configuration file successfully written!
Write servicetemplates.cfg ...
Configuration file successfully written!


Write timeperiods.cfg ...
Configuration file successfully written!
Write commands.cfg ...
Configuration file successfully written!
Write contacts.cfg ...
Configuration file successfully written!
Write contactgroups.cfg ...
Configuration file successfully written!
Write contacttemplates.cfg ...
Configuration file successfully written!
Write servicedependencies.cfg ...
Configuration file successfully written!
Write hostdependencies.cfg ...
Configuration file successfully written!
Write serviceescalations.cfg ...
Configuration file successfully written!
Write hostescalations.cfg ...
Configuration file successfully written!
Write serviceextinfo.cfg ...
Configuration file successfully written!
Write hostextinfo.cfg ...
Configuration file successfully written!


Error: There are no services defined!
Warning: Host 'mbo1px-rptdb1' has no default contacts or contactgroups defined!
Total Warnings: 1
Total Errors: 1


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 file '/usr/local/nagios/etc/hosts/mbo1px-rptdb1.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/mbo1px-rptdb1.cfg'...
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...
Warning: Host 'mbo1px-rptdb1' has no default contacts or contactgroups defined!
Checked 1 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: 1
Total Errors: 1

***> 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.

I was able to manually add the one host "mbo1px-rptdb1 by adding it to the database, but I still can't apply the config.

Re: Configuration verification Hangs and never completes

Posted: Thu Mar 29, 2012 5:04 pm
by scottwilkerson
Now it is missing a service...

Adding items directly to the database if you don't know what all the dependencies are is really risky, and unsupportable.

Re: Configuration verification Hangs and never completes

Posted: Thu Mar 29, 2012 5:34 pm
by partners.nagios
yes I know, I was just seeing if the database could be written to at all.

Re: Configuration verification Hangs and never completes

Posted: Fri Mar 30, 2012 8:40 am
by scottwilkerson
Was this a new install or was it working before?

I'm thinking if it was a new install that somehow the E-importnagiosql script was never run, if so, can I have you run

Code: Select all

cd /tmp/nagiosxi
rm -f installed.importnagiosql
./E-importnagiosql

Re: Configuration verification Hangs and never completes

Posted: Fri Mar 30, 2012 9:27 am
by partners.nagios
I tried running those commands and I received the error Daemons were not configured - run previous script. So I ran D-chkconfigalldaemons. I kept getting errors like this until I ran 0-yum. It started working and then this came up:

Code: Select all

Transaction Check Error:
  installing package kernel-2.6.32-220.7.1.el6.i686 needs 17MB on the /boot filesystem

Error Summary
-------------
Disk Requirements:
  At least 17MB more space needed on the /boot filesystem.

Re: Configuration verification Hangs and never completes

Posted: Fri Mar 30, 2012 10:41 am
by scottwilkerson
It looks like you don't have enough space on your /boot partition..

Code: Select all

df /boot

Re: Configuration verification Hangs and never completes

Posted: Fri Mar 30, 2012 12:26 pm
by partners.nagios
Okay, so I figured it out. I'm running Nagios on a non-standard SSL port. Once I changed everything to 443, it worked. So now I'd like to know how to change from 443 to a non-standard port. Can you help me out with this?

Re: Configuration verification Hangs and never completes

Posted: Fri Mar 30, 2012 12:39 pm
by scottwilkerson
The documentation we have for SSL is here
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

For non standard ports, when you modify the /usr/local/nagiosxi/html/config.inc.php file you can change
$cfg['port_number'] = false;
to
$cfg['port_number'] = YOURPORTNUMBER;