Bacula-users

[Bacula-users] The Message Resource doubts

2016-02-05 10:55:12
Subject: [Bacula-users] The Message Resource doubts
From: Wanderlei Huttel <wanderleihuttel AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 5 Feb 2016 13:52:45 -0200
Hi Guys

In manual the chapter "message resource" says:
Please note: any MailCommand directive must be specified in the Messages resource before the desired Mail, MailOnSuccess, or MailOnError directive. In fact, each of those directives may be preceded by a different MailCommand.

I understood that every parameter Mail, MailOnError, MailOnSuccess needs a MailCommand before.


If I configure like below, when I run command "bacula-dir -t" I receive a message: 
bacula-dir: smartall.c:397-0 Orphaned buffer: bacula-dir 96 bytes at 251a568 from parse_conf.c:402

But If I remove 2nd mailcommand, executing bacula-dir -t"  works fine. 
In this 2nd mail command I've created a script to send errors to the whatsapp, but if I use the same command like 1st, happens the same.

I need to be worried about it?

Messages {
   Name = Standard

   # 1st mail command
   mailcommand = "/sbin/bsmtp -h localhost -f \"Bacula <mail AT domain.com DOT br>\" -s \"Bacula: %t %e of %c %l \" %r"
   mail = mail AT domain.com DOT br = all, !skipped

   # 2nd mail command
   #mailcommand = "/sbin/bsmtp -h localhost -f \"Bacula <mail AT domain.com DOT br>\" -s \"Bacula: %t %e of %c %l \" %r"
   mailcommand = "/etc/bacula/scripts/_email.sh \"Bacula: %t %e of %c %l \" \"%r\" "
   MailOnError =  mail AT anotherdomain.com DOT br = all, !skipped

   operatorcommand = "/sbin/bsmtp -h localhost -f \"Bacula <mail AT domain.com DOT br>\" -s \"Bacula: Intervention needed for %j\" %r"
   operator = mail AT domain.com DOT br = mount

   console = all, !skipped, !saved
   append = "/etc/bacula/log/bacula.log" = all, !skipped
   catalog = all, !skipped, !saved
}


Best Regards
Wanderlei
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] The Message Resource doubts, Wanderlei Huttel <=