Page 1 of 1

How to increase check_nrpe output truncated / limited

Posted: Mon Dec 15, 2014 7:54 am
by sureshkraj2012
Hello,

I am aware there is a output limit for check_nrpe output.
But, I would like to change that value. Could you please direct me to path or file / parameter where I need to modify the particular value.

Nagios Server: Output
--------------------------------

[root@Nagios_server ~]# /usr/local/nagios/libexec/check_nrpe -H postgresqlsrv.domain.local -t 30 -c check_postgres -a '--dbuser=nagiosusr --dbpass=xxx --PGBINDIR=/db/pgsql/bin/ --action=database_size --warning=150GB --critical=250GB' | wc -c
1024

Inside Postgresql server
----------------------------
[user01@postgresqlsrv ~]$ sudo /usr/lib64/nagios/plugins/check_postgres.pl --dbuser=nagiosusr --dbpass=xxx --PGBINDIR=/db/pgsql/bin/ --action=database_size --warning=150GB --critical=250GB | wc -c
2366

Command inside nrpe.cfg on Postgresql server
------------------------------------------------------------

command[check_postgres]=/usr/lib64/nagios/plugins/check_postgres.pl $ARG1$ $ARG2$ $ARG3$

Re: How to increase check_nrpe output truncated / limited

Posted: Mon Dec 15, 2014 11:32 am
by abrist
You will need to build a fork of the current nrpe trunk, replacing both "check_nrpe" and the nrpe daemon. See the following branch:
https://github.com/abrist/nrpe/tree/payload_size
And the following commit:
https://github.com/abrist/nrpe/commit/b ... f0024de6b9
The original patch can be found at:
http://altinity.blogs.com/dotorg//nrpe_multiline.patch
And the current PR:
https://github.com/NagiosEnterprises/nrpe/pull/1

Does that help?