Performance Data missing

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Performance Data missing

Postby joem » Wed May 12, 2021 11:39 am

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
joem
 
Posts: 4
Joined: Wed May 12, 2021 11:29 am

Re: Performance Data missing

Postby joem » Thu May 13, 2021 4:34 pm

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
joem
 
Posts: 4
Joined: Wed May 12, 2021 11:29 am

Re: Performance Data missing

Postby joem » Tue Jun 01, 2021 9:03 am

No one has any input?
joem
 
Posts: 4
Joined: Wed May 12, 2021 11:29 am

Re: Performance Data missing

Postby mcapra » Wed Jun 02, 2021 12:21 pm

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.
Former Nagios employee
https://www.mcapra.com/
User avatar
mcapra
 
Posts: 3676
Joined: Thu May 05, 2016 3:54 pm

Re: Performance Data missing

Postby joem » Wed Jun 02, 2021 1:17 pm

Great, thanks for the input.
joem
 
Posts: 4
Joined: Wed May 12, 2021 11:29 am


Return to Community Support

Who is online

Users browsing this forum: Fess [Nagios Bot] and 28 guests