Page 1 of 1

Performance Data missing

Posted: Wed May 12, 2021 11:39 am
by joem
Hello,

I created a custom check and wanted to track performance data and i am just using PNP4nagios, which is fine for me. Some of the data gets through, but it seems like I have too many lines of data for Performance Data to manage. Is there a limit to how much data Performance Data can handle? Here is a pic to show what I mean:
Image

Thanks,

Joem

Re: Performance Data missing

Posted: Thu May 13, 2021 4:34 pm
by joem
Sorry, was missing the pic. Here is the pic:

Image

So i have more data lines than what is showing in Performance Data. Did I hit a limit there?

Thanks

Re: Performance Data missing

Posted: Tue Jun 01, 2021 9:03 am
by joem
No one has any input?

Re: Performance Data missing

Posted: Wed Jun 02, 2021 12:21 pm
by mcapra
Per the plugin development guidelines:
https://nagios-plugins.org/doc/guidelin ... PLUGOUTPUT
You should always print something to STDOUT that tells if the service is working or why it is failing. Try to keep the output short - probably less that 80 characters. Remember that you ideally would like the entire output to appear in a pager message, which will get chopped off after a certain length.
You may be running into issues with the time-series database of choice (usually RRD):
label length is arbitrary, but ideally the first 19 characters are unique (due to a limitation in RRD). Be aware of a limitation in the amount of data that NRPE returns to Nagios
You may also be running into a 4KB length limit within Nagios Core's plugin API:
https://assets.nagios.com/downloads/nag ... inapi.html
Nagios Core will only read the first 4 KB of data that a plugin returns. This is done in order to prevent runaway plugins from dumping megs or gigs of data back to Nagios Core. This 4 KB output limit is fairly easy to change if you need. Simply edit the value of the MAX_PLUGIN_OUTPUT_LENGTH definition in the include/nagios.h.in file of the source code distribution and recompile Nagios Core. There's nothing else you need to change!
It's hard for me to give a definitive answer without rather intimate details of your setup and a deep-dive, but those are some things to consider.

Re: Performance Data missing

Posted: Wed Jun 02, 2021 1:17 pm
by joem
Great, thanks for the input.