stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) fa

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) fa

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post by Box293 »

Is this in the status information column of all hosts or just one host?

A screenshot might help.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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.
Attachments
nagioscreenshot.png
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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?

Code: Select all

ls /usr/local/nagios/libexec
Former Nagios Employee
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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?

Code: Select all

ls /usr/local/nagios/libexec
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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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.
Former Nagios Employee
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post by hsmith »

You need to change into the nagoios-plugins directory after you untar it.
Former Nagios Employee.
me.
Locked