Depending on your system and install, you can check for package installation with (possibly pacman or other package managers):
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
If you modified the compilation in some way, then there's not any way for us to know where things are installed. certainly
find / -name *nagios* could be of use, but you'd need to sort out the 4.0.8 stuff versus 4.2.4.