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.
Removing Nagios Core
Re: Removing Nagios Core
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.
"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
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.
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
You certainly shouldn't have to reimage. Depending on your system and install, you can check for package installation with:
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
Code: Select all
rpm -qa | grep nagios
dpkg -l | grep nagios/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
Thanks for the reply. This seems to be what we needed.