Page 1 of 1

Best way to uninstall Nagios off a old server

Posted: Tue Apr 26, 2016 3:52 pm
by MNcomputer
What is the best practice\rprocess to uninstall Nagios off a server that is no longer in production? Thanks!

Re: Best way to uninstall Nagios off a old server

Posted: Tue Apr 26, 2016 4:18 pm
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

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 8:54 am
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. :)

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 9:09 am
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.

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 9:36 am
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

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 9:52 am
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.

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 9:56 am
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.

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 9:57 am
by MNcomputer
Yes, that is correct. Thank you.

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 10:02 am
by rkennedy
Are we good to mark this thread as resolved?

Re: Best way to uninstall Nagios off a old server

Posted: Wed Apr 27, 2016 10:58 am
by MNcomputer
Yes, please close request, thank you for your assistance.