Bacula-users

Re: [Bacula-users] How to send a mail after a Job ?

2009-06-10 09:30:56
Subject: Re: [Bacula-users] How to send a mail after a Job ?
From: Willians Vivanco <williansvi AT infomed.sld DOT cu>
To: Tolj Mario <mario.tolj AT champittet DOT ch>, bacula-users AT lists.sourceforge DOT net
Date: Wed, 10 Jun 2009 09:25:42 -0400
Tolj Mario wrote:
> Hello,
>
> Sorry if my english isn't very well.
>
> I'm trying to configure Bacula to send me a mail after a Job (Succes or 
> Error, etc...). but i'm not sure how to configure that.
>
> My Linux server is in my windows Active Directory, so i try to send a 
> mail to two of my Active Directory users (user1 AT test DOT ch and user2 AT 
> test DOT ch)
>
> In the bacula-dir.conf i'have try to only put the email addresses in the 
> Message ressource separated by a ";" but it doesn't work. I think it's a 
> little bit more complicated than that :)
>
> Messages {
>   Name = Standard
>   mailcommand = "/usr/sbin/bsmtp -h *user1 AT test DOT ch;user2 AT test DOT 
> ch* \ -f 
> \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
>   operatorcommand = "/usr/sbin/bsmtp -h *user1 AT test DOT ch;user2 AT test 
> DOT ch \* 
> -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
>   console = all, !skipped, !saved
>   append = "/var/lib/bacula/log" = all, !skipped
> }
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>   
As simple as create an script that send the emails and call it from the 
job resource using the "runAfterJob" attribute... This was my solution 
and it works... Maybe isn't the best one. But it results for me.

Regards
Willians

---------------------------------------
    Red Telematica de Salud - Cuba
          CNICM - Infomed

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users