nrpe buffer size increase

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sanjayhiranisq
Posts: 32
Joined: Tue Sep 13, 2016 3:04 am

nrpe buffer size increase

Post 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.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: nrpe buffer size increase

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
sanjayhiranisq
Posts: 32
Joined: Tue Sep 13, 2016 3:04 am

Re: nrpe buffer size increase

Post 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 ?
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: nrpe buffer size increase

Post 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
Be sure to check out the Knowledgebase for helpful articles and solutions!
sanjayhiranisq
Posts: 32
Joined: Tue Sep 13, 2016 3:04 am

Re: nrpe buffer size increase

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nrpe buffer size increase

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sanjayhiranisq
Posts: 32
Joined: Tue Sep 13, 2016 3:04 am

Re: nrpe buffer size increase

Post by sanjayhiranisq »

Please could you tell me if v3 is now included in the recent updates of xi ?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: nrpe buffer size increase

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked