4

I installed nagios following this tutorial http://sharadchhetri.com/2014/02/08/install-and-configure-nagios-core-4-on-ubuntu-12-04-lts/

On starting nagios and apache2, and browsing to nagios admin portal, I saw errors like below

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

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_http)

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_users)
TheWanderer
  • 19,525
  • 12
  • 52
  • 65
Kenshin
  • 251

3 Answers3

7

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.

Gryu
  • 8,002
  • 9
  • 37
  • 53
Kenshin
  • 251
1

I prefer to install it from sources:

cd ~
curl -L -O http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar zxf nagios-plugins-*.tar.gz
cd nagios-plugins-*
./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make
sudo make install

Hope, it'll be helpful.

1

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.

Michael
  • 111
  • 1