(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping) in ubuntu

Solution 1:

If you install nagios 4 following this tutorial http://sharadchhetri.com/2014/02/08/install-and-configure-nagios-core-4-on-ubuntu-12-04-lts/", 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/nagios/libexec.

cp /usr/lib/nagios/plugins/check_* /usr/local/nagios/libexec

or

sudo ln -s /usr/lib/nagios/plugins/check_* /usr/local/nagios/libexec/

and wait for nagios to reload/refresh browser window.

Solution 2:

The OP hasn't installed the necessary plugins.

Instructions to install plugins can be found from the official docs - just select the platform you are using and scroll down to the 'Installing The Nagios Plugins' section.