getting error execv /opt/nrpe/bin/nrpe: Exec format error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

getting error execv /opt/nrpe/bin/nrpe: Exec format error

Post by nagiosuser1000 »

Getting error execv /opt/nrpe/bin/nrpe: Exec format error in /var/adm/syslog/syslog.log
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro

Post 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
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro

Post 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
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro

Post 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:1213: warning: second parameter of `va_start' not last named argument
snprintf.c:1213: 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro

Post by nagiosuser1000 »

It is working now.

Thanks a lot Benjamin
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: getting error execv /opt/nrpe/bin/nrpe: Exec format erro

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked