Best way to uninstall Nagios off a old server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MNcomputer
Posts: 38
Joined: Wed Aug 12, 2015 8:56 am

Best way to uninstall Nagios off a old server

Post by MNcomputer »

What is the best practice\rprocess to uninstall Nagios off a server that is no longer in production? Thanks!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Best way to uninstall Nagios off a old server

Post by bwallace »

You can just run the uninstall script which should already be on your XI server.

Code: Select all

cd /usr/local/nagiosxi/scripts

./uninstall_xi.sh
Be sure to check out the Knowledgebase for helpful articles and solutions!
MNcomputer
Posts: 38
Joined: Wed Aug 12, 2015 8:56 am

Re: Best way to uninstall Nagios off a old server

Post by MNcomputer »

Hi,
Do I run the command on the server itself, on which I want the software uninstalled on? Looking at moving it to another server. Thank you in advance, rookie at this at the moment. :)
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Best way to uninstall Nagios off a old server

Post by bwallace »

No worries -- yes, run the command on the Nagios server itself, which will uninstall the Nagios software. It will present an option to re-install, but if you ignore that option the software will remain uninstalled.
Be sure to check out the Knowledgebase for helpful articles and solutions!
MNcomputer
Posts: 38
Joined: Wed Aug 12, 2015 8:56 am

Re: Best way to uninstall Nagios off a old server

Post by MNcomputer »

Hi,
I must have posted my question wrong, what is the best way to remove the Nagios monitoring software on a server that we no longer use. I have a old CRM server with the Nagios monitoring software on it still, and it is showing up under my service detail still. What is the best method to remove it off this old CRM server? When I go to configure, delete this host, I receive the following error:

One or more errors were detected that prevent the host from being deleted.

Possible causes include...
•The host is associated with other hosts, services, or objects that need to be deleted first
•The host is maintained in a static or external configuration file
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Best way to uninstall Nagios off a old server

Post by tmcdonald »

Are you talking about the monitoring agent that you install on a remote machine to monitor it? The original question made it sound like you want to remove the monitoring server software called Nagios XI. If you are talking about the remote agent, it will depend on what agent you are using and what version. Can you please provide more details?

The errors you are seeing have nothing to do with the agent being installed or not - those usually mean you are trying to delete a host that still has services associated with it. Those services will need to be deleted first before you can delete the host, and they might have some dependencies of their own to resolve.
Former Nagios employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Best way to uninstall Nagios off a old server

Post by lmiltchev »

Let's clarify - you have an old server that you have been monitoring (that is no longer in use) in Nagios XI. Now, you need to remove this host, and all of its services from your Nagios XI server. Is this correct? Initially we thought you needed to uninstall Nagios XI from an old server... If you need to remove a host, you will have to delete all of its services first. You can check all of the host's dependent relationships to other objects by going to the Core Config Manager->Hosts, then clicking on the "Relationship Info" actions button next to the host.
Be sure to check out our Knowledgebase for helpful articles and solutions!
MNcomputer
Posts: 38
Joined: Wed Aug 12, 2015 8:56 am

Re: Best way to uninstall Nagios off a old server

Post by MNcomputer »

Yes, that is correct. Thank you.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Best way to uninstall Nagios off a old server

Post by rkennedy »

Are we good to mark this thread as resolved?
Former Nagios Employee
MNcomputer
Posts: 38
Joined: Wed Aug 12, 2015 8:56 am

Re: Best way to uninstall Nagios off a old server

Post by MNcomputer »

Yes, please close request, thank you for your assistance.
Locked