configuration error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

configuration error

Post by maxwellmiranda »

i am getting the following error in configuration snapshot...
Error: The host 'localhost' is part of a circular parent/child chain!
Error: The host 'nagmon.bose.com' is part of a circular parent/child chain!

following is the snapshot of config file

Code: Select all

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/xitest.cfg'...
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/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/usmadbasqltst2.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/nagmon.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/www.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/dbatools.bose.com.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/usmadbasqltst2.cfg'...
Processing object config file '/usr/local/nagios/etc/services/nagmon.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/www.bose.com.cfg'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/dbatools.bose.com.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Warning: Service 'PGA In Memory Sort Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Processes Usage' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Redo I/O Traffic' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Retry Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Rman backup Problem' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Roll Block Contention' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Roll Extends' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Roll Header Contention' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Roll Hit Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Roll Wraps' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'SGA Data Buffer Hit Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'SGA Dictionary Cache Hit Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'SGA Latch Hit Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'SGA Library Cache Hit Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'SGA Shared Pool Free' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'SGA Shared Pool Reload Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Soft Parse Ratio' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'TNS ping' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Tablespace Can Allocate Next' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Tablespace Fragmentation' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Tablespace Free Space' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Tablespace IO Balance' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Tablespace Remaining Time' on host 'dbatools.bose.com' has no check time period defined!
Warning: Service 'Tablespace Usage' on host 'dbatools.bose.com' has no check time period defined!
	Checked 54 services.
Checking hosts...
	Checked 5 hosts.
Checking host groups...
	Checked 3 host groups.
Checking service groups...
	Checked 2 service groups.
Checking contacts...
	Checked 3 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 81 commands.
Checking time periods...
	Checked 9 time periods.
Checking for circular paths between hosts...
Error: The host 'localhost' is part of a circular parent/child chain!
Error: The host 'nagmon.bose.com' is part of a circular parent/child chain!
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 24
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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configuration error

Post by scottwilkerson »

If you look at the host config for dbatools.bose.com what does it have set for it's template?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

Re: configuration error

Post by maxwellmiranda »

this is what i see

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:	      2012-05-01 12:46:04
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define host {
	host_name			dbatools.bose.com
	use				xiwizard_oracletablespace_host
	address				dbatools.bose.com
	parents				nagmon.bose.com
	hostgroups			AIX-servers
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	contacts			nagiosadmin
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	first_notification_delay	0
	notification_options		d,u,r,f,s
	notifications_enabled		1
	icon_image			oracle.png
	statusmap_image			oracle.png
	_xiwizard			oracletablespace
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configuration error

Post by scottwilkerson »

You can't look at the file, you must look through the CCM because the file is going to get overwritten when apply configuration is run however when the config fails the old file will be put back.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

Re: configuration error

Post by maxwellmiranda »

would you be able to provide some fix for this.
because every time i create a new service and apply configurations it fails.....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configuration error

Post by scottwilkerson »

The problem is going to come down to this
Error: The host 'localhost' is part of a circular parent/child chain!
Error: The host 'nagmon.bose.com' is part of a circular parent/child chain!
these 2 hosts are referencing each other in a circular fashion. in the parents field. (could be in a template too)

ie. localhost has a parent of nagmon.bose.com & nagmon.bose.com has a parent of localhost

The configuration will not get correctly written until you fix the problem.

Go to
Configure -> Core Config Manager -> Hosts -> nagmon.bose.com -> Edit

Look in the Parents, you must have something referencing the localhost, if not, it is possible the template used references localhost

Also, the same issue could be in
Configure -> Core Config Manager -> Hosts -> localhost -> Edit

Again look at the Parents for nagmon.bose.com
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
maxwellmiranda
Posts: 113
Joined: Thu Mar 22, 2012 3:24 pm

Re: configuration error

Post by maxwellmiranda »

thank you it worked.....

is there any way to backup the entire nagios configuration and also the monitoring services that were set up....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: configuration error

Post by scottwilkerson »

Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked