Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

manual:100:3_templates.3a_using_templates [2012/05/20 12:13] (current)
Line 1: Line 1:
 +===== Using Templates =====
 +
 +==== Using a Host Template ====
 +
 +Surely, you want to see this Host Template in action. This was already described in [[2_basics.1_first_graph|My First Graph]], where we took the **ucd/net SNMP Host** as a Host Template.
 +
 +So please select a Host, that is already defined to cacti:
 +
 +{{:manual:087:host-template-usage1.png|Host Template Usage 1}}
 +
 +and **Save**. Then scroll down to see the **Assoiated Graph Template** and the **Associated Data Query**:
 +
 +{{:manual:088:host-template-usage2.png|Host Template Usage 2}}
 +
 +Now select **Create Graphs for this Host** from the top of the page. You'll be presented with a new page to select the wanted Graphs:
 +
 +{{:manual:088:host-template-usage3.png|Host Template Usage 3}}
 +
 +Select our new UDP thingy and some Traffic Graph Template for an interesting interface and **Create**. The result is displayed with the next page:
 +
 +{{:manual:088:host-template-usage4.png|Host Template Usage 4}}
 +
 +You'll have to wait for two polling cycles for data to be filled.
 +
 +==== Using Graph Templates ====
 +
 +It is possible, only to use the Graph Template created above. It is not necessary to associate a **Host Template** to get the new UDP stuff. As an example, please select an arbitrary device, that responds to SNMP requests for UDP (see: [[3_templates.1_data_template#walkthroughmy_first_data_template|My first data Template]]) from the **Device** list. Scroll down to the **Associated Graph Templates** section and select the **UDP Traffic** Graph Template
 +
 +{{:manual:088:graph-template-usage1.png|Graph Template Usage 1}}
 +
 +and **Add**:
 +
 +{{:manual:088:graph-template-usage2.png|Graph Template Usage 2}}
 +
 +Again, **Select Graphs for this Host**:
 +
 +{{:manual:088:graph-template-usage3.png|Graph Template Usage 3}}
 +
 +and **Create**:
 +
 +{{:manual:088:graph-template-usage4.png|Graph Template Usage 4}}
 +
 +Please notice, that not only a creation message appears. The **Graph Template** just selected is grayed out, the checkbox disappeared. This is to make clear, what Graph Templates already were chosen to prevent unwanted duplication.
 +
 +Please select **Edit this Host** again, to see what changed in the **Associated Graph Templates** section:
 +
 +{{:manual:088:graph-template-usage5.png|Graph Template Usage 5}}
 +
 +The **Status** of this Graph Template has changed to **Is Being Graphed**. You may **Edit** to jump to **Graph Management** and see your graph:
 +
 +{{:manual:088:graph-template-usage6.png|Graph Template Usage 6}}
  





Personal Tools