Page 1 of 3
stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) fa
Posted: Mon Nov 30, 2015 8:02 pm
by al_orange
I'm receiving this error in nagios (the gui), in Currents Status --> Hosts:
stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Mon Nov 30, 2015 8:08 pm
by Box293
Is this in the status information column of all hosts or just one host?
A screenshot might help.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Mon Nov 30, 2015 8:16 pm
by al_orange
Box293 wrote:Is this in the status information column of all hosts or just one host?
A screenshot might help.
Screenshot attached.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Mon Nov 30, 2015 8:18 pm
by Box293
Can you please post:
- One of these host definitions
If they use a template, the template definition
The command definition used by the host or the template
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 12:56 pm
by al_orange
Box293 wrote:Can you please post:
- One of these host definitions
If they use a template, the template definition
The command definition used by the host or the template
I'm sorry, I can't find my host definitions. Where do I find this again? In the Nagios host or Nagios server? What is the usual path?
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 1:07 pm
by rkennedy
Usually it's in the /usr/local/nagios/etc/ directory or a sub directory stemming from that one. Where did you create the file for the host 'ora_linux7_xxxxxxxxxx'?
Did you install the plugins when you installed core?
Can you post the result of the following command?
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 1:24 pm
by al_orange
rkennedy wrote:Usually it's in the /usr/local/nagios/etc/ directory or a sub directory stemming from that one. Where did you create the file for the host 'ora_linux7_xxxxxxxxxx'?
Did you install the plugins when you installed core?
Can you post the result of the following command?
I'm not sure what you mean by where did I create the file. It's on another VM, on a different IP address.
Yes, I think I installed the plugins, but it's been a couple weeks, I don't quite remember.
For the command (on the nagios server), I got:
Code: Select all
[root@nagios etc]# ls /usr/local/nagios/libexec
check_nrpe eventhandlers
That command didn't find anything on the host.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 1:31 pm
by rkennedy
Looks like you need to install Nagios plugins on the host server. This should work to install them -
Code: Select all
cd /tmp
wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz
tar xvf nagios-plugins-2.1.1.tar.gz
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
Let us know if you run into any issues.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 1:36 pm
by al_orange
rkennedy wrote:Looks like you need to install Nagios plugins on the host server. This should work to install them -
Code: Select all
cd /tmp
wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz
tar xvf nagios-plugins-2.1.1.tar.gz
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
Let us know if you run into any issues.
Looks like I already ran into an issue for the host:
Code: Select all
[root@XEN1 tmp]# ./configure --with-nagios-user=nagios --with-nagios-group=nagios
-bash: ./configure: No such file or directory
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 1:39 pm
by hsmith
You need to change into the nagoios-plugins directory after you untar it.