Cacti graph template host_description




















The nice thing about Templates in Cacti is that you can choose whether to template each field on a per-field basis. If you leave the check-box unchecked, every Data Source attached to the Data Template will inherit its value from the Template. When generating a real Data Source , you will be prompted to fill those non-templated fields. Not however that if you are using Cacti's Automation feature, there is presently no way for you to override these values.

So, plan accordingly when engineering your Cacti deployment. The Templating should handle this just fine. When you are finished filling in values for the Data Template , click Create and you will be presented with a screen similar to the image below. Just like a Graph , a Data Source can have more than one item. This is useful in situations where a script returns more than piece of data at one time and both need to appear on the same Graph.

This also applies to Data Queries , so you can have a single Data Template that contains both Inbound and Outbound Traffic, rather than having to create a separate Data Template for each.

Assuming you selected a Data Input Method on the previous screen, you should now be presented with a Custom Data form. It will show a single line for every single parameter required for that very Data Input Method. Even if you select the Use Per-Data Source Value check-box, it might be useful to specify a value that will be used as an "initial value" for any Data Source using the Data template.

If this is required, you will have to apply rrdtool tune command to any related RRDfile manually. Applying a Data Template to a Data Source is a very simple process. The first thing you must do is select the Data Source you want to apply the template to under Data Sources. Though this should be very rare in modern Cacti instances, it was fairly common before Cacti's Templating system matured. Once a Template is applied to a Data Source, you will notice that you can only change values for the fields that you checked Use Per-Data Source Value for.

However, as previously stated, changes to a Data Template that involve changes to the Data Source Items , will not be automatically applied to those same Data Sources.

If you goto the following article How to Work with Templates. There you will find a step by step guide on how to work with variout Cacti Templates in general. In Cacti, a Graph Template provides a skeleton for an actual Graph. If you have many Graphs that share most of their characteristics, using a Graph Template makes perfect sense. The first thing you must do is give the Graph Template a name. This name has nothing to do with the graph title, but is what you will use to identify the Graph Template throughout Cacti.

Second, you will notice a list of graph field names with Use Per-Graph Value check-boxes next to each one. If you leave the check-box unchecked, every Graph owned by the Graph Template will inherit its value from the Template. If the check-box is checked, every Graph owned by Graph Template will have its own value for that particular field.

When you are finished filling in values for the Graph Template , click Create and you will be presented with a page similar to the image below. The example below is from a completed Traffic Graph Template. In this first image, you can see what elements will be painted on the Graph Canvas. The Multiple Instances field is a parameter to let Cacti know that it should allow you to create more than one Graph per Device using the Graph Template.

The Common Options are options that most every Graph Template included. The Scaling Options are also very common, but related to Graph scaling only. The first thing you should do is create Graph Items for a Graph Template , just like for a stand alone Graph. One difference you will notice is that the Data Sources drop-down will contain a list of Data Template items rather than Data Source Items. It is important that Cacti can make this association here, so that Cacti doesn't have to make unnecessary assumptions later.

Graph Item Inputs are unique to Graph Templates because of the large number of items they sometimes contain. There are various fields that must be filled in for every graph item input:.

Applying a Graph Template to an existing Graph is a very simple process, though very uncommon in a modern Cacti install. The first thing you must do is select the Graph you want to apply the template to under Graph Management. Once the Graph Template is applied to the existing Graph , you will notice that you can only change values for the fields that you checked Use Per-Graph Value for.

You will also notice a new box, called Graph Item Inputs. This is where you can specify values for the Graph Item Inputs that you defined in the Graph Template. It really accelerates the deployment of a Cacti system across and enterprise of Devices. Once on that page, click Add on the right.

You will be redirected back to the edit page with the Associated Graph Templates and Associated Data Queries forms empty. Assume, you're searching for a specific set of templates to monitor a special type of device. Apart from designing templates from scratch, there's a good chance to find a solution in the Scripts and Templates Forum. The set of templates is usually provided as a single XML file holding all required definitions for a data template and a graph template.

However, also note that in the current version of Cacti, Packages are now importable as well. When you import a Package all of the required additional file changes will also be accommodated. We will discuss Packages later in the documentation. If the XML file was downloaded, simply select that file from the Downloads location on your local system. Cacti no longer supports pasting the XML into the browser window.

Please pay attention the the Data Source Profile field. By default, cacti will attempt to use your default Data Source Profile. However, you can change that at import time to use an alternate Data Source Profile or even the one from the Template itself, if it includes one.

Also, not that if you have made local modification to an earlier version of a Graph Template , and wish to fully migrate to the new Graph Template for all your existing Graphs , please select Remove Orphaned Graph Items.

Otherwise, your Graphs will look awkward in the end. This should not be a problem for new Imports. It's also important to Preview the Template imports to access the impact that the import will have on existing database object.

In earlier versions of Cacti, you were unable to determine what would actually change. However, in the current and future versions of Cacti, you will be able to see all local modifications when performing a Preview prior to Importing.

When Previewing, no changes are actually made ot your Cacti system. As mentioned previously, for a single OID based template, Importing the Template is all that will be required. Sign in to your account. If i recall correctly, setting a graph template title variables was pretty straight forward. Just edit the graph template, and modify the "title".

However, something has change in recent versions i can pinpoint exactly, as i havent had to adda new device in some time. Since this differs from what is default in the graph template, i assume template titles are configured elsewhere? The text was updated successfully, but these errors were encountered:. I think it depends on what values are actually available at the time of graph creation. Template titles are defined against the template with an order of priority.

Sorry, something went wrong. I tested a bit with new graphs, and i verified the graph template "title" string. The behavior i am seeing is, the graph title string for a newly created graph, does not reflect the graph title setting in the template. I'm currently looking into the suggested names functionality for a client and trying to wrap my head around the interface traffic one speciically because he doesn't get his ifName appearing.

I am going to try to figure out, where in the DB newly created interface graphs gets the "tile" string from. Ill post any results. Graph's that are templated, should come from Graph Template Data as far as I recall. Version 1 should be used for everything unless you have reason to choose otherwise. If you plan on utilizing and your device supports high-speed bit counters, you must select version 2. Starting with Cacti 0. In general, configuration of V3 options is target type dependent.

The following is cited from man snmpd. As an example, following definitions in the snmpd configuration create a set of definitions for use with SNMP V3. When adding this stuff to your snmp configuration, please remember to restart the agent. Verify this setting using. Now that you have created some devices, it is time to create graphs for these devices.

To do this, select the New Graphs menu option under the Create heading. If you're still at the device edit screen, select Create Graphs for this Host to see a screen similar to the image pictured below. The dropdown menu that contains each device should be used to select the host that you want to create new graphs for. The basic concept to this page is simple, place a check in each row that you want to create a graph for and click Create. If you are creating graphs from inside a "Data Query" box, there are a few additional things to keep in mind.

If this occurs you may want to consult the section on debugging data queries to see why your data query is not returning any results. Also, you may see a "Select a graph type" dropdown box under some data query boxes. Changing the value of this dropdown box affects which type of graph Cacti will make after clicking the Create button.

Cacti only displays this dropdown box when there is more than one type to choose from, so it may not be displayed in all cases. Once you have selected the graphs that you want to create, simply click the Create button at the bottom of the page. You will be taken to a new page that allows you to specify additional information about the graphs you are about to create.

You only see the fields here that are not part of each template, otherwise the value automatically comes from the template. When all of the values on this page look correct, click the Create button one last time to actually create your graphs.

If you would like to edit or delete your graphs after they have been created, use the Graph Management item on the menu.

Likewise, the Data Source menu item allows you to manage your data sources in Cacti. What is Spine? Support Cacti Report an Issue.



0コメント

  • 1000 / 1000