MRTG::ParseMRTG::Parse is a Perl extension for parsing and utilizing the logfiles generated by the famous MRTG Tool. | |
Download |
MRTG::Parse Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Mario Fuerderer
- Publisher web site:
- http://search.cpan.org/~mariof/MRTG-Parse-0.03/lib/MRTG/Parse.pm
MRTG::Parse Tags
MRTG::Parse Description
MRTG::Parse is a Perl extension for parsing and utilizing the logfiles generated by the famous MRTG Tool. MRTG::Parse is a 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 $desired_unit = "GB"; my ($traffic_incoming, $traffic_outgoing, $traffic_sum) = mrtg_parse($mrtg_logfile, $period, $desired_unit); print "Incoming Traffic: $traffic_incomingn"; print "Outgoing Traffic: $traffic_outgoingn"; print "= Sum $traffic_sumn";This perl extension enables its users to parse and utilize the logfiles that are generated by the famous MRTG (Multi Router Traffic Grapher) tool.mrtg_parse() takes three argument: 1st: filename of the mrtg logfile 2nd: time period to genereate the output for valid values are: - individual time periods like: 20040821-20050130 (ISO 8601) - static values: day, month, year 3rd: the desired unit (optional) valid values are: - B, KB, MB, GB, TB - if missing mrtg_parse will chose an adequate one for youmrtg_parse() returns three values: 1st: Incoming traffic 2nd: Outgoing traffic 3rd: Sum of incoming and outgoing Requirements: · Perl
MRTG::Parse Related Software