Page 1 of 1

Perfdata maximum length?

Posted: Thu Aug 30, 2012 8:54 am
by Ton Verstegen
Hi,
we are using Nagios XI 2011R2.4 and NagVis.

We have a lot of plugins active, performing checks on a lot of hosts and everything seems to be working fine. Except:....
when the return-string with perfdata contains more than 300 characters, it gets truncated !!

Does anybody know why this happens?

Thnx in advance,
Ton

Re: Perfdata maximum length?

Posted: Thu Aug 30, 2012 9:49 am
by mguthrie
My guess is that it's only getting truncated in the UI unless it's longer than 8k. Where are you seeing the truncated data?

Re: Perfdata maximum length?

Posted: Fri Aug 31, 2012 2:21 am
by Ton Verstegen
You're right about the UI, it cuts the outputstring.
But if I perform the check at the prompt of the Nagios-server, it is also truncated.

Could it be a setting of the CentOs-server?
Or the length of a variable in the plugin-scripts?

(I've tested check_oracle and my own script checking the bandwidth of numerous ports in swithes)

Ton

Re: Perfdata maximum length?

Posted: Fri Aug 31, 2012 9:19 am
by scottwilkerson
When performing the check from the command line, what amount of chars are you getting before truncation.

I honestly don't know why this would be unless it is something in the plugin.

Re: Perfdata maximum length?

Posted: Mon Sep 03, 2012 2:48 am
by Ton Verstegen
The tests I performed just now, give me the total (long) outputstring!
I musted have been fooled by the truncation of the UI.
Maybe in combination with an error in the source of the plugin...

Thanks for helping me,

Ton