8.1 CREATING A DATA COLLECTION
Before creating a data collection, decide which MIB variable best defines the information you are interested in collecting, whether to alarm on custom thresholds, and whether you want to store the data. Typically, you should store the data for analysis before defining custom thresholds. By storing the data over a period of time, you will have the ability to graph the data in order to collect statistics and spot trends. Graphing the data allows you to set more accurate threshold values.The example described in this chapter collects on the Hewlett-Packardspecific MIB variable ieee8023MacTransmitted . Any MIB variable with a numeric value may be used when defining a data collection.
8.1.1 Defining and Displaying an MIB Collection
The first step in creating a collection is to define the MIB object (variable) for which you want to collect data. The following steps allow you to define a MIB object and collection for ieee8023MacTransmitted without checking a threshold:
- Select from the menu bar Options
Data Collection & Thresholds , as shown in Figure 8-1.
Figure 8-1. Select
OptionsData Collections & Thresholds from the menu bar to configure SNMP data collection.
height="435" SRC="/image/library/english/10090_08fig01.jpg" >
- From the Data Collection & Thresholds menu bar, select Edit
Add
MIB Objects… , as shown in Figure 8-2.
- While there are several pre-defined MIB objects, as shown in Figure 8-2, none of the collections for the objects are active. Notice that the second column in Figure 8-2 indicates "Suspended" for each of the defined collections. NNM cannot determine which devices are critical or which MIB variables are interesting in your enterprise. The implementation of NNM varies for each enterprise.
Figure 8-2. Add a new data collection by selecting
EditAdd
MIB Objects… from the Data Collection & Thresholds dialog box.
[View full size image]height="295" SRC="/image/library/english/10090_08fig02.gif" >
- Traverse the MIB tree to the MIB object for collection. The Hewlett-Packard enterprise-specific MIB variable ieee8023MacTransmitted shown in Figure 8-3 can be found under the branch .iso.org.dod.internet.private.enterprises.hp.nm.interface.ieee8023Mac.ieee8023MacTable . Click [OK] from the MIB Object Selection dialog box.
NoteThis example uses a MIB variable that has been pre-loaded in NNM. To use a custom MIB variable, acquire the vendor MIBs according to the vendor instructions.[1] The MIBs then must be loaded into NNM by selecting OptionsFigure 8-3. Traverse the MIB tree and select the MIB variable for the collection. The collection defined in this example is
ieee8023MacTransmitted , which indicates the number of frames successfully transmitted.Load/unload MIBS: SNMP from the menu bar. Click the [Load…] button, double-click Vendor , and select the desired MIB variable for data collection.
[1] Vendor MIBs and traps may be available on a CD or downloaded via ftp or the web. Typically, the vendor supplies instructions on how to get the MIBs and SNMP traps loaded into NNM.
- When you click the [OK] button (see Figure 8-3) from the MIB Object Selection dialog box, NNM displays the dialog box shown in Figure 8-4. Set the following fields in the ieee8023MacTransmitted collection dialog box:
Figure 8-4. When configuring a collection, define the
Collection Mode , the Source , and the Polling Interval for the data collection. Type the hostname for the Source and click [Add] .
Chapter 9, "Scalability and Distribution."Setting a polling interval of five seconds (5s) allows you to capture data quickly and verify that the collection is functioning properly. When the collection is functioning to your satisfaction, modify the polling interval to a more reasonable value, such as 30 minutes (30m) or 1 hour (1h). Polling too frequently takes additional bandwidth, CPU resources, and data storage space.Additional fields available from the data collection dialog may be also customized. If a device contains multiple instances of an item such as file systems or network interfaces, Instances allows you to specify whether to collect on all or some of the instances. For example, if you have multiple network interfaces but only want to specify a collection for interface one and four, you would specify as the instance From List 1,4 .You may want to limit a collection by nodes with a specific OID (for example, to limit to a specific vendor's equipment) by selecting the option. This works well when combined with specifying a group of IP addresses (158.153.*.1): Only Collect On Sources With sysObjectIDs .By default, traps are not generated when the SNMP query fails. This may be enabled by selecting Create Event When SNMP Request Fails .Field-specific help is available from this and many other dialog boxes. Selecting a field and pressing the F1 key accesses field-specific help. Detailed information may be obtained from any dialog box.- Select File
Save to save the collection. Select the newly defined collection and select the menu item Actions
Resume Collection and then File
Save .
- Wait a minimum of two polling intervals (10 seconds, in this case) and select Actions
Show Data as shown in Figures 8-5 and 8-6.
Figure 8-5. To view the collected data, select the collection and select
ActionsShow Data… from the Data Collections & Thresholds dialog box.
[View full size image]Figure 8-6. The data is displayed as it is collected. Note the five interfaces shown in the upper section of the dialog box. The data being displayed corresponds to the selected interface. Click the
[Graph] button to graph the collected data.
[View full size image]height="562" SRC="/image/library/english/10090_08fig06.gif" >
- Set the current directory to the data collection directory.cd $OV_DB/snmpCollect
- List the collected data for interface number 4 for the MIB variable ieee3023MacTransmitted.snmpColDump ieee8023MacTransmitted.4 | more
8.1.2 Defining an MIB Expression for Collection
A MIB expression may be used to define a collection. If no single MIB variable exists for the data you are interested in, you can define a formula using a combination of MIB variables. For example, if you are interested in the percent of available bandwidth utilized on an interface, this can be calculated using a combination of the variables received byte rate, transmitted byte rate, and interface link speed. The pre-defined MIB expression If%util defines the MIB expression for available bandwidth.To display the MIB expression If%util and description, open the Data Collection and Thresholds dialog box. Select the If%util collection and select EditModify
MIB Objects from the menu bar. Then click the [Describe] button. Expression calculations are in Reverse Polish Notation and can be a combination of variables and numbers. Figure 8-7 shows the calculation and description defined by the If%util MIB expression. You may select these expressions to add to the list available for configuring specific collections.
Now that you have collected data, you are ready to begin analyzing the information collected. During analysis, consider what values appear to be in a normal state verses an abnormal state. In doing this, you begin to define threshold and rearm values for your data.Figure 8-7. The MIB expression
If%util calculates the percent of available bandwidth.
[View full size image]height="239" SRC="/image/library/english/10090_08fig07.gif" >
- Select File