Page 2 of 4
Re: NRPE v.2.15 set maximum output lenght
Posted: Tue Jun 16, 2015 1:36 am
by michaelli
Hi.
I resolve this SSL handshake issue. It needs to compile NRPE both in server and client side
Re: NRPE v.2.15 set maximum output lenght
Posted: Tue Jun 16, 2015 9:37 am
by tmcdonald
Are we all set to close this thread?
Re: NRPE v.2.15 set maximum output lenght
Posted: Tue Jun 16, 2015 10:18 am
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?
Re: NRPE v.2.15 set maximum output lenght
Posted: Tue Jun 16, 2015 11:13 am
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.
Re: NRPE v.2.15 set maximum output lenght
Posted: Tue Jun 16, 2015 2:36 pm
by jolson
Sounds good - let us know if you have any further difficulties.
Re: NRPE v.2.15 set maximum output lenght
Posted: Thu Jun 18, 2015 3:10 am
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.
Re: NRPE v.2.15 set maximum output lenght
Posted: Thu Jun 18, 2015 7:49 am
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?
Re: NRPE v.2.15 set maximum output lenght
Posted: Thu Jun 18, 2015 10:27 am
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.
Re: NRPE v.2.15 set maximum output lenght
Posted: Thu Jun 18, 2015 9:10 pm
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]
Re: NRPE v.2.15 set maximum output lenght
Posted: Fri Jun 19, 2015 10:34 am
by abrist
Is the output above the full output from the check?