Multiple Graphs for One Service?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Multiple Graphs for One Service?

Post by Gavin »

I have written a script that runs across several of our machines, and (passively, via. NRDP) returns physical disk size. There are a few reasons why I'm using a custom script for this, and the out of the box ones aren't really capable of doing what we need.

All the data for each host is returned to a single service, and the data is collected just fine:

https://www.evernote.com/shard/s89/sh/b ... &width=832

The actual output looks like this:

Code: Select all

XXXXX_PercentageDiskUsed_C=16.08%;XXXXX_PercentageDiskUsed_L=51.07%;XXXXX_PercentageDiskUsed_M=56.91%;XXXXX_PercentageDiskUsed_N=59.95%;XXXXX_PercentageDiskUsed_O=53.71%;XXXXX_Percent
The graphs, however, come up individually (one for each drive):
https://www.evernote.com/shard/s89/sh/5 ... &width=832

The graphs are plotted using the default PNP template (default.php). Am I right in thinking that plotting individual graphs is the expected behaviour? Is there an easy way to get all this data plotted onto a single graph? If I need to go away and learn how to make PNP templates, I can do that, I was just wondering if I was outputting the performance data incorrectly. It'd be easier to get my scripts to output the data differently than to make custom PNP templates.

Any help is appreciated.

Many thanks,

Gavin
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Multiple Graphs for One Service?

Post by abrist »

Each metric will get it's own graph. You will have to go away now. :)

Do you want the aggregate of all the values on one graph, added up into one metric? Or one graph with multiple metrics/plotted lines?
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.
Gavin
Posts: 58
Joined: Mon Dec 24, 2012 4:56 am

Re: Multiple Graphs for One Service?

Post by Gavin »

I'd better get reading...

I was hoping to get all the values plotted as individual lines on one graph. Each server has around 20 (independent) drives which should be roughly the same size, so having them all on one graph would quickly show a capacity problem.

Thanks,

Gavin
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Multiple Graphs for One Service?

Post by abrist »

Here is a place to start: http://docs.pnp4nagios.org/pnp-0.6/tpl_special
Get some coffee, you will need it.
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.
User avatar
chrisp
Posts: 71
Joined: Fri Dec 28, 2012 11:35 am

Re: Multiple Graphs for One Service?

Post by chrisp »

I also need this sort of multi-line graph, for per-service, across-all-hosts kind of functionality, so I had a go at following those instructions... Only to be shown this by Gavin: http://support.nagios.com/forum/viewtop ... =16&t=9163 :(

So my question would be "When might we expect XI to catch up with the latest pnp4nagios version?"...

Sorry if I come across as a bit crabby. I don't mind jumping through some hoops, as long as there's a positive outcome at the end, but get a little demoralised when my efforts are fruitless.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Multiple Graphs for One Service?

Post by abrist »

I assume you are referring to the pnp4nagios 0.6 ui? We usually reserve major releases for major component upgrades. You could try to install 0.6, but do so on a test vm as you will have to alter the install prefixes to put everything in the right place.
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