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 (snmpuprd.pl) for data collection and
storage in the round-robin database. 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
to determine which metrics to gather from your devices. (The Perl
script and the snmphost and snmpvars files are in a location that
is based on the operating environment.
Windows Specifics: SASHome\SASFoundation\9.4\itmsmvadata\sasmisc
UNIX Specifics: SASHOME/SASFoundation/9.4/misc
z/OS Specifics: &prefix.ITRM.CPMISC
The Perl script also
uses the snmpwalk
command
to collect the snmp data. When the script is correctly set up, you
can use your operating system's scheduling facility to run the
script at the appropriate interval.
Note: In some instances, the data
might be collected by a tool other than the snmpuprd.pl script that
is provided with SAS IT Resource Management. In that case, 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 do 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
.)
For information about
backloading, see How to Backload Raw Data.