Bacula-users

Re: [Bacula-users] How to get notified about non-fatal errors

2011-12-20 04:53:04
Subject: Re: [Bacula-users] How to get notified about non-fatal errors
From: Mario Moder <lists AT demaio DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 20 Dec 2011 10:50:35 +0100
Am 19.12.2011 15:10, schrieb Oliver Hoffmann:

> I had the same problem but with mysqldump. The Backup was always OK but
> the dump was not. I tried different approaches but in the end I wrote a
> small script which greps the log file.
>
> For example
> grep $jobid /var/log/bacula/log | grep -i>  'error:'>  /tmp/$jobid.log
> and then an email if there are errors.
>
> The script is executed as "Command after job" on the server.

Hi Oliver

Thanks a lot, I didn't realize that you can also run a command on the 
server after (or before) the job (I only used the Client Run etc. 
scripts until now).

> Would be nice to have the possibility to alter the subject of the
> status mail depending on the result of a script. That way it would be
> easier to catch such errors with bweb, webacula, or just by filtering
> the mails from the bacula server.

Reading through the docs I found that there is also a %e substitution in 
the RunScript resource, which seems to be more fine-grained than the one 
in the Messages resource.

But I also think that this belongs somehow into the Messages resource 
(Warnings into the subject), do you know of a feature request for that 
already on the list?


Mario


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users