Use EPEL packages (or native packages, if available) to install Nagios client and server on RHEL/Fedora, rather than compiling from source.