<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 29 Mar 2011, at 17:08, Daniel Wittenberg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><font face="Calibri" size="2"><span style="font-size: 11pt; "><div>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.</div><div> </div><div>I updated nrpe-2.12/include/common.h:</div><div> </div><div>#define MAX_INPUT_BUFFER        20480</div><div><font face="Times New Roman"> </font></div><div>#define MAX_PACKETBUFFER_LENGTH 20480</div><div><font face="Times New Roman"> </font></div><div>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:</div><div> </div><div><font face="Times New Roman"><a href="http://labs.opsview.com/2008/08/enhancing-nrpe-for-large-output/"><font face="Calibri" color="blue"><u>http://labs.opsview.com/2008/08/enhancing-nrpe-for-large-output/</u></font></a></font></div></span></font></div></span></blockquote><div><br></div>*Ahem*. Opsview, not op5 :)</div><div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><font face="Calibri" size="2"><span style="font-size: 11pt; "><div>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?</div></span></font></div></span></blockquote><div><br></div>You would have to patch nsclient++ to include this. Michael Medin is the developer and I'm sure he'd welcome a working example.</div><div><br></div><div>Ton</div><div><br></div></body></html>