Plugin Output Size limiting to 1 KB

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

Plugin Output Size limiting to 1 KB

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Plugin Output Size limiting to 1 KB

Post 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
Former Nagios Employee
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

Re: Plugin Output Size limiting to 1 KB

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Plugin Output Size limiting to 1 KB

Post 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.
Former Nagios employee
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

Re: Plugin Output Size limiting to 1 KB

Post by mdusanapudi »

My question was rather wrong.
Actually I need to increase the NRPE agent output from 1 KB to 4KB .
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plugin Output Size limiting to 1 KB

Post by lmiltchev »

What is the NSClient++ version that you are currently using? Can you post the nsclient.ini file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

Re: Plugin Output Size limiting to 1 KB

Post by mdusanapudi »

Its NRPE agent running on SLES 12
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Plugin Output Size limiting to 1 KB

Post by rkennedy »

What version of NRPE are you running? I believe only the version that will support 4k is going to be NRPE RC.
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Plugin Output Size limiting to 1 KB

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

Re: Plugin Output Size limiting to 1 KB

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked