Page 1 of 1
Advanced Graphing
Posted: Thu Nov 29, 2012 5:00 pm
by XenoPhage
Hi all,
I'm looking to retire our aging cacti system and unify everything into Nagios. I have one graph in particular that we find useful that I'd like to see Nagios handle. Basically, it combines the bandwidth usage of our upstream feeds and puts it on a fancy graph. The PHBs like this graph, so it's something we'd like to keep ...
Does Nagios have any advanced graphing capabilities we can use to do this? Or do I need to come up with some sort of special check command just to create this graph? I know I can create the necessary graph templates for the pnp4nagios portion of Nagios, but maybe some of the other graphing options are better suited for this?
Thanks,
Jason
Re: Advanced Graphing
Posted: Thu Nov 29, 2012 6:14 pm
by nscott
Jason,
The first thing I thought of was the pnp4nagios templates, and that is a good option. However, this is something that has been on our radar for a while now, and I'm going to looking into adding this feature to the Graph Explorer, but unfortunately as of now, there isn't a slick way of doing it if you don't make pnp4nagios templates.
Re: Advanced Graphing
Posted: Fri Nov 30, 2012 11:47 am
by XenoPhage
I did some more digging and it appears that pnp4nagios has something called a special template that can be used to do this. I see that NagiosXI has the templates.special directory listed, so it would appear that you're using a version of pnp that supports this.
Once I create a template for this, how do I view the resulting graph? Do I need to manually enter a link, or will it show up under the host graphs?
Re: Advanced Graphing
Posted: Mon Dec 03, 2012 10:28 am
by mguthrie
Custom PNP Templates can definitely be made, although they're not the most intuitive thing to learn. To utilize a custom template, save your template with the same name as the command definition for that host or service. So if you created a command definition named "check_mysomething," you would need to name the template check_mysomething.php.
Re: Advanced Graphing
Posted: Mon Dec 03, 2012 12:31 pm
by XenoPhage
mguthrie wrote:Custom PNP Templates can definitely be made, although they're not the most intuitive thing to learn. To utilize a custom template, save your template with the same name as the command definition for that host or service. So if you created a command definition named "check_mysomething," you would need to name the template check_mysomething.php.
For a custom template, that's pretty straightforward. That template is then used whenever you display the data for that check. I'm aware of the custom config as well that can be used to change the data types in the RRD datafiles.
The question is, however, how do I utilize the special templates? I know how to build them, and in a normal pnp4nagios instance, I can display them via :
http://<your-nagios-server>/pnp4nagios/special?tpl=<template>
However, in NagiosXI, that path doesn't exist, so there doesn't seem to be a way to view these graphs.
Re: Advanced Graphing
Posted: Mon Dec 03, 2012 12:50 pm
by mguthrie
In XI, if the template exists for that service, XI will automatically use it. So it might be easiest to develop the template using PNP's front-end until you get it working the way you want.
Re: Advanced Graphing
Posted: Thu Sep 25, 2014 9:36 am
by slansing
I'm going to lock this and move your post out to it's own thread:
http://support.nagios.com/forum/viewtop ... 16&t=29332