Changes in notification rules?

16 views
Skip to first unread message

Silvio Schloeffel

unread,
Feb 8, 2025, 4:17:42 AMFeb 8
to bareos-users
Hi,

since a couple of days we receive, unwanted, messages from our Bareos
system.

We use:
bareos-dir.d/messages/Standard.conf: Mail On Error =
user...@xxxxxx.com = all, !skipped, !terminate

As rule to get informed if something failed.

Since the ~pre53.6ffc81313-24.el8 version we receive messages for
completed jobs (OK Status) and after I updated today to
pre53.6ffc81313-27.el8 I did receive a additional mail for BackupCatalog
Job with full infos:
"
# 08-Feb-2025 09:06:06 - BackupCatalog.2025-02-08_09.03.39_12 - Full
Volume="Full-0346"
MediaType="File"
VolSessionId=1
VolSessionTime=1739005377
VolAddr=37776650818-38775943745
FileIndex=1-1
Volume="Full-0346"
MediaType="File"
"

Question:
- Was this planed and I missed a info about a change?
- If yes, what can I do to restore the old information rule?


Have a nice weekend

Best

Silvio


OpenPGP_signature.asc

Silvio Schloeffel

unread,
Feb 8, 2025, 4:42:28 AMFeb 8
to bareos...@googlegroups.com
I have an idea but it would be nice if someone send me in the right
direction:

If i look into the unwanted mails i can see root as mail receiver.
The correct failure mails are addressed to the correct user.

So I checked the changes on the system.
A colleague created a alias for the root user to forward infos from some
internal processes.

I thinks this alias is the reason for the mails.

My questions (if I'm right):

- why sends bareos mails to the root account if I have a rule which says
"mails only if error"?
- how can I avoid this?
- if I do not forward the root mails (no alias) you have to manually
look into the system every day and you can not distribute the mails easy
to selected users.


Best

Silvio




Am 08.02.25 um 10:17 schrieb 'Silvio Schloeffel' via bareos-users:
--
Silvio Schloeffel | CIO
silvio.s...@musicdna.com
Tel. +49 3677 2094 840

the evolution of music continues

MusicDNA GmbH
Schwanitzstrasse 6,
98693 Ilmenau, Germany
Phone: +49 3677 2094 840 | Fax: +49 322 298 222 00

Steuer-NR.: DE 156/114/04317

Handelsregisterzeichen: HRB Jena 517208,
Geschäftsführer: Sebastian Schmidt
www.musicdna.com

OpenPGP_signature.asc

Stefan Harbich

unread,
Feb 8, 2025, 5:04:23 PMFeb 8
to bareos-users
Hello,
i noticed that when I execute the following commands in bconsole, it closes immediately afterwards.
...
@dsme01:~# bconsole
Connecting to Director bareos.intern.harnet.de:9101
 Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
1000 OK: bareos-dir Version: 24.0.1~pre53.6ffc81313 (03 February 2025)
Bareos community build (UNSUPPORTED).
Get professional support from https://www.bareos.com
You are connected using the default console

Enter a period (.) to cancel a command.
*.api 2
{
  "id": null,
  "jsonrpc": "2.0",
  "result": {
    "api": 2
  }
}
@dsme01:~# systemctl status bareos-dir.service
● bareos-director.service - Bareos Director Daemon service
     Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sat 2025-02-08 22:59:43 CET; 11s ago
       Docs: man:bareos-dir(8)
    Process: 3237146 ExecStart=/usr/sbin/bareos-dir -f (code=exited, status=127)
   Main PID: 3237146 (code=exited, status=127)
@dsme01:~# systemctl status bareos-dir.service
● bareos-director.service - Bareos Director Daemon service
     Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2025-02-08 23:00:13 CET; 187ms ago
       Docs: man:bareos-dir(8)
   Main PID: 3239151 (bareos-dir)
      Tasks: 3 (limit: 38446)
     Memory: 4.3M
     CGroup: /system.slice/bareos-director.service
             └─3239151 /usr/sbin/bareos-dir -f

Feb 08 23:00:13 dsme01 systemd[1]: Started Bareos Director Daemon service.
@dsme01:~# bconsole
Connecting to Director bareos.intern.harnet.de:9101
 Encryption: TLS_CHACHA20_POLY1305_SHA256 TLSv1.3
1000 OK: bareos-dir Version: 24.0.1~pre53.6ffc81313 (03 February 2025)
Bareos community build (UNSUPPORTED).
Get professional support from https://www.bareos.com
You are connected using the default console

Enter a period (.) to cancel a command.
*.api json
{
  "jsonrpc": "2.0",
  "id": null,
  "result": {
    "api": 2
  }
}
@dsme01:~# systemctl status bareos-dir.service
● bareos-director.service - Bareos Director Daemon service
     Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sat 2025-02-08 23:00:43 CET; 20s ago
       Docs: man:bareos-dir(8)
    Process: 3239151 ExecStart=/usr/sbin/bareos-dir -f (code=exited, status=127)
   Main PID: 3239151 (code=exited, status=127)
@dsme01:~# systemctl status bareos-dir.service
● bareos-director.service - Bareos Director Daemon service
     Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2025-02-08 23:01:13 CET; 2s ago
       Docs: man:bareos-dir(8)
   Main PID: 3239759 (bareos-dir)
      Tasks: 3 (limit: 38446)
     Memory: 4.3M
     CGroup: /system.slice/bareos-director.service
             └─3239759 /usr/sbin/bareos-dir -f

Feb 08 23:01:13 dsme01 systemd[1]: Stopped Bareos Director Daemon service.
Feb 08 23:01:13 dsme01 systemd[1]: Started Bareos Director Daemon service.
...
The director closes immediately afterwards and starts again after about 1 minute.
WHAT IS THAT? Something is wrong here???

Kind Regards
Stefan Harbich

Stefan Harbich

unread,
Feb 9, 2025, 12:43:21 PMFeb 9
to bareos...@googlegroups.com
--
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 visit https://groups.google.com/d/msgid/bareos-users/767c4f58-f357-4dc0-a926-82ec2ba043ccn%40googlegroups.com.

Bruno Friedmann (bruno-at-bareos)

unread,
Feb 10, 2025, 3:19:08 AMFeb 10
to bareos-users
This is the bsr command line in BackupCatalog  job.
You can edit it and make it your own rule.

Silvio Schloeffel

unread,
Feb 10, 2025, 3:33:16 AMFeb 10
to bareos...@googlegroups.com
Hello Bruno,

thanks for the response.
I found the part in the config but I was a little bit suprised about
root as standard receiver.
I mean bareos has it's own user and I would have expected that this user
will be the standard receiver and I (personally) don't think it's a
good idea to mix info mails from daemons into the root (system) messages.

Only a question of understanding:
Why is a standard receiver configured if you can read all the mail via
bconsole? If you want to receive the infos by mail you should follow the
documentation. You have the messages now a local mailfile in
/var/spool/mail /username and a second via console.


Best

Silvio




Am 10.02.25 um 09:19 schrieb Bruno Friedmann (bruno-at-bareos):
> Tel. +49 3677 2094 840 <tel:+49%203677%202094840>
>
> the evolution of music continues
>
> MusicDNA GmbH
> Schwanitzstrasse 6,
> 98693 Ilmenau, Germany
> Phone: +49 3677 2094 840 <tel:+49%203677%202094840> | Fax: +49 322
> 298 222 00
>
> Steuer-NR.: DE 156/114/04317

> Handelsregisterzeichen: HRB Jena 517208,
> Geschäftsführer: Sebastian Schmidt
> www.musicdna.com <http://www.musicdna.com>
>
> --
> 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+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/bareos-
> users/6e924545-7570-4082-82e5-0da3fdb60726n%40googlegroups.com <https://
> groups.google.com/d/msgid/bareos-
> users/6e924545-7570-4082-82e5-0da3fdb60726n%40googlegroups.com?
> utm_medium=email&utm_source=footer>.


OpenPGP_signature.asc

Bruno Friedmann (bruno-at-bareos)

unread,
Feb 10, 2025, 3:46:20 AMFeb 10
to bareos-users
You might forget that this specific email is about transfering the important data which are contained into the .bsr attachment outside of the system :-)

Keeping it is local /var/spool/mail is not the best way to set a disaster recovery setup for your Bareos installation...
You can comment that line if you don't need bsr (can be in specific installation).
You can write bsr to somewhere in the filesystem you know it is not local
You can use whatever script you want to send that bsr information somewhere you store your external catalog copy.

Regards.

so the bsr is completely disconnected of the user and messaging
setting root as user is an old practice because all system should have a valid and working root messaging destination.

Silvio Schloeffel

unread,
Feb 10, 2025, 4:25:06 AMFeb 10
to bareos...@googlegroups.com
Hello Bruno,

the bsr transfer was something i was missing.
I had only the message transfer on my list and we create a alias for the
bareos user to an external email. This was the starting point of the
search because we expected to receive the mails via the bareos user.

Added the mail address to the catalog job, thanks for the info.

Best

Silvio




Am 10.02.25 um 09:46 schrieb Bruno Friedmann (bruno-at-bareos):
> > Tel. +49 3677 2094 840 <tel:+49%203677%202094840> <tel:
> +49%203677%202094840>
> >
> > the evolution of music continues
> >
> > MusicDNA GmbH
> > Schwanitzstrasse 6,
> > 98693 Ilmenau, Germany
> > Phone: +49 3677 2094 840 <tel:+49%203677%202094840> <tel:
> +49%203677%202094840> | Fax: +49 322
> > 298 222 00
> >
> > Steuer-NR.: DE 156/114/04317

> > Handelsregisterzeichen: HRB Jena 517208,
> > Geschäftsführer: Sebastian Schmidt
> > www.musicdna.com <http://www.musicdna.com> <http://
> www.musicdna.com <http://www.musicdna.com>>
> >
> > --
> > 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+un...@googlegroups.com>.
> > To view this discussion visit https://groups.google.com/d/msgid/
> bareos- <https://groups.google.com/d/msgid/bareos->
> > users/6e924545-7570-4082-82e5-0da3fdb60726n%40googlegroups.com
> <http://40googlegroups.com> <https://
> > groups.google.com/d/msgid/bareos- <http://groups.google.com/d/
> msgid/bareos->
> > users/6e924545-7570-4082-82e5-0da3fdb60726n%40googlegroups.com
> <http://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+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/bareos-
> users/ee48a88d-9534-43b2-aa7a-7626d578a787n%40googlegroups.com <https://
> groups.google.com/d/msgid/bareos-users/ee48a88d-9534-43b2-
> aa7a-7626d578a787n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Silvio Schloeffel | CIO
silvio.s...@musicdna.com
Tel. +49 3677 2094 840

the evolution of music continues

MusicDNA GmbH
Schwanitzstrasse 6,
98693 Ilmenau, Germany
Phone: +49 3677 2094 840 | Fax: +49 322 298 222 00
OpenPGP_signature.asc
Reply all
Reply to author
Forward
0 new messages