mrtg-config

Creates a file containing the information necessary to run Multi-Router Traffic Grapher (MRTG), a third-party performance monitoring utility, on a system with access to the PS Series group.

The MRTG utility collects data from the PS Series group about the I/O, latency, and throughput for the members and volumes in the group. It uses the member and volume index numbers (stored in the MIB tables) for the group objects.

The mrtg-config command retrieves the index numbers and enters them in a file it creates, called mrtg.cfg by default. You can optionally specify a different name for the file. The command also creates an HTML file, called index.html, that you can view in a browser, to see graphs of the performance data for the members and volumes.

Use ftp or scp to retrieve the configuration and HTML files from the group and copy them to a system that you will use to view the HTML file. See the diag command on diag for information on retrieving files from an array using the ftp or scp utility.

On the system, you can then run a Perl script that invokes MRTG and populates the graph data.

Format

mrtg-config [-verbose] [-nocr] [file]

Variable 

file

Optional name for the configuration file. By default, the file is named mrtg.cfg.

Options  

-verbose

Displays the configuration file to the screen as it is created.

-nocr

Use on UNIX systems. Uses the \n newline character when creating the configuration file instead of the default \r\n character for Windows systems.

Example

The following example creates an MRTG configuration file with the default name:

> mrtg-config

Mrtg configuration saved to mrtg.cfg

Generating html file.

Index file saved to index.html

You can retrieve the files using ftp or scp.

The following example creates an MRTG configuration file named for the group (group1):

kagroup> mrtg-config group1_mrtg.cfg

Mrtg configuration saved to group1_mrtg.cfg

Generating html file.

Index file saved to index.html

You can retrieve the files using ftp or scp.