Removing Nagios Core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Removing Nagios Core

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Removing Nagios Core

Post by abrist »

Was core installed from a package or source?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Removing Nagios Core

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Removing Nagios Core

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
gabrotherton
Posts: 57
Joined: Wed Dec 03, 2014 11:16 am

Re: Removing Nagios Core

Post by gabrotherton »

Thanks for the reply. This seems to be what we needed.
Locked