PDA

View Full Version : Howto create my own graphs


mrcoffee
08-15-2008, 12:58 PM
Bonjour a tout les monde,

I got some selfmade Nagios plugins I use with Nagios and Nagiosgrapher. Like UPS temperatures and load percentage, fan speed of certain switches, userload and amount of processes on Linux machines, etc.

Now I would like Centreon to produce these graphs, so the first step would be to adjust the output of the plugin to make it compatible for Centreon. That won' t be a problem. But then I have to be able to process the output and make graphs. How do I do this? Where do I start?

Is there a document that explains howto create your own graphs? Can't seem to find it.

If not, can someone please give me some tips?

Merci!

Sylvester
08-15-2008, 02:17 PM
Hi,

Create your templates in Views > Graph template and Curve templates. Then associate your service to the graph template in extended info.
Hope it helped you out ;)

mrcoffee
08-15-2008, 05:59 PM
Thanks, but I don't understand it.

Yes, I can create a new template with settings like labels, height, width, colors, etc.

But where do I define that the output of my command is processed properly. If my output for example is:

....|temp_probe1=35degr temp_probe2=35degr

Where do I configure Centreon that it has to use these values to create a graph?

nfilus
08-15-2008, 06:10 PM
Hi,

Thanks, but I don't understand it.

Yes, I can create a new template with settings like labels, height, width, colors, etc.

But where do I define that the output of my command is processed properly. If my output for example is:

....|temp_probe1=35degr temp_probe2=35degr

Where do I configure Centreon that it has to use these values to create a graph?

this part was hard to figure out as well at first. The trick is, that templates are less important than parsing the values. Go to Views -> Curves and define colors for your labels (temp_probe1, temp_probe2, ...). In Administration -> Options -> CentStorage -> Manage you can disable not needed performace data to be not displayed on the graphs. Be also sure CentStorage is running (at least in RRD+MySQL Setup). For more control of graph output use the graph templates.

Hope that helps.

mrcoffee
08-15-2008, 07:10 PM
Yes, this helps. I just figured it out a bit, and your tip on how to prevent to display data in the graps is excellent.