Hello,

I have problem setting both mail and mail on error records. Emails for 
failed jobs are sent without problem. But I had one job with warning 
which should be covered by mail record in director's settings. Job was 
logged but email wasn't sent. I haven't found whether it is possible to 
set both mail and mail on error or not.


Logged job shown in bconsole:

22-Nov 21:15 dir JobId 224: Start Backup JobId 224, 
Job=Backup_Webserver.2016-11-22_21.05.00_35
22-Nov 21:15 dir JobId 224: Using Device "kostka-device" to write.
22-Nov 21:15 kostka-sd JobId 224: Volume "daily-2" previously written, moving 
to end of data.
22-Nov 21:15 kostka-sd JobId 224: Ready to append to end of Volume "daily-2" 
size=2,003
22-Nov 21:15 web-fd JobId 224:      Could not stat "/var/www/html": ERR=No such 
file or directory
22-Nov 21:15 web-fd JobId 224:      Could not stat "/var/lib/mysql": ERR=No 
such file or directory
22-Nov 21:15 kostka-sd JobId 224: Elapsed time=00:00:01, Transfer rate=0  
Bytes/second
22-Nov 21:15 kostka-sd JobId 224: Sending spooled attrs to the Director. 
Despooling 0 bytes ...
22-Nov 21:15 dir JobId 224: Bacula dir 7.4.3 (18Jun16):
  Build OS:               x86_64-pc-linux-gnu debian 8.5
  JobId:                  224
  Job:                    Backup_Webserver.2016-11-22_21.05.00_35
  Backup Level:           Incremental, since=2016-11-21 21:15:12
  Client:                 "web-fd" 7.4.3 (18Jun16) 
x86_64-pc-linux-gnu,debian,8.5
  FileSet:                "Web Files" 2016-11-16 21:05:00
  Pool:                   "pool-daily" (From Run Pool override)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "kostka-sd" (From Job resource)
  Scheduled time:         22-Nov-2016 21:05:00
  Start time:             22-Nov-2016 21:15:02
  End time:               22-Nov-2016 21:15:03
  Elapsed time:           1 sec
  Priority:               10
  FD Files Written:       0
  SD Files Written:       0
  FD Bytes Written:       0 (0 B)
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):
  Volume Session Id:      13
  Volume Session Time:    1479602918
  Last Volume Bytes:      2,455 (2.455 KB)
  Non-fatal FD errors:    2
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK -- with warnings


Settings in director's configuration:

Messages {
  Name = Standard
  mailcommand = "/usr/sbin/bsmtp -f \"\(Bacula\) \<bacula-dir@...\>\" -s 
\"Bacula: %t %e of %c %l\" %r"
  mail on error = "jiri.kratochvil2@..." = all
  mail = "jiri.kratochvil2@..." = fatal, error, warning

  console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
#          time to time as it will grow indefinitely. However, it will
#          also keep all your messages if they scroll off the console.
#
  append = "/var/lib/bacula/bacula.log" = all, !skipped
  catalog = all
}


I want to get mail with all messages for failed jobs and I want to be 
notified on mail when some fatal, error or warning event occurs. Is that 
possible in this or similar way? Thanks.

Best regards,
Jirka

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to