Re: [Bacula-users] Notifications doesn't work

2022-11-21 Thread Richard Laysell
On Mon, 21 Nov 2022 12:16:24 +
Gina Costa  wrote:

> Hi,
> 
> I’m using bacula 9 over CentOS. I need receive notifications about
> job failures but this notifications doesn’t work. The configuration
> file bacula-dir.conf has the followup Messages directive:
> 
> ***
> Messages {
> Name = Standard
> mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s
> "Bacula: %t %e of %c %l" %r" operatorcommand = "/usr/sbin/bsmtp -h
> 192.168.0.66 -f "(Bacula) <%r>" -s "Bacula: Intervention needed for
> %j" %r" mail = gina.co...@uc.pt = all, !skipped operator =
> gina.co...@uc.pt = mount console = all, !skipped, !saved
> append = "/var/log/bacula/bacula.log" = all, !skipped
> catalog = all
> }
> ***
> 
> To test whether the mail sending is working as it should, I do the
> following command, and this works fine, I receive the test message :
> 
>   echo "This is test message." | /opt/bacula/bin/bsmtp -h
> 192.168.0.66 -f bac...@uc.pt -s "Test" gina.co...@uc.pt -d 50
> 
> 
> Can anyone help me?
> 
> 
> 
> Gina Costa

Hello Gina,

Your paths are different.  Your configuration file has /usr/sbin/bsmtp
but your test command has /opt/bacula/bin/bsmtp

I think you need to change the path in your configuration file (two
places)

Regards,

Richard



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Notifications doesn't work

2022-11-21 Thread Josip Deanovic

On 2022-11-21 13:16, Gina Costa wrote:

Hi,

I’m using bacula 9 over CentOS. I need receive notifications about job
failures but this notifications doesn’t work.
The configuration file bacula-dir.conf has the followup Messages 
directive:


***
Messages {
Name = Standard
mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s
"Bacula: %t %e of %c %l" %r"
operatorcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>"
-s "Bacula: Intervention needed for %j" %r"
mail = gina.co...@uc.pt = all, !skipped
operator = gina.co...@uc.pt = mount
console = all, !skipped, !saved
append = "/var/log/bacula/bacula.log" = all, !skipped
catalog = all
}
***

To test whether the mail sending is working as it should, I do the
following command, and this works fine, I receive the test message :

echo "This is test message." | /opt/bacula/bin/bsmtp -h 192.168.0.66
-f bac...@uc.pt -s "Test" gina.co...@uc.pt -d 50


Can anyone help me?



Maybe you need to escape special characters like quotes.
For example:

mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f \"\(Bacula\) <%r>\" -s 
\"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f \"\(Bacula\) 
<%r>\" -s \"Bacula: Intervention needed for %j\" %r"



Regards!

--
Josip Deanovic


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Notifications doesn't work

2022-11-21 Thread Gina Costa
Hi,

I’m using bacula 9 over CentOS. I need receive notifications about job failures 
but this notifications doesn’t work.
The configuration file bacula-dir.conf has the followup Messages directive:

***
Messages {
Name = Standard
mailcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s "Bacula: 
%t %e of %c %l" %r"
operatorcommand = "/usr/sbin/bsmtp -h 192.168.0.66 -f "(Bacula) <%r>" -s 
"Bacula: Intervention needed for %j" %r"
mail = gina.co...@uc.pt = all, !skipped
operator = gina.co...@uc.pt = mount
console = all, !skipped, !saved
append = "/var/log/bacula/bacula.log" = all, !skipped
catalog = all
}
***

To test whether the mail sending is working as it should, I do the following 
command, and this works fine, I receive the test message :

echo "This is test message." | /opt/bacula/bin/bsmtp -h 192.168.0.66 -f 
bac...@uc.pt -s "Test" gina.co...@uc.pt -d 50


Can anyone help me?



Gina Costa

Universidade de Coimbra • Administração
SGSIIC-Serviço de Gestão de Sistemas e Infraestruturas de Informação e 
Comunicação
Divisão de Infraestruturas de TIC
Rua do Arco da Traição | 3000-056 COIMBRA • PORTUGAL 
Tel.: +351 239 242 870 
E-mail: gina.co...@uc.pt
www.uc.pt/administracao
 




Este e-mail pretende ser amigo do ambiente. Pondere antes de o imprimir! 
This e-mail is environment friendly. Please think twice before printing it!




smime.p7s
Description: S/MIME cryptographic signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users