On 06/29/15 02:32 PM, Christian Steinherr (DV-Betreuer Informatik) wrote:
> Hi there at bareos-users-list,
>
> i ran into a kind of wired problem, that's not a big issue but in my
> setup it's kind of annoying.
> Im running bareos 14.2.4 and i setup a message-section like this, to
> send a status-email to two different recipients. The idea was, as an
> bareos-admin i wanted to be informed about anything that goes wrong with
> these jobs, for example running out of media or unavailable clients and
> on the other hand the enduser is happy to see the everydays message:
> backup ok.
>
> Messages {
>   Name = M_customname
>   mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\"
> -s \"Bareos: %t %e of %c %l\" %r"
>   operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\)
> \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
>   mail = <<enduser>>@informatik.uni-augsburg.de = all, !skipped
>   operator = <<bareosadmin>>@informatik.uni-augsburg.de = all, !skipped
>   console = all, !skipped, !saved
>   append = "/var/log/bareos/bareos.log" = all, !skipped
>   catalog = all
> }
>
> My problem now is, e-mails that are send via the operator-command are
> line-braked by every newline, every line that has it's own
> time+date+host+jobid-prefix.
> Those e-mails who are send out via mailcommand come as one e-mail with
> all the logging data that belongs to the whole job, no just one line per
> e-mail, as it is send out to the operator.
>
> As you might noticed, both lines mailcommand and operatorcommand look
> exactly the same, so i don't know how or where to modify my bareos-dir.conf
>
> It's not a major or critical bug, but i would be a little less annoied
> every day, just getting one email instead of five.
>
> Maybe someone did experience the same bugs, and maybe some knows how to
> circumvent, or maybe is little more into all the coding-stuff and patch
> this out.
Its not a bug its a misuse of the operator command. The idea behind the
operator message destination is so send direct operator intervention
message to an operator so he can intervene.

What you see is how things are designed in Bacula and the code kind of
is clear on this:

- Messages to the operator go one at a time

Why don't you just send the mail using the mailcommand to an alias which
sends it to both the end-user and the admin user.

-- 
Marco van Wieringen                   [email protected]
Bareos GmbH & Co. KG                  Phone: +49-221-63069389
http://www.bareos.com                     

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens,
                 P. Storz, M. v. Wieringen

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to