./include/common.h:#define MAX_INPUT_BUFFER 4096 /* max size of most buffers we use */
./include/common.h:#define MAX_PACKETBUFFER_LENGTH 4096 /* max amount of data we'll send in one query/response */
./contrib/nrpe_check_control.c:#define MAX_CHARS 4096
Let us know how this works out. I was personally interested in that thread and never got to see the end results, so I am curious to see if those changes work for anyone.
nagios@unix-test-server:/usr/local/nagios/libexec$ ./check_nrpe.old -H localhost -c rs_test -a ""
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
nagios@unix-test-server:/usr/local/nagios/libexec$
The newly compiled nrpe and check_nrpe only works with similarly compiled check_nrpe in the Nagios server.
The new check_nrpe does not work with the stock agents anymore and returns the following error.
As a work around, name the newly compiled check_nrpe as check_nrpe_larger
Then create a new command defition that uses this check_nrpe_larger plugin
Then modify the services you require to use this modified command.
I tried what you were after and this was one of the reasons why I decided to use check_by_ssh.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Box293 wrote:As a work around, name the newly compiled check_nrpe as check_nrpe_larger
Then create a new command defition that uses this check_nrpe_larger plugin
Then modify the services you require to use this modified command.
I tried what you were after and this was one of the reasons why I decided to use check_by_ssh.
Yeah. This is what I did.
Change to check_by_ssh needs proper testing so I am using this as a temp measure.