I installed nagios through this guide which works fine, but now i'd like to uninstall it altogether. Could you guide me what i need to delete as i cannot see an uninstallation routine.
Asked
Active
Viewed 3.9k times
2 Answers
8
You just do the steps in reverse(ish) order:
- Stop the Nagios daemon
- Remove the web conf, if you installed it
- Remove the user and group that you added for Nagios
- Remove the init script
- Remove /usr/local/nagios directory
Then, next time you want to test a new version of Nagios, you use a VM so you can revert to a snapshot.

Keith
- 4,637
- 15
- 25
-1
added to above process:
find / -name "nagios*" -exec rm {} \;

Drifter104
- 3,773
- 2
- 25
- 39

Satalink
- 31
-
2Using this from the root of the filesystem might be a bit extreme; better would be to suggest to the OP that the `find` command start with the Nagios installation directory. Also, the suggested answer would be improved with some explanation for why this would cover everything requested. – Castaglia Mar 05 '16 at 00:40
-
A part of this command is helpful to find all directories .... because in normal mode there is an error to delete a directory – Arash Hatami Jun 13 '18 at 13:33
-
1I had to use this to get everything nagios removed. Wish they learned how to package their software properly. – Avamander Feb 04 '19 at 23:26