Page 1 of 1

circular parent/child chain error

Posted: Mon Mar 30, 2015 10:14 am
by SavaSC
Hello,

I made a change inside of NagiosXI and now it won't save. I backed out the change, but it still won't save. It gives me the following error:

Code: Select all

Error: The hosts 'Internal_Router' and 'NagiosXI_Server' form or lead into a circular parent/child chain!
I've looked at the config files for these two hosts in the Parents and HostGroups sections, but I'm not seeing any place that causes a circular loop. Any ideas where I should be looking? Perhaps I'm incorrect on what it is that could be causing this issue. For clarity sake, can someone please give me a heads-up, please?

Thank you for your help.

Re: circular parent/child chain error

Posted: Mon Mar 30, 2015 11:54 am
by lmiltchev
Go to the CCM->Hosts, click on the "View Text Config" actions button (the diskette icon) next to 'Internal_Router' and 'NagiosXI_Server' hosts and show us both configs.

Re: circular parent/child chain error

Posted: Mon Mar 30, 2015 12:03 pm
by SavaSC
Here is the one for the Nagios server

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.2
# Date:	      2015-03-30 12:01:45
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
	host_name			HOU-NagiosXI
	use				HOU linux-server
	alias				Houston Nagios server (LTC099l)
	address				127.0.0.1
	hostgroups			ALL-HOUSTON
	check_command			check-host-alive!!!!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			5
	active_checks_enabled		1
	check_period			24x7
	contact_groups			Oncall
	notification_interval		60
	notification_period		24x7
	first_notification_delay	5
	notification_options		d,u,r,
	notifications_enabled		1
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
And here is the one for the router:

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.2
# Date:	      2015-03-30 12:03:04
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
	host_name			HOU-RTR-INT
	use				xiwizard_genericnetdevice_host
	alias				Houston Router - Internal Interface
	address				10.90.6.5
	parents				HOU-NagiosXI
	hostgroups			Routers
	check_command			check-host-alive!!!!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	active_checks_enabled		1
	check_period			xi_timeperiod_24x7
	contact_groups			Oncall
	notification_period		xi_timeperiod_24x7
	notification_options		d,u,r,
	notifications_enabled		1
	icon_image			network_node.png
	statusmap_image			network_node.png
	_xiwizard			genericnetdevice
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
Thank you for your help.

Re: circular parent/child chain error

Posted: Mon Mar 30, 2015 1:37 pm
by lmiltchev
These configs look fine. It would be easier if we could take a look at the failed configuration snapshot. Go to Admin->Config Snapshots, find the latest failed config snapshot (it would be colored in red), click on both, the "Download" and the "View Output" action buttons, and email us both files at [email protected].
Also, send us your latest profile:
Admin->System Profile->Download Profile

Re: circular parent/child chain error

Posted: Mon Mar 30, 2015 1:57 pm
by SavaSC
Thank you for your response. I have just sent the e-mail with the subject being the same title as this thread.

Re: circular parent/child chain error

Posted: Mon Mar 30, 2015 2:16 pm
by lmiltchev
You have opened a new ticket in our email ticketing system. We will continue communicating via emails. I am locking this topic.