Skip navigation
Currently Being Moderated

12.6 6 Create the Template

VERSION 1 
Created on: Oct 26, 2009 4:01 PM by Zenoss API - Last Modified:  Oct 26, 2009 4:01 PM by Zenoss API

#12.6. Create the Template

A performance template is essentially a wrapper around reading and manipulating the data from RRD database files. The template has the same constraints as RRD. An example of a constraint is that if you decide that you wish to change the collection frequency, or perform some function on returned data and store that computed value into the RRD file, you need to remove the old RRD file and create a new one.

#12.6.1. Create the DataSource

To create our new performance template, go to the AIX device class organizer and select More > All Templates. This will take you to a screen which shows you the performance templates. From the menu, select Add Template and provide an ID of Filesystem (yes, there should already be one there, but from the /Devices/Server path).

Click on the newly created performance template and add in a nice description. Then, click in the Data Sources menu and select Add DataSource...to create the special usedBlocks data source. If your operating system's MIB provides a usedBlocks (or something named like that) value, then select a type of SNMP. Otherwise, you need to create a script to take the total size of the filesystem (ie totalBlocks) and subtract the freeBlocks value. Unfortunately, AIX only provides freeBlocks, so we needed to create a command like we did in the earlier section.

#12.6.2. Create a Threshold

Defining a threshold on a data point does two things: it can be used to define a line on a graph showing the threshold value and it can create an event when the threshold is passed and cleared. In this example for Filesystem, we could create a threshold that would alert us when we've gone past 95% utilization on a filesystem.

#12.6.3. Create a Graph

From the device class (ie /Devices/Server/AIX), click on the Templates tab. Click on the template and go to the Graph Definitions sub-menu. From that sub-menu, choose Add a Graph. You will be prompted for the name of your new graph. Add the datapoints of interest to create a graph and then click on the 'save' button at the bottom of the screen. Note that if you're interested in doing something more complicated than just adding data points, then you need to start browsing the RRDtool site.

Comments (0)