snmpmondb 1.0 review

Download
by rbytes.net on

snmpmondb project can track network traffic usage for local and remote hosts via SNMP

License: GPL (GNU General Public License)
File size: 0K
Developer: Karl Bastiman
0 stars award from rbytes.net

snmpmondb project can track network traffic usage for local and remote hosts via SNMP. A few simple Web pages are included to show the resultant data in various graphs.

Requirements:
Perl 5.x
Net::SNMP module for Perl
The snmpmon Handbook
phpbars - included within this release, I imagine newer versions will also work.

Installation:

Firstly the database, snmpmondb requires MySQL 4.x, it may work on previous versions but this has not been tested.

Create a database for snmpmondb, typically called 'snmpmon' and grant access rights to allow the creation of tables and read/write to those tables.

Then do the following from within the directory you extracted snmpmondb to:

% mysql -p -u < username > < databasename > < snmpmondb.sql

If there are no errors then this was successfull.

In order to install snmpmondb on your system, type the following in the directory to which you downloaded the snmpmondb distribution:

% tar zxvf snmpmondb-1.0.tar.gz
% cd snmpmondb-1.0
% su
% make install

This will install snmpmondb in /usr/local/bin/ and copy the man-page into /usr/local/man/man1/. Should the perl executable not live in /usr/bin/perl, please edit the file snmpmon and change the first line accordingly:

If perl lives in /usr/local/pkg/bin/, change the first line from
#!/usr/bin/perl -w
to
#!/usr/local/pkg/bin/perl -w

Install the PHP scripts into a httpd accessable directory of your choice and change the DB specific variables in graphs.inc.php to reflect the database created above.

Usage:

snmpmon reads a configuration file on startup to determine which hosts and iterfaces need to be monitored etc. The default file would be ~/.snmpmonrc.

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

File Formats:

The snmpmon configuration file has the following format:

Host[interface]=hostname or IP Address
Community[interface] = community
Interface[interface] = ifIndex Number

This distribution includes a sample configuration file, appropriately named sample.rc. You can edit this file and then move it to ~/.snmpmonrc - as you can see from the sample file, snmpmon supports some comments ("#").

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.

What's New in This Release:
snmpmondb adds database logging and some simple Web pages to the original snmpmon by Jan Schaumann.

snmpmondb 1.0 keywords