From: Michael Tremer Date: Mon, 21 Sep 2009 19:39:53 +0000 (+0200) Subject: Remove old logwatch configuration. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c033b67fd050747e73d79db99549e1174472b9b8;p=ipfire-3.x.git Remove old logwatch configuration. --- diff --git a/config/logwatch/dialup b/config/logwatch/dialup deleted file mode 100644 index 95a7a5993..000000000 --- a/config/logwatch/dialup +++ /dev/null @@ -1,87 +0,0 @@ - -########################################################################## -# $Id: dialup $ -########################################################################## - -use Logwatch ':all'; - -$Debug = ValueOrDefault($ENV{'LOGWATCH_DEBUG'}, 0); -$Detail = ValueOrDefault($ENV{'LOGWATCH_DETAIL_LEVEL'}, 0); - -# Avoid "Use of uninitialized value" warning messages. -sub ValueOrDefault { - my ($value, $default) = @_; - return ($value ? $value : $default); -} - -if ( $Debug >= 5 ) { - print STDERR "\n\nDEBUG: Inside DIALUP Filter \n\n"; - $DebugCounter = 1; -} - -while (defined($ThisLine = )) { - if ( $Debug >= 5 ) { - print STDERR "DEBUG($DebugCounter): $ThisLine"; - $DebugCounter++; - } - chomp($ThisLine); - - if ( $ThisLine =~ /^pppd (\d+).(\d+).(\d+) started by root, uid (\d+)/ ) - { - if ($Debug >= 5) - { - print STDERR "DEBUG: Found PPP start\n"; - } - $Starts++ - } - elsif ( $ThisLine =~ /^Connection terminated./ ) - { - if ($Debug >= 5) - { - print STDERR "DEBUG: Found PPP down\n"; - } - $Downs++ - } - elsif ( $ThisLine =~ /^PPP session is (\d+)/ ) - { - if ($Debug >= 5) - { - print STDERR "DEBUG: Found PPP connect\n"; - } - $Ups++ - } - elsif ( $ThisLine =~ /^Connect time (\d+).(\d+) minutes./ ) - { - if ($Debug >= 5) - { - print STDERR "DEBUG: Found PPP connecttime $1\n"; - } - $Uptime += $1 + ($2 / 10); - } -} - -########################################################### - -if ( $Starts ) -{ - print "PPP Dial attempts: " . $Starts . " Time(s)\n"; -} - -if ( $Ups ) -{ - print "PPP Connected: " . $Ups . " Time(s)\n"; -} - -if ( $Downs ) -{ - print "PPP Disconnected: " . $Downs . " Time(s)\n"; -} - -if ( $Uptime ) -{ - print "Total connect time: " . $Uptime . " Minutes\n"; -} - -exit(0); - -# vi: shiftwidth=3 tabstop=3 syntax=perl et diff --git a/config/logwatch/dialup.conf b/config/logwatch/dialup.conf deleted file mode 100644 index 87835d31d..000000000 --- a/config/logwatch/dialup.conf +++ /dev/null @@ -1,24 +0,0 @@ -########################################################################### -# -########################################################################### - -# You can put comments anywhere you want to. They are effective for the -# rest of the line. - -# this is in the format of = . Whitespace at the beginning -# and end of the lines is removed. Whitespace before and after the = sign -# is removed. Everything is case *insensitive*. - -# Yes = True = On = 1 -# No = False = Off = 0 - -Title = "Dialup" - -# Which logfile group... -LogFile = messages - -# Only give lines pertaining to the ppp service... -*OnlyService = pppd -*RemoveHeaders - -# vi: shiftwidth=3 tabstop=3 et