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$
How to increase check_nrpe output truncated / limited
-
sureshkraj2012
- Posts: 65
- Joined: Tue Aug 06, 2013 11:06 pm
Re: How to increase check_nrpe output truncated / limited
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?
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?
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.
"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.