Page 1 of 1

nrpe buffer size increase

Posted: Tue Sep 27, 2016 5:59 am
by sanjayhiranisq
we would like to increase the prefdata output that nrpe can send(client) and receive(server) to 55000 bytes. How can we achieve this. This is for a check that is done to capture stats of all disks on a system of which there could be many. Since this check is heavey weight on the system we do not want to split this into individual nrpe checks.
Is this possible? we are running the most up to date nagiosxi and centos6.

Re: nrpe buffer size increase

Posted: Tue Sep 27, 2016 10:09 am
by bwallace
NRPE v3 has had major improvements to the packet size to resolve the limitations of previous versions. The packet size is now variable up to 64K (referred to as v3 packet). You'll have to upgrade NRPE to v3 on the client(s) and on the Nagios server.

This doc goes into greater detail:
https://support.nagios.com/kb/article.php?id=518

Re: nrpe buffer size increase

Posted: Tue Sep 27, 2016 10:55 am
by sanjayhiranisq
I am using nagios xi 5.2.9.
Is there a newer version than this?
The nrpe version included in this distribution is 2.15
Version: 2.15
Last Modified: 09-06-2013

The client side is also the same
Version: 2.15
Last Modified: 09-06-2013

This truncates the result at exactly 1024 bytes
./check_nrpe -H localhost -c check_dev_stats |wc -c
1024

Is there an option I need to specify to check_nrpe to enable a larger buffer ?

Re: nrpe buffer size increase

Posted: Tue Sep 27, 2016 11:00 am
by bwallace
NRPE v3 was released only a few weeks ago and is not yet a part of any XI packages.
No, one cannot get beyond 1024 in NRPE v2.15 -- You'll need to upgrade to NRPEv3 on the XI machine and on the clients to take advantage of the larger packet size in v3, refer to this doc on upgrading NRPE:
https://support.nagios.com/kb/article.php?id=520

Re: nrpe buffer size increase

Posted: Tue Sep 27, 2016 11:04 am
by sanjayhiranisq
ok just saw your link in the previous post.

I tried compiling version 3 from git and installed check_nrpe and nrpe on server and client. the error I get is this:

Error: Request packet had invalid CRC32
Client request was invalid, bailing out...

On the client.
and on the server side :
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

Could you instead include it as an update for Nagios xi so it is part of the official distribution please or give me instructions on how to get this working.

Thank you

Re: nrpe buffer size increase

Posted: Tue Sep 27, 2016 12:29 pm
by lmiltchev
On the client.
and on the server side :
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Try troubleshooting the issue by following the steps, outlined in the document below ("V. CHECK_NRPE: Received 0 Bytes From Daemon. Check The Remote Server Logs For Error"):
https://assets.nagios.com/downloads/nag ... utions.pdf
Could you instead include it as an update for Nagios xi so it is part of the official distribution please or give me instructions on how to get this working.
We will eventually include NRPE v3.0 in Nagios XI, and in the "Linux Agent" installer but it is going to take some time. We need to make sure it is stable enough, all of the possible bugs are fixed, etc. It hasn't been used long enough in order to include it to XI.

Re: nrpe buffer size increase

Posted: Fri Mar 17, 2017 10:26 am
by sanjayhiranisq
Please could you tell me if v3 is now included in the recent updates of xi ?

Re: nrpe buffer size increase

Posted: Fri Mar 17, 2017 11:28 am
by cdienger
5.4.3 still ships with an older version, but we're tentatively looking to include it in 5.5. https://www.nagios.com/roadmaps/. Are you running into any issues we can help with or are we okay closing the thread at this point?