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.
How to remove the host from monitoring
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to remove the host from monitoring
Remove the parent line from host2 and remove host1
Change the config you showed to
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
Thanks. I did the same.
I commented out parent line and then removed host1 and it got removed sucessfully.
Thank you.
I commented out parent line and then removed host1 and it got removed sucessfully.
Thank you.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to remove the host from monitoring
Great!Pratapa wrote:Thanks. I did the same.
I commented out parent line and then removed host1 and it got removed sucessfully.
Thank you.
Locking thread