How to properly delete a host without deleting the services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yosh
Posts: 32
Joined: Tue Jan 02, 2018 11:35 pm

How to properly delete a host without deleting the services

Post 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..!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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.
Former Nagios employee
https://www.mcapra.com/
kyang

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

Post by kyang »

Thanks for the help @mcapra!!

yosh, please try the given steps mcapra listed.

Let us know if you have any more questions.
yosh
Posts: 32
Joined: Tue Jan 02, 2018 11:35 pm

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

Post 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 ?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

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

Post by dwhitfield »

As long as the service has some hosts when you re-enable, it should work.
yosh
Posts: 32
Joined: Tue Jan 02, 2018 11:35 pm

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

Post by yosh »

Thanks everyone for the great support and knowledge sharing.
kyang

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

Post by kyang »

Did you have any more questions or are we okay to lock this up?
yosh
Posts: 32
Joined: Tue Jan 02, 2018 11:35 pm

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

Post by yosh »

Hi @kyang,

Thanks, We are good to close the thread.
kyang

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

Post 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!
Locked