Page 1 of 1

[Nagios-devel] Nrpe and HPUX

Posted: Fri Apr 07, 2006 4:18 am
by Guest
This is a multi-part message in MIME format.

------=_NextPart_000_027F_01C65A4E.18CE73D0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit


> Thanks! This will be included in NRPE 2.5, which I will be
> releasing shortly...
STOOOOOOP!!!
i got another one which lead to a flood of "Network server accept failure"
under hp-ux 11.11:
accept() returns an error and sets errno to EAGAIN which is not handled in
the following lines.
This possibly can also happen with other operating systems, as the socket is
set to O_NONBLOCK.
I made a patch for it and tested it with
hppa2.0w-hp-hpux11.11
solaris-sparcv9-gcc
i686-pc-linux-gnu

Greetings from Munich,
Gerhard

------=_NextPart_000_027F_01C65A4E.18CE73D0
Content-Type: application/octet-stream;
name="nrpe-2.5pre.eagain.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="nrpe-2.5pre.eagain.patch"

diff -Naur nrpe-2.5/src/nrpe.c nrpe-2.5pre.eagain/src/nrpe.c=0A=
--- nrpe-2.5/src/nrpe.c 2006-03-21 22:46:27.000000000 +0100=0A=
+++ nrpe-2.5pre.eagain/src/nrpe.c 2006-04-07 13:28:42.875454000 +0200=0A=
@@ -721,6 +721,10 @@=0A=
/* some kind of error occurred... */=0A=
if(new_sd<0){=0A=
=0A=
+ /* socket nonblocking and no connection */=0A=
+ if(errno=3D=3DEAGAIN)=0A=
+ continue;=0A=
+=0A=
/* fix for HP-UX 11.0 - just retry */=0A=
if(errno=3D=3DENOBUFS)=0A=
continue;=0A=

------=_NextPart_000_027F_01C65A4E.18CE73D0--






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]