File nagios-nrpe-buffersize.patch of Package nrpe
# Up with Version 3.0, Nagios supports long hostoutputs.
# This patch adapts nrpe to support the standard buffersize
# of Nagios 3.0 - so plugins can send (very) long output via
# NRPE to the Nagios Server.
Index: include/common.h
===================================================================
--- include/common.h.orig
+++ include/common.h
@@ -41,7 +41,7 @@
#define DEFAULT_SOCKET_TIMEOUT 10 /* timeout after 10 seconds */
#define DEFAULT_CONNECTION_TIMEOUT 300 /* timeout if daemon is waiting for connection more than this time */
-#define MAX_INPUT_BUFFER 2048 /* max size of most buffers we use */
+#define MAX_INPUT_BUFFER 8192 /* max size of most buffers we use */
#define MAX_FILENAME_LENGTH 256
#define MAX_HOST_ADDRESS_LENGTH 256 /* max size of a host address */
@@ -60,7 +60,7 @@
#define NRPE_PACKET_VERSION_2 2
#define NRPE_PACKET_VERSION_1 1 /* older packet version identifiers (no longer supported) */
-#define MAX_PACKETBUFFER_LENGTH 1024 /* max amount of data we'll send in one query/response */
+#define MAX_PACKETBUFFER_LENGTH 8192 /* max amount of data we'll send in one query/response */
typedef struct packet_struct{
int16_t packet_version;