NRPE v.2.15 set maximum output lenght

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi.

I resolve this SSL handshake issue. It needs to compile NRPE both in server and client side
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE v.2.15 set maximum output lenght

Post by tmcdonald »

Are we all set to close this thread?
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE v.2.15 set maximum output lenght

Post by abrist »

michaelli wrote:Hi.

I resolve this SSL handshake issue. It needs to compile NRPE both in server and client side
Great. How are the new payload sizes working out for you?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi abrist,

Thank your reply me so many questions.
I try to set define MAX_INPUT_BUFFER 16384 / 65536. The maximum characters are around 6000.
I think now the limitation is in SQL DB side. I think this value is acceptable but may be challenge by other team.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NRPE v.2.15 set maximum output lenght

Post by jolson »

Sounds good - let us know if you have any further difficulties.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi abrist / jolson,

I had fixed linux nrpe maximum length.

But I don't have skill how to compile nrpe in AIX 5.3 / 6.1 and Soarlis 10 version. what package need to install for compile NRPE

In nagiosxi side, MAX_INPUT_BUFFER 65535.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi abrist / jolson,

After I demo /var/log/messages can display to 6000 character in nagios to others team. Their comment is want to show more and more log.

I execute check_nrpe -H 172.31.8.198 -c check_logfiles in nagiosxi. It can display more then 10000 character. Therefore, I think this is limited in DB side.

Could you help to provide the command to set this log field can store 65535 character.

Some client can more then 1 log services. Does this apply to all service log fields?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE v.2.15 set maximum output lenght

Post by abrist »

Try running the following to update the column sizes:

Code: Select all

echo "alter table nagios.nagios_servicestatus modify output varchar(50000);" | mysql -pnagiosxi
echo "alter table nagios.nagios_servicestatus modify long_output varchar(50000);" | mysql -pnagiosxi
echo "alter table nagios.nagios_servicestatus modify perfdata varchar(50000);" | mysql -pnagiosxi
echo "desc nagios.nagios_servicestatus" | mysql -t -pnagiosxi | grep "output\|perfdata"
This will make the service and host list pages in XI look very . . . funky.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
michaelli
Posts: 115
Joined: Thu Jan 29, 2015 11:21 am

Re: NRPE v.2.15 set maximum output lenght

Post by michaelli »

Hi abrist,

After apply your command and reboot nagios.

Code: Select all

[root@nagiosxi ~]# echo "alter table nagios.nagios_servicestatus modify output varchar(50000);" | mysql -pnagiosxi
echo "alter table nagios.nagios_servicestatus modify long_output varchar(50000);" | mysql -pnagiosxi
echo "alter table nagios.nagios_servicestatus modify perfdata varchar(50000);" | mysql -pnagiosxi
echo "desc nagios.nagios_servicestatus" | mysql -t -pnagiosxi | grep "output\|perfdata"[root@nagiosxi ~]# echo "alter table nagios.nagios_servicestatus modify long_output varchar(50000);" | mysql -pnagiosxi
[root@nagiosxi ~]# echo "alter table nagios.nagios_servicestatus modify perfdata varchar(50000);" | mysql -pnagiosxi
[root@nagiosxi ~]# echo "desc nagios.nagios_servicestatus" | mysql -t -pnagiosxi | grep "output\|perfdata"
| output                        | mediumtext   | YES  |     | NULL                |                |
| long_output                   | mediumtext   | YES  |     | NULL                |                |
| perfdata                      | mediumtext   | YES  |     | NULL                |                |
[root@nagiosxi ~]#
But it is not work. I generate 13 error messages. In nagios web, it shows 13th and 1 - 9th messages. 10 - 12th messages are missing

In nagios server, I run the command check_nrpe -H 172.31.8.198 -c check_logfiles manually. It can get all messages.

Code: Select all

[root@nagiosxi libexec]# ./check_nrpe -H 172.31.8.198 -c check_logfiles
CRITICAL - (13 errors) - Jun 19 09:49:30 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 013 ...
tag /var/log/messages CRITICAL
Jun 19 09:49:02 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 001
Jun 19 09:49:04 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 002
Jun 19 09:49:06 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 003
Jun 19 09:49:08 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 004
Jun 19 09:49:10 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 005
Jun 19 09:49:14 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 006
Jun 19 09:49:16 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 007
Jun 19 09:49:18 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 008
Jun 19 09:49:20 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 009
Jun 19 09:49:23 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 010
Jun 19 09:49:25 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 011
Jun 19 09:49:27 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 012
[b]Jun 19 09:49:30 gssons02 root: ####<Jun 15, 2015 11:07:07 PM GMT+08:00> <Error> <HTTP> <cpspap11> <onl1-ms1b> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <44c8c11e970ceb1f:-cc987b4:14d780461e3:-7ff9-0000000000000936> <1434380827145> <BEA-101104> <Servlet execution in servlet context ServletContext@682766619[app:CPO_Service_WAR-R7_1_P02-C1 module:CP_Service_WAR-0.3.0.0-R7_1-20150505-P02.war path:/cplusservice spec-version:2.5] failed, java.io.IOException: Write Channel Closed. END 013[/b]

You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE v.2.15 set maximum output lenght

Post by abrist »

Is the output above the full output from the check?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked