Page 1 of 1

How to remove the host from monitoring

Posted: Fri Nov 29, 2019 1:06 am
by Pratapa
Hi,

We have a requirement. We need to remove host1 from monitoring. But host1 is the parent to host2.
When we remove host1 from monitoring we are getting error.

host1 is in Unreachable state. There is one service on host1 and it is showing Unknown state.
host2 is in OK state and all the services on host2 are in OK state.

Following are the host definitions of the host1 and host2

define host {
use switch-host-template
host_name host1
alias ad Switch
address x.x.x.x
parents host3
}


define host {
use ups-host-template
host_name host2
alias ad UPS
address x.x.x.x
parents host1
}


Please suggest how to proceed.


Regards,
Pratap.

Re: How to remove the host from monitoring

Posted: Mon Dec 02, 2019 8:45 am
by scottwilkerson
Remove the parent line from host2 and remove host1

Change the config you showed to

Code: Select all

define host {
use ups-host-template
host_name host2
alias ad UPS
address x.x.x.x
}

Re: How to remove the host from monitoring

Posted: Tue Dec 03, 2019 1:21 am
by Pratapa
Thanks. I did the same.

I commented out parent line and then removed host1 and it got removed sucessfully.

Thank you.

Re: How to remove the host from monitoring

Posted: Tue Dec 03, 2019 7:33 am
by scottwilkerson
Pratapa wrote:Thanks. I did the same.

I commented out parent line and then removed host1 and it got removed sucessfully.

Thank you.
Great!

Locking thread