rtgtargmkr-with-modules-0.2.tar.gz

This is the latest update of the rtgtargmkr.pl script with modules support. 
There have been a number of bug fixes since the last release. The most
notable change is the addition of %table_map and %table_options variables
to the modules. These are need for use by the new perl module for displaying 
graphs of the data generated from the script. The perl module is named 
RTG::View.pm, and it requires mod_perl in apache to run. It has only been 
tested on Apache 2.0 with mod_perl 1.99. The additions that were added to
my httpd.conf file are below. The View.pm module does require access to the
rtgmodules directory, as it parses the modules in able to get the required 
information to create the graphs. Once again, as before, this data is being 
stored outside of MySQL as to not interfere with the current database schema, 
or any future changes to the database schema. In addition View.pm does pay 
attention to the active/inactive status field of the interface table. The 
format and setup of the output of View.pm is very similiar to mrtg-rrd.cgi 
if you are familiar with that application for use with MRTG.

The modules is accessed via HTTP by the following mechinisms:
http://rtg.server/rtg	- will give list of all machines with stats
http://rtg.server/rtg/hostname	- gives 24 hour graphs of all stats for hostname
http://rtg.server/rtg/hostname/MIBII-netio	- give all graphs for hostname 
	of type MIBII-netio (this translates to ifInOctets and ifOutOctets)
http://rtg.server/rtg/hostname/MIBII-netio/20	- give 24hour, 7day, 30 day, and
365 day historical graphs of hostname for stats MIBII-netio on interface 20.

I'll attempt to give any help I can, but I can't guarantee anything :) This
software, and any updates will be available at 
http://www.misplaced.net/~btoneill/rtg

Brian T. O'Neill
btoneill@misplaced.net


httpd.conf:
PerlModule Apache2
PerlModule Apache::compat
PerlInitHandler Apache::Reload

Alias /perl/ /opt/apache/perl/

<Location /perl/>
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
</Location>

<Location /rtg>
      SetHandler perl-script
      PerlResponseHandler  RTG::View
</Location>

