Page 1 of 3

Plugin Output Size limiting to 1 KB

Posted: Thu Mar 31, 2016 6:09 am
by mdusanapudi
Hi,
Is there a way to increase the plugin output size to 4kb and More?I can see a post in the forum that a bug is reported for the same.
Is that bug fixed now ?I tried to do the changes to common.h file but no luck.After compiling I am getting Error:0 byted received.
Any help is appreciated.Thanks in Advance.

Re: Plugin Output Size limiting to 1 KB

Posted: Thu Mar 31, 2016 9:31 am
by rkennedy
Where are you seeing the output truncated?

If you're referring to the status displayed in XI. This link outlines how to do so - https://support.nagios.com/kb/article.php?id=478

Re: Plugin Output Size limiting to 1 KB

Posted: Thu Mar 31, 2016 9:44 am
by mdusanapudi
We have a log file monitoring with check_log3 and .any output that exceed 1KB is not showing up in the Service output

Re: Plugin Output Size limiting to 1 KB

Posted: Thu Mar 31, 2016 10:52 am
by tmcdonald
Did you take a look at the link provided by @rkennedy above? That shows how to expand the database tables to allow for longer status output. Bear in mind this will only affect new results going forward, not previous results.

Re: Plugin Output Size limiting to 1 KB

Posted: Thu Mar 31, 2016 3:27 pm
by mdusanapudi
My question was rather wrong.
Actually I need to increase the NRPE agent output from 1 KB to 4KB .

Re: Plugin Output Size limiting to 1 KB

Posted: Thu Mar 31, 2016 3:47 pm
by lmiltchev
What is the NSClient++ version that you are currently using? Can you post the nsclient.ini file?

Re: Plugin Output Size limiting to 1 KB

Posted: Thu Mar 31, 2016 5:13 pm
by mdusanapudi
Its NRPE agent running on SLES 12

Re: Plugin Output Size limiting to 1 KB

Posted: Fri Apr 01, 2016 10:34 am
by rkennedy
What version of NRPE are you running? I believe only the version that will support 4k is going to be NRPE RC.

Re: Plugin Output Size limiting to 1 KB

Posted: Fri Apr 01, 2016 10:39 am
by tmcdonald
rkennedy wrote:What version of NRPE are you running? I believe only the version that will support 4k is going to be NRPE RC.
This is correct:

https://github.com/NagiosEnterprises/nr ... d26b3d300d

Re: Plugin Output Size limiting to 1 KB

Posted: Fri Apr 01, 2016 10:43 am
by lmiltchev
NRPE 2.16 RC2 supports up to 64K. You will need to recompile NRPE on both ends in order to make this work - on the Nagios XI server, and the client (SLES 12 machine).

https://github.com/NagiosEnterprises/nr ... e-2-16-RC2

Hope this works.