Page 1 of 1

Error after restart xinetd on remote host

Posted: Thu Sep 24, 2015 4:43 am
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

Re: Error after restart xinetd on remote host

Posted: Thu Sep 24, 2015 9:20 am
by hsmith
What does your /etc/xinetd.d/nrpe file look like?

Re: Error after restart xinetd on remote host

Posted: Thu Sep 24, 2015 8:12 pm
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

Re: Error after restart xinetd on remote host

Posted: Fri Sep 25, 2015 9:09 am
by hsmith
Did you edit out your IP address, or does it actually say "ip address here" under only_from?

Re: Error after restart xinetd on remote host

Posted: Wed Feb 24, 2016 6:35 pm
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,