[Nagiosplug-devel] NRPE larger buffers

Daniel Wittenberg daniel.wittenberg.r0ko at statefarm.com
Tue Mar 29 20:41:55 CEST 2011

Interesting follow-up, I found it I use 8192 it seems to be very stable, above that things don't work right.  Not sure what it means yet, just thought it was interesting.


From: Daniel Wittenberg
Sent: Tuesday, March 29, 2011 11:08 AM
To: 'nagiosplug-devel at lists.sourceforge.net'
Subject: NRPE larger buffers

I've seen this problem posted from many sources over the years, but alas, there is no way to dynamically adjust the NRPE buffers in the main code.

I updated nrpe-2.12/include/common.h:

#define MAX_INPUT_BUFFER        20480


I can then use check_nrpe to talk to our nslclient (with string_length=20480) and everything appears to work fine.  However, when talking to nrpe, even localhost, I still get some CRC failure messages.  For the heck of it I disabled that fatal return code, and sometimes it works, sometimes it doesn't.  Any clue why crc would sometimes fail and sometimes not ?  I looked at the code but didn't see anything obvious.  There was a nice patch from op5 for nrpe:


But there's no patch for nsclient to do this and since I have multi-platforms to support that doesn't work so well for me.  Any other clues how to get this to work stable with larger buffer sizes?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20110329/f18a3658/attachment.html>

More information about the Devel mailing list