Page 1 of 3

Configuration Error

Posted: Wed Mar 06, 2013 2:51 pm
by estherpeddi
Please help!
i get the below error after I complete configuring SQL server Monitoring Wizard -
An error occurred while attempting to apply your configuration to the monitoring engine. Contact your Nagios administrator if this problem persists.

Re: Configuration Error

Posted: Wed Mar 06, 2013 3:00 pm
by slansing
Can you please do the following:

Navigate to Configure > Core Config Manager > Tools > Write Config Tool.

From here click each of the 3 buttons moving from top to bottom, post the output from each of the three here in a reply. Thanks!

Re: Configuration Error

Posted: Thu Mar 07, 2013 9:54 am
by estherpeddi
Hi, thanks for responding! Im using the free trial version and i do not have access to CCM, please advise. Thanks!

Re: Configuration Error

Posted: Thu Mar 07, 2013 10:15 am
by slansing
Does your account not have Admin privileges? You should have access to the CCM regardless as it is the main tool used to modify configuration files within XI.

Re: Configuration Error

Posted: Thu Mar 07, 2013 11:05 am
by estherpeddi
Im using nagiosadmin account, how can i check to see if it has admin priivileges?

Re: Configuration Error

Posted: Thu Mar 07, 2013 11:15 am
by lmiltchev
Go to:

Admin->System Config->Reset Security Credentials

and enter a password that you would like to use to log in CCM in the "New Config Manager Admin Password" filed. Don't change anything else under "Sub-System Credentials"! Click on "Update Credentials".

Log in the CCM:

Configure->Core Configuration Manager

username: nagiosadmin
password: <your new password>

Then go to: Tools->Write Config Files->click on Write and Verify buttons, and copy/paste the output.

Re: Configuration Error

Posted: Thu Mar 07, 2013 11:16 am
by estherpeddi
Nevermind i was able to reset password to be used for CCM, will send you the output soon.

Re: Configuration Error

Posted: Thu Mar 07, 2013 11:18 am
by estherpeddi
Write -

Code: Select all

Write host configurations ...
Host configuration files successfully written!

Write service configurations ...
Service configuration files successfully written!

Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Verify -

Code: Select all

 
Error: Host 'crplivdba2.citnet.cit.com' cannot be a child/parent of itself 
Error: Could not add parent host 'crplivdba2.citnet.cit.com' to host (config file '/usr/local/nagios/etc/hosts/crplivdba2.citnet.cit.com.cfg', starting on line 14) 

Nagios Core 3.4.1 
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors 
Copyright (c) 1999-2009 Ethan Galstad 
Last Modified: 05-11-2012 
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/xiobjects.cfg'... 
Processing object config file '/usr/local/nagios/etc/static/xitemplates.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/crplivdba2.citnet.cit.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'... 
Processing object config directory '/usr/local/nagios/etc/services'... 
Processing object config file '/usr/local/nagios/etc/services/crplivdba2.citnet.cit.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'... 
Error: Host 'crplivdba2.citnet.cit.com' cannot be a child/parent of itself 
Error: Could not add parent host 'crplivdba2.citnet.cit.com' to host (config file '/usr/local/nagios/etc/hosts/crplivdba2.citnet.cit.com.cfg', starting on line 14) 
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. 
Restart -

Code: Select all

RESTART FAILED. CONFIG ERROR:
Error: Host 'crplivdba2.citnet.cit.com' cannot be a child/parent of itself 
Error: Could not add parent host 'crplivdba2.citnet.cit.com' to host (config file '/usr/local/nagios/etc/hosts/crplivdba2.citnet.cit.com.cfg', starting on line 14)

Re: Configuration Error

Posted: Thu Mar 07, 2013 11:36 am
by sreinhardt
It seems that you have defined the host 'crplivdba2.citnet.cit.com' to be a parent of itself, which is not possible. Go into CCM, under hosts, modify that one, then manage parents, and remove it from there. If this is applied by a template or hostgroup it may be a little more tricky but should just be modifying the additional object in the same manor.

Re: Configuration Error

Posted: Thu Mar 07, 2013 11:37 am
by abrist
To fix the following error:

Code: Select all

Error: Host 'crplivdba2.citnet.cit.com' cannot be a child/parent of itself
Error: Could not add parent host 'crplivdba2.citnet.cit.com' to host (config file '/usr/local/nagios/etc/hosts/crplivdba2.citnet.cit.com.cfg', starting on line 14) 
Hosts cannot be children or parents of themselves.
You will need to go to the CCM --> Hosts --> Click on the host 'crplivdba2.citnet.cit.com' --> On the common settings tab, click on "Manage Parents" --> remove the host 'crplivdba2.citnet.cit.com' from the list.

Save out and apply configuration.