[Box Backup] Parse Logfiles
Chris Wilson
boxbackup@fluffy.co.uk
Fri, 23 Mar 2007 00:06:04 +0000 (GMT)
Hi Torsten,
On Thu, 22 Mar 2007, Torsten Boob wrote:
> i had the following error:
>
> Exception caught (Connection Protocol_UnexpectedReply (Server probably
> reported an error.) 7/47), reset state and waiting to retry...
>
> The error occurred because one backup location in bbackupd.conf was
> listed twice.
>
> My main problem is the following. The boxbackup server did not tell me
> an error but a successfully login and logout of the client.
> NotifySysAdmin.sh on the client was not called, too. So i have to look
> at the logfiles frequently to not overlook an error.
>
> How can i reliable get a notification when an error occurs ? Did anybody
> write a program to filter the logfile ? Is it possible to configure
> boxbackup, to call NotifySysAdmin.sh on every error ? That would be the
> best solution for me.
I think I have fixed this in my merge tree. If you have time and
inclination, I'd be very grateful if you could test it and let me know if
it solves your issue. Just checkout
http://bbdev.fluffy.co.uk/svn/box/chris/merge using Subversion, run
"./bootstrap" and then configure, make, etc. as normal.
What I've done is to add a new sysadmin notification, "backup-error",
which is called whenever a backup fails.
You might get some false positives, especially if the connection between
client and server is intermittent. Please let me know if this, or anything
else, is a problem for you.
With your help, I hope that this code can be merged into the trunk soon.
Cheers, Chris.
--
_____ __ _
\ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |