1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1st August 2004), see www.w3.org">
<title>CDEFs</title>
<meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.79">
<link rel="HOME" title="The Cacti Manual" href="index.html">
<link rel="UP" title="RRDTool Specific Features" href="rrdtool_features.html">
<link rel="PREVIOUS" title="RRDTool Specific Features" href="rrdtool_features.html">
<link rel="STYLESHEET" type="text/css" href="manual.css">
</head>
<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th colspan="3" align="center">The Cacti Manual</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href="rrdtool_features.html" accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 16. RRDTool Specific Features</td>
<td width="10%" align="right" valign="bottom"></td>
</tr>
</table>
<hr align="left" width="100%">
</div>
<div class="SECT1">
<h1 class="SECT1"><a name="CDEFS" id="CDEFS">CDEFs</a></h1>
<p>CDEFs allow you to apply mathematical functions to graph data to alter output. The concept of a CDEF comes straight from <span class="APPLICATION">RRDTool</span>, and are written in reverse polish notation (RPN). For more information regarding the syntax of CDEFs, check out the <a href="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdgraph_data.en.html" target="_top">CDEF tutorial</a>.</p>
<div class="SECT2">
<h2 class="SECT2"><a name="ADD_NEW_CDEF" id="ADD_NEW_CDEF">Creating a CDEF</a></h2>
<p>To create a new CDEF in Cacti, select the <span class="GUILABEL">Graph Management</span> option under the <span class="GUILABEL">Management</span> heading, and select <span class="GUILABEL">CDEFs</span>. Once at this screen, click <span class="GUILABEL">Add</span> to the right. You will be prompted for a CDEF name, for which you can type anything used to describe your CDEF. Click the <span class="GUILABEL">Create</span> button so you are redirected back to the edit page, now with an empty <span class="GUILABEL">CDEF Items</span> box. Construct your CDEF by adding an item for each element in the CDEF string, common types such as operators and functions are enumerated for your convenience. Below is a basic description of each CDEF item type.</p>
<div class="TABLE">
<a name="AEN2187" id="AEN2187"></a>
<p><b>Table 16-1. CDEF Item Types</b></p>
<table border="1" frame="border" rules="all" class="CALSTABLE">
<col width="1*">
<col width="3*">
<thead>
<tr>
<th align="center">Type</th>
<th align="center">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Function</td>
<td>You can choose a CDEF function to use as the item. The <a href="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdgraph.en.html" target="_top">RRDTool graph manual</a> describes the purpose of each CDEF function.</td>
</tr>
<tr>
<td>Operator</td>
<td>Just your standard math operators, including modulo (%).</td>
</tr>
<tr>
<td>Special Data Source</td>
<td>A special data source is basically a flag to tell Cacti to do some special processing when it encounters this CDEF item. The "Current Graph Item Data Source" type basically inserts the name of the data source that is referenced by the graph item that references to this CDEF. Both of the "All Data Sources" types insert a summation of all data sources used on a graph.</td>
</tr>
<tr>
<td>Another CDEF</td>
<td>You can recursively use another CDEF within this CDEF.</td>
</tr>
<tr>
<td>Custom String</td>
<td>Sometimes it's just easier to type out the literal CDEF string manually. When referencing to data sources on the graph, remember that Cacti names them 'a', 'b', 'c', '...', starting with the first data source on the graph.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="NAVFOOTER">
<hr align="left" width="100%">
<table summary="Footer navigation table" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href="rrdtool_features.html" accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href="index.html" accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">RRDTool Specific Features</td>
<td width="34%" align="center" valign="top"><a href="rrdtool_features.html" accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top"></td>
</tr>
</table>
</div>
</body>
</html>
|