Performance data max number of labels?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gavinh
Posts: 42
Joined: Wed Apr 08, 2015 4:44 pm

Performance data max number of labels?

Post by gavinh »

Is there a limit to how many labels I can have? I am trying to graph the iowait on a 40 core server and the data is not graphing.

Code: Select all

Performance Data:	CPU_0=16.57 CPU_1=3.95 CPU_2=3.45 CPU_3=3.37 CPU_4=3.31 CPU_5=3.26 CPU_6=3.18 CPU_7=3.13 CPU_8=3.08 CPU_9=3.00 CPU_10=4.45 CPU_11=4.25 CPU_12=6.01 CPU_13=5.38 CPU_14=5.09 CPU_15=4.86 CPU_16=4.72 CPU_17=4.57 CPU_18=4.49 CPU_19=4.40 CPU_20=1.69 CPU_21=2.86 CPU_22=2.21 CPU_23=1.97 CPU_24=1.89 CPU_25=1.82 CPU_26=1.76 CPU_27=1.74 CPU_28=1.71
gavinh
Posts: 42
Joined: Wed Apr 08, 2015 4:44 pm

Re: Performance data max number of labels?

Post by gavinh »

We reduced the number of labels/datasources down to 5 and its working now.

What is the limit in this?
gavinh
Posts: 42
Joined: Wed Apr 08, 2015 4:44 pm

Re: Performance data max number of labels?

Post by gavinh »

We verified that 12 datasources worked, however the graph itself, where you can click to enable or disable a datasource realtime for viewing, limits to 5. Is there anywhere I can change that? Finding this graph VERY limiting.
gavinh
Posts: 42
Joined: Wed Apr 08, 2015 4:44 pm

Re: Performance data max number of labels?

Post by gavinh »

Found the stackable graph explorer.

Is it possible to save the options so you don't have to add 40 data sources for each host, every time you need to view the graph?

Also noticed the multistacked performances do not show any perfdata, despite the other graph menus displaying the perfdata - there an option to enable or something?
gavinh
Posts: 42
Joined: Wed Apr 08, 2015 4:44 pm

Re: Performance data max number of labels?

Post by gavinh »

Limit seems to be 35 labels. Neat.
gavinh
Posts: 42
Joined: Wed Apr 08, 2015 4:44 pm

Re: Performance data max number of labels?

Post by gavinh »

I found the problem. There is a max output length to nrpe, which truncates the performance data and other things, that are too long.

Code: Select all

#define MAX_PACKETBUFFER_LENGTH 1024            /* max amount of data we'll send
Located in common.h for nrpe. Changing it to 4096 and recompiling, deploying to an agent and client resolved the issue.

Sadly, I cannot use a custom .rpm - needs to be a maintained package. Oh well.

Maybe going forward, the maintained package can have improved output limits has an option from the command line?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Performance data max number of labels?

Post by rkennedy »

It sounds like you solved this, but how did you install NRPE initially? We do not maintain most of the package installs which is why I ask.

One other thing to mention, NRPE by default supports 4K+ output so if you're after anything further that'll be the way to go.
Former Nagios Employee
gavinh
Posts: 42
Joined: Wed Apr 08, 2015 4:44 pm

Re: Performance data max number of labels?

Post by gavinh »

On Ubuntu there is nagios-nrpe-server which is the agent package.

The only way we got 4k support was by editing the source and recompiling. We run both a Nagios Core and Nagios XI (Testing if viable) server - neither support 4k out of the box.

I did not see any nrpe or check_nrpe options for achieving the same results - is there another way that does not require any source editing?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Performance data max number of labels?

Post by rkennedy »

Got it - we don't maintain that package.

This is the route you'd need to go with editing the source.
Former Nagios Employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Performance data max number of labels?

Post by dwhitfield »

Additionally...looks like their repo (https://launchpad.net/ubuntu/+source/nagios-nrpe) has 2.15. The current version is 3.01 (although https://support.nagios.com/kb/article.php?id=515 is written for 3.0), although you say you can't use non-repo stuff (I assume this applies to .deb too)
Locked