On 16.01.2017 at 09:44 wrote Martin Schmid:
> Hello everybody
> 
> I have a little issue with the operator messages. They are always
> sent out, even though the requested device is already mounted.
> 
> Does somebody know the exact events that trigger operator messages?

Your Message resource defines this.
Default is:

Messages {
  Name = Standard
  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 = 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
}

Each job can use its own message resource.
If you remove "mount" from "operator", if should not send you emails.

regards,
Jörg




> Could it be that a poll on a 'file' device always triggers that
> messages? I remember having used 4mm tape changers without receiving
> unnecessary messages.
> 
> I have tried several things and this is just how it currently is:
> 
> Device { Name = Swappable Media Type = Swappable Archive Device =
> /mnt/swappable Device Type = File Requires Mount = yes Mount Point =
> /mnt/swappable Mount Command = "/etc/bareos/scripts/mount_hd
> /dev/swappable_hd %m" #  Unmount Command = "/bin/umount %m" Unmount
> Command = "/bin/sync" #LabelMedia = yes;                   # lets
> Bareos label unlabeled media Random Access = Yes; AutomaticMount =
> yes;               # when device opened, read it RemovableMedia =
> yes; AlwaysOpen = yes; Volume Poll Interval = 60; Maximum Network
> Buffer Size = 131072; Close on Poll= Yes; Offline On Unmount = Yes;
> # keep this too }
> 


-- 
 Jörg Steffens                   joerg.steff...@bareos.com
 Bareos GmbH & Co. KG            Phone: +49 221 630693-91
 http://www.bareos.com           Fax:   +49 221 630693-10

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

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To post to this group, send email to bareos-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to