bacularis/bacularis-app

Feature proposal - email alerting capability

Closed this issue ยท 10 comments

Hello,

So far, the Bacularis provide option to choose between "Standard" and "Daemon" message channels, but no explicit way to configure email alerting and notifications.

I am one of those who use emails extensively for this purpose, so I would really like to see this functionality inside the interface.

Bacula natively provide bsmtp program, which can be used for sending emails, although, external SMTP or some different local program like exim or postfix might be also considered, since the bsmtp is quite limited.

Here is the official page about the messages resource:
https://www.bacula.org/15.0.x-manuals/en/main/Messages_Resource.html

I think this might fit nicely on settings page under General section, or as a separate tab, like "Alerts" or "Notifications".

Also, it would be nice to have the ability to edit mailcommand, and to have some default setting as a starting point.

@ganiuszka I'm curious to hear your thoughts.

Just to add, I'm aware of "Messages" tab inside director configuration, but I am thinking about some more user-friendly way to configure email alerts, like ability to edit pre-defined fields which could together build up email command, so the users can configure email alerting in a more simple way.

@ganiuszka it seems that I didn't understand the messages interface, because it essentially has what I wrote here.... It is still looking complicated to me, can you add some section inside the docs about this?

I will close this issue now, sorry to bother you...

Hello @sitemapxml,

Thank you for your idea. I am seeing in your message two ideas:

  1. simplify the Messages resource configuration
  2. add capability to configure e-mail settings in Bacularis

For 1) yes, we are a bit dependent on what Bacula offers in Messages resource. Thanks for your feedback that this part of the interface is not easy understandable for first look. I think we can add this section in the documentation.

For 2) I think this is really great idea. Having the "Notification" section we could use it to notify about important events in Bacularis (security events, errors...etc.). It could be used also in the Audit log and in plenty other places as well.

Thanks again. I added it to Bacularis task list (without any ETA).

Best regards,
Marcin Haba (gani)

Hello,

Thank you for your reply. What you wrote is, in fact, what I was thinking ๐Ÿ˜ƒ

I wish you a good day

Hello @sitemapxml

I am glad to let you now that today we released Bacularis 4.1.0 that provides the plugin support. One of the new plugins is the e-mail notification plugin that implements your idea about Bacularis e-mail notification. Here you can see the doc and video materials about it:

E-mail notification plugin:
https://www.youtube.com/watch?v=6Y-nQ8ysa10

Documentation for plugins:
https://bacularis.app/doc/plugins/basic.html

Thanks! ๐Ÿ˜„

Best regards,
Marcin Haba (gani)

Hi,

Thanks for all your hard work, and for letting us know. This looks awesome ๐Ÿ˜„

When will version 4.1.0 be available in repository?

I can see that Packages file only contains version 4.0.0:

Package: bacularis
Version: 4.0.0~bookworm

Hi @sitemapxml

Thanks for your opinion ๐Ÿ˜„ In near feature we plan to extend the plugin interface for new capabilities. In the next release should appear something new in this matter too.

For the question about binary packages, yes, it is true. Since version 4.0.0 we changed a way of distributing packages. This 4.1.0 is not a major release, so binary packages 4.1.0 are not available in those repositories. In packages.bacularis.app we publish packages for major releases.

Best regards,
Marcin Haba (gani)

I understand. Initially, I have installed the Bacularis from the repository, since it looked like that way is easier to maintain.
Is there some way that I might try the new minor release features without messing up future updates from the repository?

I am thinking about keeping the configuration in place, and just clone the source repository to a separate folder, and change the web server's web root directory, so it opens a new app. What do you think about it?

Hi @sitemapxml

If you are looking for a way with updating Bacularis by one command, then the installation using Composer might be a good way:

https://bacularis.app/doc/brief/installation.html#install-using-composer

For cloning repositories, it isn't easy way of having updateable environment because we have four repositories and one external tar file. You can see how it looks in this manual installation:

https://bacularis.app/doc/brief/installation.html#install-manually

This chapter might be good to read as well:

https://bacularis.app/doc/brief/before-you-start.html#what-installation-method-should-i-use

Best regards,
Marcin Haba (gani)