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:
Thanks,
Joem
Performance Data missing
Re: Performance Data missing
Sorry, was missing the pic. Here is the pic:
So i have more data lines than what is showing in Performance Data. Did I hit a limit there?
Thanks
So i have more data lines than what is showing in Performance Data. Did I hit a limit there?
Thanks
Re: Performance Data missing
No one has any input?
Re: Performance Data missing
Per the plugin development guidelines:
https://nagios-plugins.org/doc/guidelin ... PLUGOUTPUT
https://assets.nagios.com/downloads/nag ... inapi.html
https://nagios-plugins.org/doc/guidelin ... PLUGOUTPUT
You may be running into issues with the time-series database of choice (usually RRD):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 also be running into a 4KB length limit within Nagios Core's plugin API: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
https://assets.nagios.com/downloads/nag ... inapi.html
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.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!
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Performance Data missing
Great, thanks for the input.