Page 1 of 1

Removing Nagios Core

Posted: Wed Dec 10, 2014 4:31 pm
by gabrotherton
We are testing Nagios XI on a dedicated system with great results so far.

We were trying out Nagios Core on a different system and would like to remove Core from that system altogether at this point so it can be re-purposed without much hassle. Is there an uninstall process for removing Nagios Core? Or can we simply remove the /etc/init.d/nagios file and remove the /usr/local/nagios/* directory structre? I would personally like to use an uninstall script or something like that.

We haven't done anything yet.

Re: Removing Nagios Core

Posted: Wed Dec 10, 2014 5:43 pm
by abrist
Was core installed from a package or source?

Re: Removing Nagios Core

Posted: Thu Dec 11, 2014 10:50 am
by gabrotherton
to be quite honest, i don't know. The guy who did the install is no longer with our program. I am assuming he installed from the download package.

I ran 'service nagios stop' on that machine when we started XI on another machine. So Core is not running now, but I would like to re-run the NRPE installation on that machine without any other nagios core "stuff" in place. We do not want to re-image the server if at all possible.

Re: Removing Nagios Core

Posted: Thu Dec 11, 2014 11:35 am
by sreinhardt
You certainly shouldn't have to reimage. Depending on your system and install, you can check for package installation with:

Code: Select all

rpm -qa | grep nagios
dpkg -l | grep nagios
If you have either of those show a match, you can simply use the distributions package manager to remove nagios completely. If neither of those match, the only files on a default source install would be:

/usr/local/nagios/ - (libexec directory has your plugins, so I would suggest removing the sub folders and files, but not libexec and the nagios dir as a whole if you plan to use nrpe again)
/etc/init.d/nagios
/etc/sysconfig/nagios

Re: Removing Nagios Core

Posted: Thu Dec 11, 2014 2:46 pm
by gabrotherton
Thanks for the reply. This seems to be what we needed.