Next Previous Table of Contents
snmpmon is a simple program that monitors bandwidth
usage on a periodic basis and sends a SNMPv2 TRAP when the data
rate exceeds a certain value.
snmpmon was written as an exercise for the class CS669
"Network Management" at Stevens Instititute of
Technology according to the following requirements:
- Program should be able to run from a cron job - i.e.
periodic invocations for the same task. (This is not a
continuously running program/daemon/service)
- Read configuration file for trap destination,
host/interface to monitor, threshold at which trap should be
sent. (Defined here)
- Write state and/or current/past measurement out to
external file. Do not keep long histories or log files that
keep growing without bounds or do not auto truncate or rotate
data sets.
- Provide a command line test parameter that allows a
SNMPv2 TRAP PDU to be generated based on current data rate
regardless of threshold setting.
- Must be able to support an arbitrary number of interfaces
to be monitored
This project turned out to be quite interesting, and I thought
that maybe somebody else might find this a useful tool, if only
to expand and extend it for other purposes.
Next Previous Table of Contents
