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
NSCLIENT++ and NSCA - Limit out Outplug in
Re: NSCLIENT++ and NSCA - Limit out Outplug in
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.
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: NSCLIENT++ and NSCA - Limit out Outplug in
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
- Attachments
-
- nsca-2.7.2_4096byte.patch
- (438 Bytes) Downloaded 223 times
Re: NSCLIENT++ and NSCA - Limit out Outplug in
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.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.
I even tried NRDP which is supported by NSCLIENT++ but this causes errors,too
Re: NSCLIENT++ and NSCA - Limit out Outplug in
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?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
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: NSCLIENT++ and NSCA - Limit out Outplug in
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.
I'm using this code in production.
Re: NSCLIENT++ and NSCA - Limit out Outplug in
Thank you all for the help!!!
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
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
I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee