naparuba/shinken — pull request #265 by h4wkmoon (2012-04-02 20:18:22+00:00)
Title: Update shinken/modules/graphite_ui.py

This change allow us to create Graphite templates.

Templates are files containing links to the graphite url api, with shinken values.
The match between the shinken object (service/host) and the template is made with the check_command (like PNP)

For example, the service Ping, is checked with the check_command check_ping. It gives 2 variables : pl & rta
The template file is names check_ping (in the right folder), and contains :

$uri/render/?width=586&height=308&target=$host.$service.rta
$uri/render/?width=586&height=308&target=$host.$service.pl

$uri, $host, $service, $graphend , $graphstart (omitted here), are replaced by the module with the corresponding values.

There is also a new module attribute : template_path. I will request it as well.
I will create templates as soon as I can put my hand on a graphite somewhere. (no infra at all at home)