How to properly delete a host without deleting the services

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

How to properly delete a host without deleting the services

Postby yosh » Tue Feb 06, 2018 6:45 pm

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..!
yosh
 
Posts: 24
Joined: Tue Jan 02, 2018 11:35 pm

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

Postby mcapra » Wed Feb 07, 2018 9:37 am

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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3045
Joined: Thu May 05, 2016 3:54 pm

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

Postby kyang » Wed Feb 07, 2018 11:38 am

Thanks for the help @mcapra!!

yosh, please try the given steps mcapra listed.

Let us know if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1444
Joined: Tue Jul 25, 2017 3:35 pm

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

Postby yosh » Thu Feb 08, 2018 6:43 pm

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 ?
yosh
 
Posts: 24
Joined: Tue Jan 02, 2018 11:35 pm

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

Postby dwhitfield » Fri Feb 09, 2018 9:02 am

As long as the service has some hosts when you re-enable, it should work.
dwhitfield
Former Nagios Staff
 
Posts: 4568
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN

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

Postby yosh » Tue Feb 13, 2018 12:11 am

Thanks everyone for the great support and knowledge sharing.
yosh
 
Posts: 24
Joined: Tue Jan 02, 2018 11:35 pm

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

Postby kyang » Tue Feb 13, 2018 10:06 am

Did you have any more questions or are we okay to lock this up?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1444
Joined: Tue Jul 25, 2017 3:35 pm

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

Postby yosh » Thu Feb 15, 2018 8:07 pm

Hi @kyang,

Thanks, We are good to close the thread.
yosh
 
Posts: 24
Joined: Tue Jan 02, 2018 11:35 pm

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

Postby kyang » Fri Feb 16, 2018 10:02 am

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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1444
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 16 guests