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

Re: Plugin Output Size limiting to 1 KB

Post by mdusanapudi »

Thanks for the response.I have one question on the agent upgrade.
If I upgrade the agent on the nagios server will the server still eb able to connect ot the older version of the agents(NRPE V2.15).
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 »

If I upgrade the agent on the nagios server will the server still eb able to connect ot the older version of the agents(NRPE V2.15).
Yes, it's backwards compatible.
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 »

I compiled and installed the version of the agent you mentioned in Nagios and the target machine but still the issue persist.I also did a restart of XINETD after installing the new agent since i am running the agent under inetd.
Let me know if I have to perform any other stpes to make it work.
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 »

Can you run the following command on both, Nagios XI server, and the client machine (remote box), and show the output?

Code: Select all

/usr/local/nagios/bin/nrpe
I tested NRPE Version: 2.16RC2, and it seemed to resolve the issue for me. I set up a simple command on the remote box:

Code: Select all

command[catafile]=cat $ARG1$
and restarted xinetd:

Code: Select all

service xinetd restart
On the Nagios XI box, I ran:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c catafile -a '/usr/local/nagios/var/nagios.log' | wc -m
22518
Note: Before recompiling NRPE, with ver. 2.15, I was getting 1024 characters.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c catafile -a '/usr/local/nagios/var/nagios.log' | wc -m
1024
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 »

unfortunately after doing this ?upgrade all the HP UX servers running NRPE V2.0 getting Service check Time outs,is there way I can fix these errors quickly
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 are the commands that you ran while recompiling NRPE?

Can you show us the actual check (that is failing) run from the command line, along with the output of it?

Also, show us how the command is defined on the client.

Run:

Code: Select all

/usr/local/nagios/bin/nrpe | grep -i version
on both - Nagios XI and the client, and show the output.
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 »

Now I am trying to test this in a suse 11,12 boxes and getting ssl header errors,please advice
Steps followed to install

1.unzip nrpe-nrpe-2-16-RC2.zip
2./configure
checking for SSL headers... configure: error: Cannot find ssl headers
Tried to install suse10 ,11 ,12 but no luck and getting the same error.

On nagios server able to install it successfully though

/usr/local/nagios/bin/nrpe | grep -i version
Version: 2.16RC2
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Plugin Output Size limiting to 1 KB

Post by hsmith »

Can you please attempt to install the openssl-devel package and see if this helps?
Former Nagios Employee.
me.
mdusanapudi
Posts: 35
Joined: Tue Mar 15, 2016 1:31 pm

Re: Plugin Output Size limiting to 1 KB

Post by mdusanapudi »

Hi
can you please let me know the max output size that we can use with Nrpe 2.16 RC2.
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 »

According to our developers, "it's almost 64K". Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked