Splitting perf data into multiple graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Jtessaro
Posts: 9
Joined: Mon Nov 17, 2014 2:54 pm

Splitting perf data into multiple graphs

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Splitting perf data into multiple graphs

Post by abrist »

Are you using the pnp4nagiosgraphs or the highcharts graphs?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Jtessaro
Posts: 9
Joined: Mon Nov 17, 2014 2:54 pm

Re: Splitting perf data into multiple graphs

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Splitting perf data into multiple graphs

Post 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)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Jtessaro
Posts: 9
Joined: Mon Nov 17, 2014 2:54 pm

Re: Splitting perf data into multiple graphs

Post by Jtessaro »

We are using HighCharts, the box is checked.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Splitting perf data into multiple graphs

Post by abrist »

Well, percentage and counter should be in separate graphs. Can you post an image of what the issue looks like?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Jtessaro
Posts: 9
Joined: Mon Nov 17, 2014 2:54 pm

Re: Splitting perf data into multiple graphs

Post 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;

Image

Graph generated by Performance Data: percent_in_use=72%;used=144;free=199;

Image

As you can see in both cases all of the data is placed on one graph.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Splitting perf data into multiple graphs

Post 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.
Jtessaro
Posts: 9
Joined: Mon Nov 17, 2014 2:54 pm

Re: Splitting perf data into multiple graphs

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Splitting perf data into multiple graphs

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked