NSCA and Nagios - hostname truncated
Posted: Tue Mar 11, 2014 11:27 am
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
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