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.
This should actually be patched and resolved in version 4.0.3 which is now released. If you wish to stay on version 4.0.2 we can continue to help you on that end, though upgrading should resolve this.
Please run through the entire procedure, remember, an upgrade is essentially a re-compile, the above link includes the make install-init that Scott mentioned, please let us know if you need help.
./configure --with-nagios-group=nagios --with-command-group=nagcmd -–with-mail=/usr/bin/sendmail
All systems:
make all
make install
make install-init
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start