Page 1 of 1

NSCA and Nagios - hostname truncated

Posted: Tue Mar 11, 2014 11:27 am
by Marco87
Hi guys, probably this is a common problem but I am not able to solve this issue..

I have two virtual machine: one with Nagios and the other one with NSCA. When I send checks by NSCA, in the nagios.log I see that hosname is truncated.
I have read on many forums it can be a problem of max_pluginoutput_length, so I have tried to re-compile NSCA with:

#define MAX_HOSTNAME_LENGTH 700
#define MAX_DESCRIPTION_LENGTH 128
#define MAX_PLUGINOUTPUT_LENGTH 8192

But in nagios.log the name is still truncated (so the check is not caught).

Do I have to re-compile also Nagios (thing that I hope to avoid)?

Please, could you suggest me how to fix it??

Thanks in advance

Re: NSCA and Nagios - hostname truncated

Posted: Tue Mar 11, 2014 11:41 am
by slansing
The truncation should be happening (if it does) at the end of the incoming data, not the beginning. Can you copy one of the incoming lines that this is happening on and share it with us? As well as the true host name as you have it defined in Nagios? Have you already configured Nagios to accept passive NSCA information from that host/service?