Mail on error and skip canceled jobs

20 views
Skip to first unread message

Jon SCHEWE

unread,
Mar 10, 2021, 11:12:50 AM3/10/21
to bareos-users
Is it possible to configure bareos to mail on errors, but skip sending emails on canceled jobs?

I have the following currently:
Messages {
  Name = Standard
  Description = "Reasonable message delivery -- send most everything to email address and to the console."

  # destination = address = message-type, ...
 
  operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
  mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  operator = root@localhost = mount
  mail on error = root@localhost = all, !skipped
  #mail = root@localhost = all, !skipped, !saved, !audit
  console = all, !skipped, !saved, !audit
  append = "/var/log/bareos/bareos.log" = all, !skipped, !saved, !audit
  catalog = all, !skipped, !saved, !audit
}

Thank you

Jon Schewe

Research Scientist


C: +1 612.263.2718

O: +1 952.545.5720

jon.s...@rtx.com


Raytheon Technologies

Raytheon Intelligence & Space

5775 Wayzata Blvd. Suite 630

St. Louis Park, MN 55416


RTX.com | LinkedIn | Twitter | Instagram


Reply all
Reply to author
Forward
0 new messages