Not able to start nagios process in CheckMK

Hi there,

Was wondering if anyone can help with this error below? Not able to bring nagios process when I started omd :

Note: I just replaced the parent value with ‘ppp’ and host with ‘hh’

Error: ‘pp-ppp-ppp-pp’ is not a valid parent for host 'hh-hhh-hh-hh!
Checked 226 hosts.
Checking host groups…
Checked 11 host groups.
Checking service groups…
Checked 0 service groups.
Checking contacts…
Checked 13 contacts.
Checking contact groups…
Checked 4 contact groups.
Checking service escalations…
Checked 0 service escalations.
Checking service dependencies…
Checked 135 service dependencies.
Checking host escalations…
Checked 0 host escalations.
Checking host dependencies…
Checked 0 host dependencies.
Checking commands…
Checked 60 commands.
Checking time periods…
Checked 3 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.

Starting apache…OK
Initializing Crontab…OK

I manage to get nagios started, by commenting out the troubled parent and host in the check_mk_objects.cfg.

However, the issue I am facing now is when I try to activate a change via the portal, the error shown is “There are some changes made by your colleagues and you did not confirm to activate these changes. In order to proceed, you will have to confirm the activation or ask you colleagues to activate these changes in their own”. I am trying to remove the same troubled hosts on Gui. Please see the attached screenshot for your reference.

Any ideas or feedback would be appreciated :slight_smile:

Hi @HSC,
have you tried to activate the option Activate changes of others users and after that Activate affected?

Karl

1 Like

This file is not existent in the enterprise edition and host should be managed in file hosts.mk below ~/etc/check_mk/conf.d/wato.
Nevertheless you must not alter files of checkmk and you should do modifications only with setup.
You can easily remove the parent from the hostobject in the GUI.

I am not sure why this is an error. Normally it should only be a warning and config could be activated. Can you share the command which produced this output.
Maybe try cmk -X on command line to evrify your config.

Nevertheless you need to check the ‘Activate foreign changes’ to be able to activate your current config.

Thanks for replying Karl. Yes my userID is by default is set to that

Hi Mike,

I have selected ‘‘Activate foreign changes’ and tried Activating the changes again. Received the attached error. Any idea what is it?


Also, for cmk-X…just wanted to know if its safe to run as what I read it does some config flush as well, besides review.

Hi All,

Anyone know how to fix the activation error ( as shown in the last screenshot). Or is there a way to force activate via command line?

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.