NagiosEnterprises / nrpe

NRPE Agent
GNU General Public License v2.0
259 stars 133 forks source link

payload packed size reduced to 8K - should be able to get as large as 64K #192

Open SteveBeauchemin opened 6 years ago

SteveBeauchemin commented 6 years ago

nrpe version 3.2.1 on HP-UX compiled from source nrpe version 3.2.1 on Nagios XI system also compiled from source

Communication between the 2 systems chops off after 8K of data is received by the Nagios XI server

hedenface commented 6 years ago

@SteveBeauchemin The fix is in the increase-output-size-3.2.1 branch. You will still have to increase the MAX_PLUGIN_OUTPUT_LENGTH in nagios.h in Nagios Core.

On line 2173 in src/nrpe.c you'll see:

int       output_size = 65536 * 8;

You can adjust that number as much as you want - but you'll have to recompile each time if it needs to be bigger.

Let me know if this works, please.