<< Previous Section | Altering Graphs on the Fly [home] | Next Section >> |
GPRINTs are a graph item type that enables you to print the values of data sources on a graph. They are typically used to represent legend values on the graph. The output format of these numbers are controlled by a printf-like format string. Cacti enables you to keep a global list of these strings that can be applied to any graph item throughout Cacti. To create a new GPRINT preset, select the "GPRINT Presets" menu item under the "Graph Setup" heading. Click "Add" to the right and you will be presented with a few fields:
Name | Give the GRPINT preset a name that you can use to identify it throughout Cacti. You will see this name on the graph items edit screen where you can choose a GPRINT preset. |
GPRINT Text | In this field you must enter the literal printf-like string that will be passed directly to RRDTool. The RRDTool graph manual has a section on legend formatting which describes this format in more detail. |
When you are finished filling in both of these fields, click the "Create" button to add the new GPRINT preset. You will now be able to apply this to GPRINT graph items.