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?
Splitting perf data into multiple graphs
Re: Splitting perf data into multiple graphs
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.
"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.
Re: Splitting perf data into multiple graphs
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
Not really. There are two ways to display graphs:Jtessaro wrote:Does that answer your Question?
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.
"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.
Re: Splitting perf data into multiple graphs
We are using HighCharts, the box is checked.
Re: Splitting perf data into multiple graphs
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.
"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.
Re: Splitting perf data into multiple graphs
Graph generated by Performance Data: percent_in_use=76%;in_use=177/234;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=72%;used=144;free=199;

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
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
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.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.
Is there another option for splitting the return data from this check or others into multiple graphs?
Re: Splitting perf data into multiple graphs
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.
"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.