Page 1 of 2
Splitting perf data into multiple graphs
Posted: Wed Nov 26, 2014 10:58 am
by Jtessaro
I wrote a custom powershell script to monitor IP Usage in DHCP Server scopes and the perf data is returning a couple values of different types but they are showing up on the same performance graph. I have tried different formats and this seems to always be the case, how do I make NagiosXI graph the data separately?
So the two formats I have tried for perf data are as follows.
Performance Data: percent_in_use=76%;used=177;free=57;
Performance Data: percent_in_use=76%;in_use=177/234;
In the first example I would want three separate graphs and in the second I would want two, one showing percentage and the other graphing 177 with a y axis max of 234.
Is this something that can be accomplished and if so how?
Re: Splitting perf data into multiple graphs
Posted: Wed Nov 26, 2014 2:14 pm
by abrist
Are you using the pnp4nagiosgraphs or the highcharts graphs?
Re: Splitting perf data into multiple graphs
Posted: Mon Dec 01, 2014 9:20 am
by Jtessaro
Are you using the pnp4nagiosgraphs or the highcharts graphs?
We are using the default configuration for Nagios XI. Does that answer your Question?
Re: Splitting perf data into multiple graphs
Posted: Mon Dec 01, 2014 12:08 pm
by abrist
Jtessaro wrote:Does that answer your Question?
Not really. There are two ways to display graphs:
Highcharts
pnp4nagios
To check, go to Admin --> Manage System Config.
Is the following checkbox checked: "Use Highcharts for Perfdata Graphs"?
(If the option is missing, you are most likely on an older version of XI)
Re: Splitting perf data into multiple graphs
Posted: Mon Dec 01, 2014 1:21 pm
by Jtessaro
We are using HighCharts, the box is checked.
Re: Splitting perf data into multiple graphs
Posted: Mon Dec 01, 2014 5:14 pm
by abrist
Well, percentage and counter should be in separate graphs. Can you post an image of what the issue looks like?
Re: Splitting perf data into multiple graphs
Posted: Tue Dec 02, 2014 1:51 pm
by Jtessaro
abrist wrote:Well, percentage and counter should be in separate graphs. Can you post an image of what the issue looks like?
Graph generated by
Performance Data: percent_in_use=76%;in_use=177/234;
Graph generated by
Performance Data: percent_in_use=72%;used=144;free=199;
As you can see in both cases all of the data is placed on one graph.
Re: Splitting perf data into multiple graphs
Posted: Tue Dec 02, 2014 6:06 pm
by slansing
I'm starting to wonder if it is all coming in on one highcharts graph because it is the same check being returned with those multiple values. Have you tried splitting this to multiple service checks? While less than ideal, that may be the answer temporarily.
Re: Splitting perf data into multiple graphs
Posted: Wed Dec 03, 2014 8:04 am
by Jtessaro
slansing wrote:I'm starting to wonder if it is all coming in on one highcharts graph because it is the same check being returned with those multiple values. Have you tried splitting this to multiple service checks? While less than ideal, that may be the answer temporarily.
I was under the impression that one check could return multiple sets of data to different graphs although we are currently setting up a trial Nagios XI as a PoC so I don't have all that much experience. The check we wrote checks the usage of IP addresses in a DHCP scope, one server can have ~400 scopes so having to do multiple checks per scope is not an option we are really interested in.
Is there another option for splitting the return data from this check or others into multiple graphs?
Re: Splitting perf data into multiple graphs
Posted: Wed Dec 03, 2014 11:53 am
by abrist
Just to verify if the issue is high charts, can you try unchecking the box "Use Highcharts for Perfdata Graphs" in Admin --> Manage System Config and then click Update Settings and check the graphs. Are they split into two graphs?