Next Previous Table of Contents
snmpmon reads a configuration file on startup to determine which
hosts and interfaces need to be monitored etc. The default file would be
~/.snmpmonrc. It checks the interfaces on these hosts and writes
the information to a log file, which, per default is
/var/log/snmpmon.log.
snmpmon supports a few command-line options to overwrite these defaults
and provide other conveniences - it'd probably be a good idea to start with
% snmpmon -h
The snmpmon configuration file has the following format:
Host[interface]=hostname or IP Address
Community[interface] = community
Interface[interface] = ifIndex Number
Threshold[interface] = absolute data rate
TrapReceiver[interface] = IP Address or hostname
This distribution includes a sample configuration file, appropriately named
sample.rc. You can edit this file and then move it to
~/.snmprc - as you can see from the sample file, snmpmon
supports some comments ("#").
The snmpmon log file has the following format:
host :: interface :: AdminStatus :: OperStatus :: Rate (in/out) :: Time
--------------------------------------------------------------------------------
host1 (host1.somewhere.tdl) :: lo0 :: down :: up :: 148068427.214627/173725767.780848 :: 114565071
host2 (host2.somewhere.tdl) :: epic0 :: up :: up :: 6739121.65507161/53716861.4442854 :: 114565576
Again, this distribution includes a sample log file, appropriately named
sample.log.
If you run into any problems, if you encounter bugs, or if you have any
other comments on this program, please don't hesitate to email me.
Next Previous Table of Contents