Page 1 of 1

Running configuration check... FAILED! Reload aborted

Posted: Mon Jan 28, 2013 1:58 pm
by bsimpson
I am new to Nagios and need assistance. This morning we had a host we needed to disable from "/usr/local/nagios/etc/hosts/hosts.cfg", I disabled the host by indenting it out:

#define host{
# use ava-host ; Name of host template to use
# host_name AVATERM8
# alias Term8
# address 192.168.155.27
#
# }

Saved the configuration file then I rebooted the server with a "sudo reboot". Once the server came back up I logged into the Nagios GUI (192.168.155.19/nagios) and encountered the following error when attempting to view service detail:

"Whoops! Error: Could not read host and service status information!"

I then attempted to manually start nagios with the following command "/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg" to no avail. Attempted to restart nagios with the following command "sudo invoke-rc.d nagios reload" this gave the following error in the output:

"Running configuration check... FAILED! Reload aborted. Check your Nagios configuration.
invoke-rc.d: initscript nagios, action "reload" failed."

It does not appear nagios can start and I am at a loss to why. Here are the current Nagios processes running:

administrator@Intranet:/usr/local/nagios/etc/hosts$ ps axu | grep nagios
nagios 5064 0.0 0.1 10872 5840 ? Ss 10:13 0:00 /usr/bin/perl -w /usr/sbin/nagiosgrapher
nagios 7373 0.0 0.0 13964 1484 ? SNsl 11:36 0:00 /usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg
1000 9554 0.0 0.0 3004 752 pts/1 R+ 13:10 0:00 grep nagios

Re: Running configuration check... FAILED! Reload aborted

Posted: Mon Jan 28, 2013 2:15 pm
by slansing
Lets first run a config check with the following and report the output back here:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
It is possible something was inadvertently changed with the host and it's relationships.

Re: Running configuration check... FAILED! Reload aborted

Posted: Mon Jan 28, 2013 2:37 pm
by bsimpson
Ok, ran "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" here is the output:


Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data...

Error: Could not find any host matching 'AVATERM8'
Error: Could not expand member hosts specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 7)

***> One or more problems was encountered while processing the config files...

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.

Thanks

Re: Running configuration check... FAILED! Reload aborted

Posted: Mon Jan 28, 2013 3:22 pm
by abrist
I t looks like the host you commented out exists in at least one other place. Remove it from the hostgroups.cfg file and try to verify again.

Re: Running configuration check... FAILED! Reload aborted

Posted: Mon Jan 28, 2013 3:47 pm
by slansing
We are going to continue support for this via our ticketing system that you emailed. I will keep the thread open so that we can post what the solution was for the future.