Page 1 of 1

How to properly delete a host without deleting the services

Posted: Tue Feb 06, 2018 6:45 pm
by yosh
Hi All,

I came across a situation where I had to delete a host which has a monitoring service common to few other hosts as well.

Eg:

I have hosts A, B, C, D, E
Im monitoring disk space of each of above hosts.

Now I want to delete host B. But Nagios XI doesnt allow me to delete host B without deleting Disk monitoring service.
I cant delete the disk monitoring service since it is used by the other hosts.

In above scenario what is the best way to delete the host B ?

Thank you..!

Re: How to properly delete a host without deleting the servi

Posted: Wed Feb 07, 2018 9:37 am
by mcapra
If I'm understanding the setup correctly, the best way to remove Host B is to, from the Core Config Manager, change the "disk monitoring" service definition to exclude Host B and eliminate the dependency.

This documentation should get you on the right track:
https://support.nagios.com/kb/article.php?id=539

In a nutshell, edit the "disk monitoring" service in the Core Config Manager, click the "Manage Hosts" button, then remove Host B from that list.

Re: How to properly delete a host without deleting the servi

Posted: Wed Feb 07, 2018 11:38 am
by kyang
Thanks for the help @mcapra!!

yosh, please try the given steps mcapra listed.

Let us know if you have any more questions.

Re: How to properly delete a host without deleting the servi

Posted: Thu Feb 08, 2018 6:43 pm
by yosh
mcapra wrote:If I'm understanding the setup correctly, the best way to remove Host B is to, from the Core Config Manager, change the "disk monitoring" service definition to exclude Host B and eliminate the dependency.

This documentation should get you on the right track:
https://support.nagios.com/kb/article.php?id=539

In a nutshell, edit the "disk monitoring" service in the Core Config Manager, click the "Manage Hosts" button, then remove Host B from that list.
Thanks for the guide @mcapra. This method worked.
In addition to this can I disable the Disk Monitoring service for a while until I delete the hosts and then re-enable the service ..?
Will it work ? If it works, would it be another safe way of doing it ?

Re: How to properly delete a host without deleting the servi

Posted: Fri Feb 09, 2018 9:02 am
by dwhitfield
As long as the service has some hosts when you re-enable, it should work.

Re: How to properly delete a host without deleting the servi

Posted: Tue Feb 13, 2018 12:11 am
by yosh
Thanks everyone for the great support and knowledge sharing.

Re: How to properly delete a host without deleting the servi

Posted: Tue Feb 13, 2018 10:06 am
by kyang
Did you have any more questions or are we okay to lock this up?

Re: How to properly delete a host without deleting the servi

Posted: Thu Feb 15, 2018 8:07 pm
by yosh
Hi @kyang,

Thanks, We are good to close the thread.

Re: How to properly delete a host without deleting the servi

Posted: Fri Feb 16, 2018 10:02 am
by kyang
Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!