Afterwards, I had to add all those templates to the list of 'Associated Graph Templates' for each host, and we have about 200 of them.
To automate this task, I developed a patch to graph_templates.php, based on cacti 0.8.6d.
Usage Note:
- You will add a graph template to all those host templates as usual.
Now you may select "Graph Templates" on the left.
Check all graph templates you added to a host template
Select 'Insert Associated Graph Templates' from the action dropdown an GO
Now ALL host templates are searched for a reference to the selected graph template(s). And all hosts that belong to those host templates will have there list of graph templates updated.You are using host templates for several hosts and you just updated one or more host templates to include another graph template. But if you display one of those hosts, you will not have the 'Associated Graph Templates' list updated.
Now you may add each graph manually and error prone.
To ease this burdon, you may even select all those graph templates, that you have added to one or more host templates, and I will do the update for you.
Remember:
- No graphs are generated automatically!
Only the list of 'Associated Graph Templates' is updated!
People, who are updating there host templates frequently or poll a lot of hosts may find this patch useful.

Reinhard