some mount messages not sent by e-mail

58 views
Skip to first unread message

DUCARROZ Birgit

unread,
Sep 14, 2020, 5:32:42 AM9/14/20
to bareos-users
Hi,

I would like to receive an e-mail when a cartridge is full and I need to
insert a new one, but I wonder why I do not get the following messages
by mail:

"bareos-sd JobId 12: Please mount append Volume "users-0005" or label a
new one for:
Job: users.2020-09-11_13.11.37_17
Storage: "LTO7-Tape-Drive" (/dev/tape/by-id/scsi-350050763121460f3-nst)"


When restoring, I got the following e-mail, so this seems to work...
"10-Sep 15:33 bareos-sd JobId 9: Please mount read Volume "WORM-0003" for:
Job: RestoreFiles.2020-09-10_15.33.47_55"


I re-checked the doc here, but I cannot figure out what is going wrong.
https://docs.bareos.org/bareos-18.2/Configuration/Messages.html


This is my Standard Mail Config:

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

operatorcommand = "/usr/bin/bsmtp -h root@localhost -f\"\(Bareos
lx85\) \<%r\>\" -s \"Bareos lx85: Intervention needed for %j\" %r"

mailcommand = "/usr/bin/bsmtp -h root@localhost -f \"\(Bareos lx85\)
\<%r\>\" -s \"Bareos lx85: %t %e of %c %l\" %r"

operator = root@localhost = mount #


mail = root@localhost = warning, error, fatal, mount, notsaved,
restored, security, alert, volmgmt
console = all, !skipped, !saved, !audit
append = "/var/log/bareos/bareos.log" = all, !skipped, !saved, !audit
catalog = all, !skipped, !saved, !audit
}

Can someone give me a hint please?

Thank you in advance,
Birgit

birgit.ducarroz

unread,
Sep 23, 2020, 6:19:37 AM9/23/20
to bareos-users
Hi, no one can help me?

Spadajspadaj

unread,
Sep 23, 2020, 1:54:35 PM9/23/20
to bareos...@googlegroups.com

You have the messages configuration but do you have it attached to the appropriate job resource?

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/adbbd431-d144-48c0-85e5-f2683891b790n%40googlegroups.com.

DUCARROZ Birgit

unread,
Sep 24, 2020, 3:06:56 AM9/24/20
to Spadajspadaj, bareos-users
Hi, this is how my job ressource is configured. Am I missing something?

JobDefs {
Name = "users"
Type = Backup
Level = Full
Client = lx85
FileSet = "users" (#13)
Schedule = "03-09"
Storage = Tape
Messages = Standard
Pool = users
Priority = 1
Write Bootstrap = "/euronas/data/bareos-tape-srv-db-and-bsr/%c.bsr"
Full Backup Pool = users
Allow Duplicate Jobs = no
Cancel Lower Level Duplicates = yes
Cancel Queued Duplicates = yes
RunAfterJob = "/bin/mt -f /dev/tape/by-id/scsi-350050763121460f3-nst
eject"
>> <mailto:bareos-users...@googlegroups.com>.
>> <https://groups.google.com/d/msgid/bareos-users/adbbd431-d144-48c0-85e5-f2683891b790n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> 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...@googlegroups.com
> <mailto:bareos-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/8695befb-a390-fbed-ba11-ef545f1f88c7%40gmail.com
> <https://groups.google.com/d/msgid/bareos-users/8695befb-a390-fbed-ba11-ef545f1f88c7%40gmail.com?utm_medium=email&utm_source=footer>.

Spadajspadaj

unread,
Sep 24, 2020, 3:20:49 AM9/24/20
to bareos-users
Hmm...

At first glance it looks as if it should work.

I'd try setting "wider" mail configuration (like similar to the logfile 
one - "all, !skipped, !saved, !audit") and see if I get all the emails.

I assume you're perfectly positive there's no problem with emails
themselves (like some overzealous spam filter or something like that),
right?

DUCARROZ Birgit

unread,
Sep 25, 2020, 1:21:43 PM9/25/20
to Spadajspadaj, bareos-users
Hi Spadajspadaj,

Thank you for your answer! The fact that you responded "At first glance
it looks as if it should work" helped me to re-re-check my Standard.conf
file (It was not the spam filter and I already tryed a "wider" config).

I found it, it was a bit tricky...

I checked sign by sign and I found that there was a space missing

in the operator command:

FAULTY:
-------
operatorcommand = "/usr/bin/bsmtp -h root@localhost -f\"\(Bareos lx85\)
\<%r\>\" -s \"Bareos lx85: Intervention needed for %j\" %r"

CORRECTION:
-----------
There was the space missing between -f and \"\

So thank you a lot !
Have a nice week-end!
Birgit
Reply all
Reply to author
Forward
0 new messages