Page 1 of 1

NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Mon Jun 01, 2015 1:19 am
by Mike-sbg
I'm using Nagios Using NSCA and NSCA-NG for getting information about my windows- and "old" EL5-Linux-Server.

There is a limit of 512 bytes for sending Information in the old NSCA-Protokoll (NSCA-Server V 2.7.2)

Did anyone find out a solution that you can send longer outputs to the NSCA-Server

for example:

* NSCLIENT-Version compatible with NSCA-NG,
* a Patch for NSCA-Server allowing longer Output?
* Version of NSCA-NG for EL5?

Any sugestion would be appreciated.

Your Mike

Re: NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Mon Jun 01, 2015 8:32 am
by eloyd
Are you limited to having to use NSCA? If, instead, you could wrap your checks into an SSH-based script, you could send back arbitrarily long output strings.

Re: NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Mon Jun 01, 2015 2:21 pm
by jdalrymple
You can either read the patch and apply it yourself (it's 4 characters in 1 line), or

Code: Select all

tar -xzvf nrpe-2.7.2.tar.gz
patch -p0 < nsca-2.7.2_4096byte.patch

Re: NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Tue Jun 02, 2015 12:41 am
by Mike-sbg
eloyd wrote:Are you limited to having to use NSCA? If, instead, you could wrap your checks into an SSH-based script, you could send back arbitrarily long output strings.
Yes I'm stuck to NSCA (without NG) as I'm using NSCLIENT++ for Windows and NRPE wouldn't be a solution for my problem.
I even tried NRDP which is supported by NSCLIENT++ but this causes errors,too :-(

Re: NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Tue Jun 02, 2015 12:43 am
by Mike-sbg
jdalrymple wrote:You can either read the patch and apply it yourself (it's 4 characters in 1 line), or

Code: Select all

tar -xzvf nrpe-2.7.2.tar.gz
patch -p0 < nsca-2.7.2_4096byte.patch
As I read patching the size, doesn't fix the problem, because it will create errors with the checksum, or isn't that true anymore?

Re: NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Tue Jun 02, 2015 9:18 am
by jdalrymple
You'll have to use the patched send_nsca also and then it should work fine. For nsclient++ it's just a config option.

I'm using this code in production.

Re: NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Wed Jun 03, 2015 1:57 am
by Mike-sbg
Thank you all for the help!!! :D

As suggested I patched den NSCA Command (Server and Client) and modified die Config in the NSClient++ and everything works fine.

One last tip for other reading this thread: When you patch the Parameter: MAX_PLUGINOUTPUT_LENGTH it is also necessary to patch the MAX_INPUT_BUFFER. If you miss this patch, the Data will be transported and accepted by the CRCCheck, but I will be truncated at the length of the MAX_INPUT_BUFFER

Re: NSCLIENT++ and NSCA - Limit out Outplug in

Posted: Wed Jun 03, 2015 9:14 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!