Error after restart xinetd on remote host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
steven.giang
Posts: 38
Joined: Tue May 12, 2015 3:08 am

Error after restart xinetd on remote host

Post by steven.giang »

Hi,

I have encountering below error when restarting xinetd on remote host

Started working: 3 available services
Sep 24 19:31:00 abtonlinepacih xinetd[21957]: execv( /usr/local/nagios/bin/nrpe ) failed: Exec format error (errno = 8)
Sep 24 19:31:00 abtonlinepacih xinetd[21918]: START: nrpe pid=21957 from=ip address here

I can confirmed check_ssh or tcp on localhost work fine, just when I execute the check_nrpe from nagios xi server, the remote host prompted the above error in /var/log/message.

any help would be much appreciated

Regards,
Steve
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Error after restart xinetd on remote host

Post by hsmith »

What does your /etc/xinetd.d/nrpe file look like?
Former Nagios Employee.
me.
steven.giang
Posts: 38
Joined: Tue May 12, 2015 3:08 am

Re: Error after restart xinetd on remote host

Post by steven.giang »

hsmith wrote:What does your /etc/xinetd.d/nrpe file look like?
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = ip address here
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Error after restart xinetd on remote host

Post by hsmith »

Did you edit out your IP address, or does it actually say "ip address here" under only_from?
Former Nagios Employee.
me.
steven.giang
Posts: 38
Joined: Tue May 12, 2015 3:08 am

Re: Error after restart xinetd on remote host

Post by steven.giang »

Hi hsmith,

Please mark as resolved,

I haven't does a clean installation of nrpe, I have remove all nrpe and reinstall fresh nrpe and it is working.

Thanks,
Locked