Buffer Size error in Nagios (nrpe version 3.2.1)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

Buffer Size error in Nagios (nrpe version 3.2.1)

Post by vy3734 »

Hi,
I'm running nrpe version 3.2.1 on the nagios host. I'm trying to get the output from custom script that i'm execute on the agent using nrpe. The output is getting truncated. I have upgraded my nrpe version to 3.2.1 for the very reason that it has a larger buffer size.
command:
/usr/local/nagios/libexec/check_nrpe -H xx.xx.xxx.xxx -c $command -a $argument
This is the error seeing
CHECK_NRPE: Receive buffer size - 16368 bytes received (4 expected).
#Output of the script that is being executed truncated#

Can you please help me figure out the issue here. I tried re-installing nrpe too.

Thanks in advance.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Buffer Size error in Nagios (nrpe version 3.2.1)

Post by npolovenko »

@vy3734, Did you upgrade both the client and the agent nrpe? Could you share the plugin with us or send it to me in a private message?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

Re: Buffer Size error in Nagios (nrpe version 3.2.1)

Post by vy3734 »

@npolovenko, yes both my client and agent have nrpe 3.2.1. I don't think i can share the plugin itself, but in a nutshell the plugin is running netstat commands. But out of 100 servers, i only see the issue with 4 or 5 servers, i should've had the same issue with all the servers if there was a plugin issue. Also i observed that 1/5 attempts at executing the nrpe command i am getting the full output of the plugin. I'm guessing it has got something to do with running netstat command in specific intervals.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Buffer Size error in Nagios (nrpe version 3.2.1)

Post by tgriep »

It could be that the plugin is timing out so edit the check_nrpe command and add the following to the command to increase the timeout to 59 seconds.

Code: Select all

-t 59
That might help out in the intermittent issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked