[Nagios-devel] NRPE and NMAP problems

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] NRPE and NMAP problems

Post by Guest »

This is a multi-part message in MIME format.
--------------000801030701000309000309
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi all,

I'm having some problems with NMAP scanning my NRPE servers [1]. It
turned out I'm not alone and someone also sent a patch that was
unfortunately never integrated [2]. I tested the patch from this thread
and it indeed fixes the issue.

I've attached a refreshed patch against 2.14 and would really appreciate
if it could be included by someone with commit access.

Best regards,
Simon

1: https://bugs.launchpad.net/ubuntu/+sour ... ug/1126890
2: http://comments.gmane.org/gmane.network ... devel/6774



--------------000801030701000309000309
Content-Type: text/x-patch;
name="noremove_pid.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="noremove_pid.patch"

--- src/nrpe.c.orig 2013-04-29 15:50:33.552201520 -0400
+++ src/nrpe.c 2013-04-29 15:53:17.733198564 -0400
@@ -927,7 +927,7 @@
/* close socket prioer to exiting */
close(sock);

- return;
+ exit(STATE_CRITICAL);
}

/* handle signals */
@@ -950,7 +950,7 @@
/* close socket prior to exiting */
close(new_sd);

- return;
+ exit(STATE_CRITICAL);
}

nptr=(struct sockaddr_in *)&addr;

--------------000801030701000309000309--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: simon.deziel@gmail.com
Locked