nagiosxi stuck at applying configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post by nanz28v »

I recreated the host "Ironmail-CT1" and I still have the problem. Attached please find the screenshot on the host category.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagiosxi stuck at applying configuration

Post by slansing »

Did you apply configuration after adding it?
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post by nanz28v »

Yes I did yet it still runs forever... 8(
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post by abrist »

Rerun the verification:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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 ~]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nanz28v
Posts: 70
Joined: Tue Dec 11, 2012 2:59 pm

Re: nagiosxi stuck at applying configuration

Post 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.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagiosxi stuck at applying configuration

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked