Page 1 of 1
Performance data max number of labels?
Posted: Fri Dec 16, 2016 4:41 pm
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
Re: Performance data max number of labels?
Posted: Fri Dec 16, 2016 5:31 pm
by gavinh
We reduced the number of labels/datasources down to 5 and its working now.
What is the limit in this?
Re: Performance data max number of labels?
Posted: Fri Dec 16, 2016 5:46 pm
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.
Re: Performance data max number of labels?
Posted: Fri Dec 16, 2016 5:56 pm
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?
Re: Performance data max number of labels?
Posted: Fri Dec 16, 2016 6:21 pm
by gavinh
Limit seems to be 35 labels. Neat.
Re: Performance data max number of labels?
Posted: Fri Dec 16, 2016 8:39 pm
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?
Re: Performance data max number of labels?
Posted: Mon Dec 19, 2016 11:12 am
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.
Re: Performance data max number of labels?
Posted: Mon Dec 19, 2016 2:31 pm
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?
Re: Performance data max number of labels?
Posted: Mon Dec 19, 2016 3:31 pm
by rkennedy
Got it - we don't maintain that package.
This is the route you'd need to go with editing the source.
Re: Performance data max number of labels?
Posted: Mon Dec 19, 2016 3:37 pm
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)