[Box Backup] Checking that bbackupd's are backing up?

Adrian boxbackup@fluffy.co.uk
Wed, 15 Sep 2004 20:36:59 -0700 (MST)


Martin,

There are actually several files that have to be created/modified to set
up logwatch, I suggest reading up on how to set up a service on your
particular installation.  If you need more guidance, let me know, and I
will try to write up a little how-to.  The file that does the actual work
is a perl script something like below (I apologize in advance for the
complete lack of comments).

Adrian

#################################################################
#!/usr/bin/perl
#################################################################
while (defined($line = <STDIN>)) {
	if($line =~ /Login/){
		@field=split(/ +/,$line);
		$field[8] =~ s/,//;
		$i=1;
		$flag=0;
		foreach $client (@clients) {
			if($client eq $field[8]) {
				$hits[$i]++;
				$flag=1;
			}
			$i++;
		}
		if ($flag==0) {
			push(@clients,$field[8]);
			$hits[$i]++;
		}
	}
}
$i=1;
foreach $client (@clients) {
	print "Client ",$client," ",@hits[$i]," Times\n";
	$i++;
}
exit(0);
#################################################################

> On Wed, 2004-09-15 at 23:43, Adrian wrote:
>> I also have "logwatch" set up to report the number of calls made by
each client everyday.  This has caught a lot of otherwise invisible
problems (like the time my server's hard drive began to fail).
>
> I'd be interested in the logwatch config file for this if you don't mind.
>
> Cheers,
>
> Martin.
>
> _______________________________________________
> boxbackup mailing list
> boxbackup@fluffy.co.uk
> http://lists.warhead.org.uk/mailman/listinfo/boxbackup
>