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

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

Post by al_orange »

hsmith wrote:You need to change into the nagoios-plugins directory after you untar it.
Okay, did that, received more errors:

Code: Select all

[root@XEN1 nagios-plugins-2.1.1]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/nagios-plugins-2.1.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@XEN1 nagios-plugins-2.1.1]#
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

What OS is Nagios running on?
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:What OS is Nagios running on?
Oracle Linux 7 (64-bit).

Code: Select all

[root@nagios etc]# cat /etc/*release*
Oracle Linux Server release 7.1
NAME="Oracle Linux Server"
VERSION="7.1"
ID="ol"
VERSION_ID="7.1"
PRETTY_NAME="Oracle Linux Server 7.1"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:7:1"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 7"
ORACLE_BUGZILLA_PRODUCT_VERSION=7.1
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=7.1
Red Hat Enterprise Linux Server release 7.1 (Maipo)
Oracle Linux Server release 7.1
cpe:/o:oracle:linux:7:1
[root@nagios etc]#
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

You are missing the C Compiler and probably other required packages. Login as root on the server and run the following to install the missing packages.

Code: Select all

yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel sudo sysstat xinetd bc
Be sure to check out our Knowledgebase for helpful articles and solutions!
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 »

tgriep wrote:You are missing the C Compiler and probably other required packages. Login as root on the server and run the following to install the missing packages.

Code: Select all

yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel sudo sysstat xinetd bc
Okay, great. The install worked. However I'm still receiving the same error message as my first post.
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 »

Did you restart the Nagios service after installing the plugins?
Former Nagios Employee.
me.
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 »

hsmith wrote:Did you restart the Nagios service after installing the plugins?
Yes, using: /etc/rc.d/init.d/nagios restart
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

On the Nagios server, can you post the result of the following -

Code: Select all

ls -l /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:On the Nagios server, can you post the result of the following -

Code: Select all

ls -l /usr/local/nagios/libexec/

Code: Select all

[root@nagios ~]# ls -l /usr/local/nagios/libexec/
total 84
-rwxrwxr-x 1 nagios nagios 81470 Nov 18 11:07 check_nrpe
drwxr-xr-x 4 nagios nagios  4096 Nov 11 15:40 eventhandlers
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

After you ran ./configure --with-nagios-user=nagios --with-nagios-group=nagios, did you also run

Code: Select all

make
make install 
It looks like your plugins haven't been compiled yet.
Former Nagios Employee
Locked