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
NSCA and Nagios - hostname truncated
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NSCA and Nagios - hostname truncated
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?