Page 1 of 1

Multiple Graphs for One Service?

Posted: Mon Feb 25, 2013 3:58 pm
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

Re: Multiple Graphs for One Service?

Posted: Mon Feb 25, 2013 4:07 pm
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?

Re: Multiple Graphs for One Service?

Posted: Mon Feb 25, 2013 4:11 pm
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

Re: Multiple Graphs for One Service?

Posted: Mon Feb 25, 2013 4:14 pm
by abrist
Here is a place to start: http://docs.pnp4nagios.org/pnp-0.6/tpl_special
Get some coffee, you will need it.

Re: Multiple Graphs for One Service?

Posted: Wed Feb 27, 2013 6:08 am
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.

Re: Multiple Graphs for One Service?

Posted: Wed Feb 27, 2013 11:14 am
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.