Advanced Trending Agent

This section contains the following information:


What Is the Advanced Trending Agent?

The Advanced Trending Agent is an application that gathers and stores the trend data (historic data) for any parameter instrumented by an SNMP agent, if it is defined by a MIB variable and not just pre-configured MIB variables.

The Advanced Trending Agent functionality is available on NetWare, Windows, and Linux platforms.

The Advanced Trending Agent periodically collects and stores the samples of the configured MIB variables. The collected data is exposed through an SNMP interface. This data can be used to view the long-term trend graphs of the parameters.

You can configure the Advanced Trending Agent using a configuration file or through SNMP interface. The Advanced Trending Agent includes a command line utility, which reads the configuration file for any updates. The utility also resets the data collected and starts collecting new data. You can also configure the Advanced Trending Agent with threshold values for the parameters and generate a trap when the value exceeds the threshold value.


Configuring the Trend Variables

The Advanced Trending Agent starts trending on MIB variables specified in a configuration file.

You can modify the contents to add new parameters to trend upon or modify existing ones. The configuration file follows a standard INI format.

The section name can contain any value and is typically a meaningful name for the parameter being configured. All the section names in a given file must be distinct.

IMPORTANT:  You cannot change the name of the section. If you do so, the data for the parameters is lost and new data is collected.

You cannot change the names of the keys. Each key represents a particular configuration that defines the trending activity for that parameter. There are certain mandatory keys that must be defined for any section. If these keys are not present, the Advanced Trending Agent ignores the entire section.

In a set of the configuration keys, some of the keys are treated as mandatory keys. That particular Configuration entry is read-only if the data for the Mandatory configuration keys is supplied or id the particular configuration entry is discarded.

A typical section looks like this:

[Interface In-Octets]
MIBVariable=1.3.6.1.2.1.2.2.1.10.1
MIBVariable Type=1
MIBVariableTrendingStatus=1
MIBVariableDisplayName=Interfaces
SampleInterval=5
SampleType=1
Buckets=80
ThresholdRising=100
ThresholdFalling=60
AlarmType=1
AlarmSeverity=4
ThresholdAlarmGenerationStatus=1
IdentifierOID={1.3.6.1.2.1.2.2.1.10.3}
Filters=2
F1={I1=MS TCP Loopback interface}
F2={I1=3COM 3C920 Integrated Fast Ethernet Controller 3C905C-TX Compatible) - Packet Scheduler Miniport}
FilterType=1

You must specify the following mandatory keys:

MIBVariable (key 1)
SampleInterval (key 5)
ThresholdRising (key 8, only if ThersholdAlarmGenerationStatus=1)
ThresholdFalling (key 9, only if ThersholdAlarmGenerationStatus=1)
AlarmType1 (key 10, only if ThersholdAlarmGenerationStatus=1)

For more information, see Quick Reference Table.


Configuring the Advanced Trending Agent on Linux

Before starting the Advanced Trending Agent on Linux, ensure that you have completed the following tasks:


Enabling the SNMPv1/SNMPv2c Access for the Local Host

You must configure the snmpd master agent so that it allows SNMPv1/v2c read-only access to the Advanced Trending Agent.

  1. Edit the snmpd.conf file that is used by the snmpd master agent.

  2. Ensure that the access control settings allow SNMPv1/SNMPv2c access to the local host on the entire OID tree (starting with .1)

For more information, refer to the question, How do I configure access control in the SNMP Frequently Asked Question.


Configuring the Trap Sink for Sending SNMP v1 Traps to the Site Server

You must configure the snmpd master agent so that the traps generated by the Advanced Trending Agent are sent to the site server.

  1. Edit the snmpd.conf file.

  2. Add a line to configure a trap-sink pointing to the site server.

Refer to man snmpd.conf (5) man page for the specific syntax to configure a trap sink.


Changing the Default Community String Used by the Advanced Trending Agent

You must configure the Advanced Trending Agent to use the same community string you have used to allow access in the Enabling the SNMPv1/SNMPv2c Access for the Local Host section.

  1. Edit the /etc/opt/novell/Novell ZENworks/zfs-mms-advtrend.conf configuration file.

  2. In the Agent Config section, set the value of the ReadCommunity key to the appropriate community string for which you have allowed SNMPv1/SNMPv2c access.


Configuring the Advanced Trending Agent on All Platforms

To configure the Advanced Trending Agent, you must change the default purge interval.

The Advanced Trending Agent automatically trends on certain available MIB variables or specific instances of some SNMP tables. If these instances become unavailable, you can clean up the resources associated with the trending. You must configure the purge interval the Advanced Trending Agent should wait before this occurs.

  1. Edit the configuration file:

    • On NetWare: installation_path/advtrend/advtrend.ini file

    • On Windows: installation_path/advtrend/ini/advtrend.ini file

    • On Linux: /etc/opt/novell/Novell ZENworks/zfs-mms-advtrend.conf file

  2. In the Agent Config section, set the value of PurgeInterval key to a value in seconds.


Quick Reference Table

This table provides you a quick reference to the values of the keys and the meaning:

Key Name Explanation Allowed Values Mandatory Default Value

MIBVariable

The variable to trend on

Any integer valued SNMP OID

Yes

None

MIBVariableType

Whether the variable is scalar or whether it is a column in an SNMP table

1 (Scalar), 2 (Columnar)

No

1

MIBVariableTrendingStatus

Whether the trending is enabled on this or disabled

1 (Enabled), 2 (Disabled)

No

2

MIBVariableDisplayName

The name to refer to this variable from console Views

Any string

No

Object

SampleInterval

The time interval in seconds indicating when to take the sample

Positive integer

Yes

None

SampleType

Whether samples stored must be absolute values or deltas

1 (Absolute), 2 (Delta)

-

-

Buckets

Number of samples to store for a variable

Positive integer

No

50

ThresholdAlarmGenerationStatus

Whether to send traps or not

1 (Enabled), 2 (Disabled)

No

2

ThresholdRising

If the sample value exceeds the first time and the AlarmType value is set to rising, send a trap

Integer

Yes, if ThresholdAlarmGenerationStatus is enabled

None

ThresholdFalling

If the sample value falls exceeds the first time and the AlarmType value is set to Falling, send a trap

Integer

Yes, if ThresholdAlarmGenerationStatus is enabled

None

AlarmType

Whether the trap should be generated for exceeding the ThresholdRising or ThresholdFalling value

1 (Rising), 2 (Falling)

Yes, if ThresholdAlarmGenerationStatus is enabled

None

AlarmSeverity

Criticality of the trap that is sent.

1 Severe
2 Major
3 Minor
4 Information
5 Unknown

No

3

IdentifierOID

For an OID of MIBVariableType 2, this uniquely identifies the rows in a table.

A formatted string

No

None

Filters

Number of filter conditions specified.

Integer between 1 and 5

No

None

FilterType

Whether a SNMP row that matches a filter must be trended or ignored.

1 Inclusive (include), 2 Exclusive (ignore)

No

1


Refreshing Configuration Settings

The Advanced Trending Agent enables you to dynamically change the parameters of the trending activity for one or more MIB variables. You can add new entries or remove existing entries that are being trended in the configuration file.

After you make the changes, you must enter the advtrend command for the Advanced Trending Agent to retrieve the latest information. The advtrend command is available in the following locations:

Use the advtrend command to perform the following operations:


Reset the Information

If you want to restart trending the parameters:

  1. Make changes to the configuration file to add, modify, or delete any configuration sections.

  2. At the server prompt, enter advtrend reset.

The new entries will replace existing entries according to the configuration settings. The trending will start from the beginning.

WARNING:  Once you reset the information, the old data will be lost.


Adding a New Parameter for Trending

  1. Edit the configuration file to include a new section for your parameter.

  2. Define the required keys in the new section.

  3. At the server prompt on NetWare enter advtrend reread, and for Windows or Linux, enter advtrend read_cfg.

The new entries to be trended are appended.


Removing an Existing Trended Parameter

  1. Edit the configuration file to remove the section representing the parameter being trended.
  2. At the server prompt on NetWare enter advtrend reread, and for Windows or Linux, enter advtrend read_cfg.

The entries to be trended for this configuration section are removed.


Modifying the Values of the Keys for an Existing Parameter

If you want to modify the values for the keys of an MIB variable being trended, do the following:

  1. Edit the configuration file to change the values of the keys.

  2. At the server prompt, on NetWare enter advtrend reread, and for Windows or Linux, enter advtrend read_cfg.

The Advanced Trending Agent will now use the new parameters.

If you modify the following parameters, the previous data will be removed:

MIBVariable
MIBVariableType
SampleInterval
SampleType
IdentifierOID


Installing the Advanced Trending Agent

For more information, see the Novell ZENworks Server Management Installation Guide.