The SNMP adapter can read data from
a round-robin database that was created with rrdtool.
Note: The round-robin database
tool, rrdtool, is a freeware package that is available for download
from Tobias Oetiker. This software is widely used, often in conjunction
with Tobias Oetiker's MRTG package, which is a real-time monitor of
data.
The SNMP adapter reads
only those round-robin databases that contain one round-robin database
for each combination of the device, the network interface to which
the device is connected, and the metric. The data can be gathered
at any interval, and any metrics and devices can be gathered.
In order to produce
the correct set of round-robin databases, SAS IT Resource Management
provides a sample Perl script for data collection and storage in the
round-robin database. This script, called snmpuprd.pl, is available
in the
sasmisc
folder. The section
at the top of the script enables you to specify modifications that
control how the data is collected. The Perl script uses the snmphost
and snmpvars files, which are located in the
sasmisc
folder,
to determine which metrics to gather from your devices. It also uses
the snmpwalk command to collect the snmp data. When you have the script
set up correctly, you can use your operating system's scheduling facility
to run the script at the appropriate interval.
Note: If the data is being collected
by a tool other than the snmpuprd.pl script provided with SAS IT Resource
Management, then it might be necessary to modify the staging code
to handle the format differences. This code can be modified by one
of the following methods:
-
Edit the code from the staging
job’s
Code window. To do so, change
the
Code Generation Mode option at the top
of the screen to
All user written
.
-
Deploy the job. The deployed code
can be modified from an external editor. The code to be modified
begins with this comment line:
/*---- Create script to read data from an RRD ----*/
Note: You can backload data from
the rrdtool. To so, specify the
Number of days to load option
in the
Staging Parameters property tab of
the SNMP staging transformation. (This option is available only if
the chosen access command is RRDTool.)