MRTG-Parse version 0.01 ======================= MRTG::Parse - Perl extension for parsing and utilizing the logfiles generated by the famous MRTG Tool. SYNOPSIS use strict; use MRTG::Parse; my $mrtg_logfile = "/var/www/htdocs/mrtg/eth0.log"; my $period = "day"; my ($traffic_incoming, $traffic_outgoing, $traffic_sum) = MRTG::Parse::mrtg_parse($mrtg_logfile, $period); print "Incoming Traffic: $traffic_incoming\n"; print "Outgoing Traffic: $traffic_outgoing\n"; print "= Sum $traffic_sum\n"; DESCRIPTION This perl extension enables its users to parse and utilize the logfiles that are generated by the famous MRTG (Multi Router Traffic Grapher) tool. At present it can only handle three different default time periods: - day (traffic generated on the current day) - month (traffic generated in the current month) - year (traffic generated in the current year) EXPORT None by default. INSTALLATION To install this module type the following: perl Makefile.PL make make test make install AUTHOR Mario Fuerderer, mario@codehack.org COPYRIGHT AND LICENSE Copyright (C) 2005 by Mario Fuerderer This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA