Page 1 of 1
getting error execv /opt/nrpe/bin/nrpe: Exec format error
Posted: Thu Apr 25, 2019 2:21 pm
by nagiosuser1000
Getting error execv /opt/nrpe/bin/nrpe: Exec format error in /var/adm/syslog/syslog.log
Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro
Posted: Thu Apr 25, 2019 4:52 pm
by benjaminsmith
Hello
@nagiosuser1000,
Did you follow the instructions for compiling NRPE from source ( see below)? Also, what version of HP-UX are you running?
NRPE - How To Install NRPE v3 From Source
Thanks.
Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro
Posted: Fri Apr 26, 2019 5:07 pm
by nagiosuser1000
Thanks a lot for your reply. we are in the process of compiling now.
We are also getting another error
(No output on stdout) stderr: connect to address X.X.X.X port 5666: No route to host
Thank you
Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro
Posted: Fri Apr 26, 2019 5:17 pm
by nagiosuser1000
The compilation was successful. I see there is no instruction for hpux
We have hpux 11.11,11.23 and 11.31
Thank you
Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro
Posted: Fri Apr 26, 2019 5:52 pm
by nagiosuser1000
Getting following error when we execute " make all " command
*** Configuration summary for nrpe 3.2.1 2017-09-01 ***:
General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios
Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client
or type 'make' to get a list of make options.
[root:/nfs/downloads/linux/nagios/nrpe-nrpe-3.2.1]make all
cd ./src/; make
gcc -g -O2 -I/usr/include -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -c ./snprintf.c
snprintf.c: In function `smb_snprintf':
snprintf.c

warning: second parameter of `va_start' not last named argument
snprintf.c

internal compiler error: in convert_move, at expr.c:565
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:
http://gcc.gnu.org/bugs.html> for instructions.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro
Posted: Mon Apr 29, 2019 11:36 am
by benjaminsmith
Hi
@nagiosuser1000,
Looks like a compiler error. What version of gcc is installed on this system? Can you try upgrading gcc and then re-compile?
Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro
Posted: Fri May 24, 2019 11:22 am
by nagiosuser1000
It is working now.
Thanks a lot Benjamin
Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro
Posted: Fri May 24, 2019 11:51 am
by benjaminsmith
Hi
@nagiosuser1000,
It is working now.
Thanks a lot Benjamin
That's good news. Thanks for the follow up.
I'll close out this thread, but feel free to open a new one if you have any other questions.