[Nagiosplug-devel] NRPE larger buffers

Daniel Wittenberg daniel.wittenberg.r0ko at statefarm.com
Tue Mar 29 18:08:04 CEST 2011


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

#define MAX_PACKETBUFFER_LENGTH 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:

http://labs.opsview.com/2008/08/enhancing-nrpe-for-large-output/

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?

Dan



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


More information about the Devel mailing list