check_nrpe Returning Truncated Performance Data - Followup
Posted: Thu Jul 16, 2015 5:59 pm
I was reading this thread:
https://support.nagios.com/forum/viewto ... 16&t=30449
I was trying to create a separate nrpe/check_nrpe called nrpe_large/check_nrpe_large.
I made the changes stated in the other thread:
./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
I put nrpe_large in /usr/local/nagios/bin and check_nrpe_large in /usr/local/nagios/libexec.
I'm using RHEL 6 (64-bit) and xinetd. I made a copy of nrpe (nrpe_large) in /etc/xinetd.d which references nrpe_large. I restarted the xinetd service. I'm running this on itself (Nagios server) and get the following:
[root@NAGIOS_TEST libexec]# ./check_nrpe -H NAGIOS_TEST
NRPE v2.15
[root@NAGIOS_TEST libexec]# ./check_nrpe_large -H NAGIOS_TEST
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
/var/log/messages contains:
Jul 16 22:40:21 NAGIOS_TEST xinetd[10398]: START: nrpe pid=10526 from=::ffff:10.10.10.233
Jul 16 22:40:21 NAGIOS_TEST nrpe[10526]: Error: Request packet had invalid CRC32.
Jul 16 22:40:21 NAGIOS_TEST nrpe[10526]: Client request was invalid, bailing out...
Jul 16 22:40:21 NAGIOS_TEST xinetd[10398]: EXIT: nrpe status=0 pid=10526 duration=0(sec)
Any suggestions?
Thanks.
https://support.nagios.com/forum/viewto ... 16&t=30449
I was trying to create a separate nrpe/check_nrpe called nrpe_large/check_nrpe_large.
I made the changes stated in the other thread:
./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
I put nrpe_large in /usr/local/nagios/bin and check_nrpe_large in /usr/local/nagios/libexec.
I'm using RHEL 6 (64-bit) and xinetd. I made a copy of nrpe (nrpe_large) in /etc/xinetd.d which references nrpe_large. I restarted the xinetd service. I'm running this on itself (Nagios server) and get the following:
[root@NAGIOS_TEST libexec]# ./check_nrpe -H NAGIOS_TEST
NRPE v2.15
[root@NAGIOS_TEST libexec]# ./check_nrpe_large -H NAGIOS_TEST
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
/var/log/messages contains:
Jul 16 22:40:21 NAGIOS_TEST xinetd[10398]: START: nrpe pid=10526 from=::ffff:10.10.10.233
Jul 16 22:40:21 NAGIOS_TEST nrpe[10526]: Error: Request packet had invalid CRC32.
Jul 16 22:40:21 NAGIOS_TEST nrpe[10526]: Client request was invalid, bailing out...
Jul 16 22:40:21 NAGIOS_TEST xinetd[10398]: EXIT: nrpe status=0 pid=10526 duration=0(sec)
Any suggestions?
Thanks.