Bacula-users

Re: [Bacula-users] how to configure email notifications in bacula?

2016-03-08 14:08:44
Subject: Re: [Bacula-users] how to configure email notifications in bacula?
From: Dan Langille <dan AT langille DOT org>
To: Hector Javier Agudelo Corredor <hejaco AT gmail DOT com>
Date: Tue, 8 Mar 2016 14:01:51 -0500
On Mar 8, 2016, at 10:29 AM, Hector Javier Agudelo Corredor <hejaco AT gmail DOT com> wrote:

Hi.
I want to set the bacula for me only send the status of the backup as this is satisfactory and where failed send a detailed error. Currently with default settings send me a detailed backup done correctly,

that changes can I make?

---------------------------------------------------------------
Messages {
  Name = Standard
.


  mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  mail = prueba AT prueba DOT com= all, !skipped
  operator = prueba AT prueba DOT com = mount
  console = all, !skipped, !saved

  append = "/opt/bacula/log/bacula.log" = all, !skipped
  catalog = all
}

---------------------------------------------------------------
I receive the following information by email:

08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: Start Backup JobId 115, Job=Bkbacula74web.2016-03-08_10.05.18_06
08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: Using Device "FileChgr1-Dev1" to write.
08-Mar 10:05 bacula74mysql.prueba.net-sd JobId 115: Volume "Remoto_bacula74web-0002" previously written, moving to end of data.
08-Mar 10:05 bacula74mysql.prueba.net-sd JobId 115: Ready to append to end of Volume "Remoto_bacula74web-0002" size=153,738,358 08-Mar 10:05 bacula74mysql.prueba.net-sd JobId 115: Spooling data ...
08-Mar 10:05 bacula74mysql.prueba.net-sd JobId 115: Committing spooled data to Volume "Remoto_bacula74web-0002". Despooling 76,882,385 bytes ...
08-Mar 10:05 bacula74mysql.prueba.net-sd JobId 115: Despooling elapsed time = 00:00:01, Transfer rate = 76.88 M Bytes/second 08-Mar 10:05 bacula74mysql.prueba.net-sd JobId 115: Elapsed time=00:00:12, Transfer rate=6.400 M Bytes/second 08-Mar 10:05 bacula74mysql.prueba.net-sd JobId 115: Sending spooled attrs to the Director. Despooling 5,193 bytes ...
08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: Bacula bacula74mysql.prueba.net-dir 7.2.0 (14Aug15):
  Build OS:               x86_64-unknown-linux-gnu redhat 
  JobId:                  115
  Job:                    Bkbacula74web.2016-03-08_10.05.18_06
  Backup Level:           Full
  Client:                 "bacula74web.prueba.net-fd" 7.2.0 (14Aug15) x86_64-unknown-linux-gnu,redhat,
  FileSet:                "Bkbacula74webremoto" 2016-02-08 18:44:51
  Pool:                   "Remote_bacula74web" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File1" (From command line)
  Scheduled time:         08-Mar-2016 10:05:18
  Start time:             08-Mar-2016 10:05:20
  End time:               08-Mar-2016 10:05:32
  Elapsed time:           12 secs
  Priority:               10
  FD Files Written:       19
  SD Files Written:       19
  FD Bytes Written:       76,808,044 (76.80 MB)
  SD Bytes Written:       76,810,105 (76.81 MB)
  Rate:                   6400.7 KB/s
  Software Compression:   None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):         Remoto_bacula74web-0002
  Volume Session Id:      1
  Volume Session Time:    1457449495
  Last Volume Bytes:      230,606,439 (230.6 MB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: Begin pruning Jobs older than 6 months .
08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: No Jobs found to prune.
08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: Begin pruning Files.
08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: No Files found to prune.
08-Mar 10:05 bacula74mysql.prueba.net-dir JobId 115: End auto prune\

I take all the email, then filter them, based on 'Bacula: Backup OK' in the subject.

For example, you could do this with procmail or mailfilter.



Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>