Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2001 > September 2001

A Perl Package for Monitoring Traffic

John Shearer
September 2001

Systems and network administrators constantly struggle to know what is happening on their networks. This job is difficult at best, and at worst, it can be downright exasperating. With the myriad of manufacturers, standards, protocols, and everyone thinking they have the tool that does it all, the situation is not improving. With this challenge in mind, I decided to turn to my old friends for help: Perl, SNMP (Simple Network Management Protocol), CGI, and good old-fashioned HTML.

The rtr-graph package described in this article is a set of Perl scripts for polling routers (or other SNMP-enabled devices) for information about traffic in and out of specified interfaces. You can set up "rtr-traff" as a cron job to poll the interface at a specified interval, then use a CGI script for a Web front end to the finished graphs. The Web interface automatically sorts results from different devices into separate drop-down lists. You can also set up multiple config files to poll different devices, change final graph specs, and set up new parameters. This concept was originally designed to check our Internet T1 interface for traffic levels during the day. It has since evolved into a versatile program that gathers statistics from any device to check problems, get baselines, or just see what's going on.

Rtr-graph allows the administrator to quickly gain access to traffic statistics in specific areas of the network. When trouble spots (or suspected trouble spots) arise, rtr-graph can be quickly adjusted to monitor a certain area. The Web interface allows the administrator to instantly view multiple graphs spanning several days to see trends and set benchmarks (Figure 1).




MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Discover WinDev 11 RAD
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version

Wanna see your ad here?