Page 1 of 1

Buffer Size error in Nagios (nrpe version 3.2.1)

Posted: Mon Jun 04, 2018 3:05 pm
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.

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

Posted: Mon Jun 04, 2018 3:56 pm
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?

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

Posted: Tue Jun 05, 2018 8:40 am
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.

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

Posted: Tue Jun 05, 2018 5:03 pm
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.