Skip to content

Commit 71a1de9

Browse files
committed
Updating Generic SNMP OID Doco
1 parent b231d72 commit 71a1de9

4 files changed

+42
-17
lines changed

Graph-a-Single-SNMP-OID.md

+42-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
1-
# Graph a Single SNMP OID
1+
# Creating a Graph for a Single SNMP OID
22

3-
When dealing with SNMP-enabled devices, there are often times when you want to
3+
When dealing with SNMP-enabled **Devices**, there are often times when you want to
44
graph the value of a single OID. This tutorial explains how to do this in
5-
Cacti. It also assumes that you have the "SNMP - Generic OID Template" graph
6-
template, which is now included in Cacti as of version 0.8.5. If you do not see
7-
this template listed under Graph Templates, download the template from the
8-
Cacti website in XML form and import it using the Import Templates menu item.
5+
Cacti. It also assumes that you have the "SNMP - Generic OID Template" **Graph
6+
Template** which is available in the **Generic SNMP Device Package**.
7+
If you do not see this **Graph Template** listed under **Graph Templates**,
8+
install the **Generic SNMP Device Package** using the `import_package.php`
9+
command line script located in Cacti's cli directory.
910

10-
To start the process of creating a new graph for your OID, click the New Graphs
11-
menu item and select the host that contains the target OID from the dropdown.
12-
Under the Graph Templates box, you will see a dropdown on the last line that
13-
reads (Select a graph type to create). From this dropdown, choose "SNMP -
14-
Generic OID Template" and click the Create button at the bottom of the page.
11+
To start the process of creating a new graph for your OID, click go to
12+
`Cosnole > Create > New Graphs`, and from there find the **Device**
13+
you would like to add the **Graph** to.
14+
15+
From the image below, you can see the **New Graphs** interface.
16+
17+
![Graphs New](images/graphs-new.png)
18+
19+
In this image, only the "Graph Template Based` **Graph Templates** are displayed.
20+
Had the `Graph Types` been switched to any of the **Data Query** based ``Graph Types``
21+
the interface would look a bit different.
22+
23+
From that Interface, to create a `Generic SNMP OID` based Graph, you need to first
24+
select it from the `Select a graph type to create` drop-down. Once you have selected
25+
it, you may press the `Create` button, at which point in time, you will see the
26+
image below.
27+
28+
![Graphs New](images/graphs-new-generic-oid.png)
29+
30+
From this interface, you must define various attributes for your resulting **Graph**
31+
as shown in the table below.
1532

1633
###### Table 10-1. Field Description: SNMP - Generic OID Template
1734

@@ -27,16 +44,24 @@ Name | Description
2744
(Data Source) Data Source Type [snmp_oid] | How the data from the OID should be stored by RRDTool and interpreted on the graph. If the value of the OID represents the actual data, you should use GAUGE for this field. If the OID value is a constantly incremented number, you should use COUNTER for this field. The two remaining field values, DERIVE and ABSOLUTE can be ignored in most situations.
2845
(Custom Data) OID | The actual SNMP OID to graph. It is typically a good idea to enter the number OID here as opposed to using MIB names. For instance, to get the number of open files on a Netware server, you would use ".1.3.6.1.4.1.23.2.28.2.7.0" as the OID.
2946

30-
You will be presented with several fields that will require input before the
31-
new graph can be created. They are described in more detail below.
47+
So, based upon your specific OID that you are graphing, You will need to fill out these
48+
fields before the new graph can be created properly.
3249

3350
When finished filling in values for these fields, click the Create button. Your
34-
new graph can now be accessed through the Graph Management page or the Graphs
35-
tab inside of Cacti.
51+
new **Graph** can now be accessed through the `Cosole > Management > Graphs` menu pick.
52+
53+
> **NOTE**: When comparing the Table above, to the image, you will see that the
54+
> `Opacity/Alpha Channel` pick is missing from the interface. To add it, you simply need
55+
> to edit the `Generic SNMP OID` **Graph Template**, add a new **Graph Item Input**
56+
> override to the Alpha/Opacity on the Graph Template as shown below. We will cover
57+
> that topic in the **Graph Template** section of the manual though.
58+
59+
![Graphs New](images/graphs-new-generic-oid-alpha.png)
60+
3661

37-
#### Note on graphing single OID's with spine
62+
#### Important Note on graphing single OID's with Cacti
3863

39-
In order to ensure that Spine will process single OID's correctly,
64+
In order to ensure that Spine and cmd.php will process single OID's correctly,
4065
They should be written using numeric format separated by dots, such as `1.3.6.1.4.1.9.9.97.`
4166
At this time, ASN's (named OID's) such as `enterprise.9.9.97` (Cisco Switch) or
4267
`enterprises.cisco.ciscoMgnt.ciscoSwitchEngineMIB` are not supported.
74.5 KB
Loading

images/graphs-new-generic-oid.png

87.8 KB
Loading

images/graphs-new.png

78.2 KB
Loading

0 commit comments

Comments
 (0)