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)

3 Answers 3

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.

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.

3
  • 3
    How will that fix OPs problem ?
    – Soren A
    Jun 29, 2018 at 10:01
  • What do you mean saying "OPs problem"? As I can see from the first post, nagios were installed, but without it's plugins. That worked for me. Am I missing something? Aug 9, 2018 at 10:52
  • I think your answer was the right direction, but you didn't identify the problem. Since the OP's question wasn't "how do I install plugins" you needed to say that was the issue, then go about explaining how to install them.
    – Aaron R.
    Mar 5, 2019 at 18:47
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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .