NSCA and Nagios - hostname truncated

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Marco87
Posts: 1
Joined: Tue Mar 11, 2014 10:28 am

NSCA and Nagios - hostname truncated

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

Re: NSCA and Nagios - hostname truncated

Post 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?
Locked