Page 2 of 3

Re: Plugin Output Size limiting to 1 KB

Posted: Mon Apr 04, 2016 10:20 am
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).

Re: Plugin Output Size limiting to 1 KB

Posted: Mon Apr 04, 2016 11:32 am
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.

Re: Plugin Output Size limiting to 1 KB

Posted: Mon Apr 04, 2016 1:15 pm
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.

Re: Plugin Output Size limiting to 1 KB

Posted: Mon Apr 04, 2016 3:34 pm
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

Re: Plugin Output Size limiting to 1 KB

Posted: Tue Apr 05, 2016 9:04 am
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

Re: Plugin Output Size limiting to 1 KB

Posted: Tue Apr 05, 2016 11:08 am
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.

Re: Plugin Output Size limiting to 1 KB

Posted: Mon Apr 11, 2016 12:23 pm
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

Re: Plugin Output Size limiting to 1 KB

Posted: Mon Apr 11, 2016 1:19 pm
by hsmith
Can you please attempt to install the openssl-devel package and see if this helps?

Re: Plugin Output Size limiting to 1 KB

Posted: Fri Apr 15, 2016 4:56 pm
by mdusanapudi
Hi
can you please let me know the max output size that we can use with Nrpe 2.16 RC2.

Re: Plugin Output Size limiting to 1 KB

Posted: Mon Apr 18, 2016 10:08 am
by lmiltchev
According to our developers, "it's almost 64K". Thanks!