If you install nagios 4 following this tutorial, then your installation directory is /usr/local/nagios
.
On starting nagios and browsing to nagios admin portal, you could see the following errors
- (No output on stdout) stderr:
execvp(/usr/local/nagios/libexec/check_ping
- (No output on stdout) stderr:
execvp(/usr/local/nagios/libexec/check_users
- (No output on stdout) stderr:
execvp(/usr/local/nagios/libexec/check_http
This is how I fixed the above errors,
Install plugins
sudo apt-get install nagios-plugins
This will install all plugins to /usr/lib/nagios/plugins
directory.
Just copy all files starting with check_*
to /usr/local/nginx/libexec
.
cp /usr/lib/nagios/plugins/check_* /usr/local/nagios/libexec
and wait for nagios to reload/refresh browser window