host1 is not a valid parent for host2

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

host1 is not a valid parent for host2

Post by Pratapa »

Hi,

We are using Nagios XI.

We have deleted the host host1 and applied configuration. We are getting following error.

host1 is not a valid parent for host2.

I checked the parent child relation for host2. But host1 is not defined as parent for host2.

What could be the reason of this error. How to get rid of this error.

Regards,
Pratap
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: host1 is not a valid parent for host2

Post by pbroste »

Hello Pratap

Thanks for reaching out, I understand that you are trying to remove a host and you are receiving an error message that refers to an invalid parent.

Let's make sure that the services have been restarted and that there are no ghost services.

This will list the running instances:

Code: Select all

ps -aux | grep -E '/bin/nagios'
Run the following to 'end running processes' and restart services:

Code: Select all

service nagios stop
pkill -9 nagios
service nagios start
Once things are up and running again please remove the host and let me know the results,
Perry
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Re: host1 is not a valid parent for host2

Post by Pratapa »

We have configured some devices even after getting this error. Will that remain intact if we restart nagios.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: host1 is not a valid parent for host2

Post by pbroste »

Hello Pratapa,

Thanks for following up and server reboot will be fine and all services will spin up.

Regards,
Perry
Locked