Error when trying to activate changes and also does not allow to discard the changes

CMK version: Raw 2.1.0p11
OS version: RHEL 7

Error message:
Started at: 16:09:06. Finished at: 16:09:11.
Error running automation call restart (exit code 1), error:

Nagios Core 3.5.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-30-2013
License: GPL

Website: http://www.nagios.org
Reading configuration data…
Read main config file okay…
Processing object config directory ‘/omd/sites/srv/etc/nagios/conf.d’…
Processing object config file ‘/omd/sites/srv/etc/nagios/conf.d/templates.cfg’…
Processing object config file ‘/omd/sites/srv/etc/nagios/conf.d/check_mk_templates.cfg’…
Processing object config file ‘/omd/sites/srv/etc/nagios/conf.d/check_mk_objects.cfg’…
Read object config files okay…

Running pre-flight check on configuration data…

Checking services…
Checked 6348 services.
Checking hosts…

Error: ‘host-02.domain’ is not a valid parent for host ‘Mirphak’!

Checked 117 hosts.
Checking host groups…
Checked 22 host groups.
Checking service groups…
Checked 9 service groups.
Checking contacts…
Checked 11 contacts.
Checking contact groups…
Checked 34 contact groups.
Checking service escalations…
Checked 0 service escalations.
Checking service dependencies…
Checked 116 service dependencies.
Checking host escalations…
Checked 0 host escalations.
Checking host dependencies…
Checked 0 host dependencies.
Checking commands…
Checked 93 commands.
Checking time periods…
Checked 1 time periods.
Checking for circular paths between hosts…
Checking for circular host and service dependencies…
Checking global event handlers…
Checking obsessive compulsive processor commands…
Checking misc settings…

Total Warnings: 0
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.

An error occurred: Error creating configuration: Configuration for monitoring core is invalid. Rolling back. The broken file has been copied to “/omd/sites/srv/tmp/check_mk/check_mk_objects.cfg.broken” for analysis.

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

Does the host host-02.domain exist or was it maybe removed or is spelled differently? (or does it have a parent which itself has “Mirphak” as a parent, thus making the parent-child relationship a circle?)

Indeed, the host was eliminated as a member of the SqlServer cluster in the same group, and when trying to apply the changes, the described problem arose. Then an attempt was made to discard the deletion without success.

Hi Marcelo,

not sure why the “discard pending changes” (I’m assuming that is what you are referring to with " an attempt was made to discard the deletion") did not work. But I suggest either

a) if you want to keep the host, recreate it by hand
b) if host-02.domain can stay gone, edit host Mirphak and set another (or no) host as parent

Gerd

Hi Gerd,

Resolved!!! Recreating the host again. Originally there were the 2 SQL cluster hosts, monitoring was added in the cluster form that allows CheckMk in the same folder successfully. Then it was believed that the original standalone hosts should be removed and then the described problem occurred. So, is it understood that they should also be kept in the same folder?

The folder should not matter for the parent-child relationship. Only the hostname is relevant for that.

The folder doesn’t but:

Then it was believed that the original standalone hosts should be removed and then the described problem occurred

you can not remove the hosts :slight_smile: a cluster doesn’t magically collect data from all it’s nodes, all nodes of a cluster have to be present as host objects in checkmk

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.