Page 3 of 7

Re: nagiosxi stuck at applying configuration

Posted: Wed Jan 08, 2014 3:59 pm
by nanz28v
I recreated the host "Ironmail-CT1" and I still have the problem. Attached please find the screenshot on the host category.

Re: nagiosxi stuck at applying configuration

Posted: Wed Jan 08, 2014 4:03 pm
by slansing
Did you apply configuration after adding it?

Re: nagiosxi stuck at applying configuration

Posted: Wed Jan 08, 2014 4:35 pm
by nanz28v
Yes I did yet it still runs forever... 8(

Re: nagiosxi stuck at applying configuration

Posted: Wed Jan 08, 2014 4:41 pm
by abrist
Rerun the verification:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: nagiosxi stuck at applying configuration

Posted: Wed Jan 08, 2014 4:51 pm
by nanz28v
root@sm5nag01:~[root@sm5nag01 ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.
cfg

Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
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/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.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'...
Error: Could not find any host matching 'Ironmail-CT1' (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 41)
Error: Could not expand members specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', starting on line 41)
Error processing object config files!


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

]0;root@sm5nag01:~[root@sm5nag01 ~]#

Re: nagiosxi stuck at applying configuration

Posted: Wed Jan 08, 2014 4:57 pm
by abrist
Apologies. We need to write the files out first. Go to --> ccm --> write config files --> click "write" and then "verify". Post the output of the verification.

Re: nagiosxi stuck at applying configuration

Posted: Thu Jan 09, 2014 8:37 am
by nanz28v
results of verification:

Error: Could not expand hostgroups and/or hosts specified in host escalation (config file '/usr/local/nagios/etc/hostescalations.cfg', starting on line 29)

Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
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/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.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/Ironmail-CT1.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Error: Could not expand hostgroups and/or hosts specified in host escalation (config file '/usr/local/nagios/etc/hostescalations.cfg', starting on line 29)
Error processing object config files!


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

Re: nagiosxi stuck at applying configuration

Posted: Thu Jan 09, 2014 10:46 am
by abrist
nanz28v wrote:Error: Could not expand hostgroups and/or hosts specified in host escalation (config file '/usr/local/nagios/etc/hostescalations.cfg', starting on line 29)
Error processing object config files!
Wow, how many changes were made to the configs without successfully applying a config?
You should be getting use to this process by this point. Could you post the file: /usr/local/nagios/etc/hostescalations.cfg

Re: nagiosxi stuck at applying configuration

Posted: Thu Jan 09, 2014 11:29 am
by nanz28v
I have no idea how many configs failed to write, since we don't have that many items setup on this test server. Here is the file attached.

Re: nagiosxi stuck at applying configuration

Posted: Thu Jan 09, 2014 12:06 pm
by abrist
The following escalation is missing required fields:

Code: Select all

define hostescalation {
	first_notification            		3
	last_notification             		0
	notification_interval         		60
	escalation_period             		24x7
	}	
You either need to remove the escalation from the ccm, or add a contact and a nagios object to it.