Page 1 of 1

host1 is not a valid parent for host2

Posted: Sun Jun 27, 2021 12:18 pm
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

Re: host1 is not a valid parent for host2

Posted: Mon Jun 28, 2021 1:18 pm
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

Re: host1 is not a valid parent for host2

Posted: Wed Jun 30, 2021 6:11 am
by Pratapa
We have configured some devices even after getting this error. Will that remain intact if we restart nagios.

Re: host1 is not a valid parent for host2

Posted: Fri Jul 02, 2021 12:42 pm
by pbroste
Hello Pratapa,

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

Regards,
Perry