Settting a graph Limit with graph Explorer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bvinisky
Posts: 34
Joined: Wed Jul 06, 2011 11:28 am

Settting a graph Limit with graph Explorer

Post by bvinisky »

Greetings,

I've been playing around with a lot of the graph options that NagiosXI offers. Good work on graph Explorer, management is loving it here. How exactly do I set a limit to the graphs y axis? For our CPU usage graphs, i'd like the Y axis ceiling to be stable at 100 and not auto adjust to the data set. I'm just starting to learn about RRD-Tool, pnp4nagios, etc... and i'm not exactly sure what all is in play for the graph Explorer. About all I know how to do is return data to the Nagios in the right format so results can be graphed and i'm finding I can do quite a bit with just that. However, is there something special I output in the plugin to set a limit? Or is it in the RRD file or in some other config file somewhere else? Also wondering if I can tailor backgrounds and what any other configuration options on those graphs.

Thanks in advance,

Bryant
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Settting a graph Limit with graph Explorer

Post by mguthrie »

Currently for the graph explorer, the Y axis is auto-calculated based on the max values on the graph, so it will auto-scale based on the data present. Although another user has requested to be able to honor the MIN/MAX thresholds from the performance data, this hasn't been implemented yet.
However, is there something special I output in the plugin to set a limit?
For the PNP graphs, you can specify a Warning and Critical threshold lines, or MIN/MAX in the performance data. See the reference below for the breakdown.
http://docs.pnp4nagios.org/pnp-0.4/abou ... quirements

Also wondering if I can tailor backgrounds and what any other configuration options on those graphs.
This is something we'd like to make a little more user friendly at some point, but right now the graph explorer JSON templates are hardcoded in the /usr/local/nagiosxi/html/includes/components/graphexplorer/templates directory. PNP templating can be done as well, but the documentation for it is pretty limited.
http://docs.pnp4nagios.org/templates/start
Custom PNP Templates (matched to command definitions)
/usr/local/nagios/share/pnp/templates.dist