Page 2 of 3
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 1:47 pm
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]#
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 1:50 pm
by rkennedy
What OS is Nagios running on?
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 2:08 pm
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]#
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Tue Dec 15, 2015 5:59 pm
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
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 1:02 pm
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.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 1:05 pm
by hsmith
Did you restart the Nagios service after installing the plugins?
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 1:27 pm
by al_orange
hsmith wrote:Did you restart the Nagios service after installing the plugins?
Yes, using:
/etc/rc.d/init.d/nagios restart
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 3:52 pm
by rkennedy
On the Nagios server, can you post the result of the following -
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 4:22 pm
by al_orange
rkennedy wrote:On the Nagios server, can you post the result of the following -
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
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 4:25 pm
by rkennedy
After you ran
./configure --with-nagios-user=nagios --with-nagios-group=nagios, did you also run
It looks like your plugins haven't been compiled yet.