Mail notifications delayed

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Mail notifications delayed

Jason Voorhees
Hello guys:

I'm running Bacula  7.4.0 with a Messages resource like this:

Messages {
  Name = Standard
  mail = [hidden email] = all, !info, !skipped, !restored, !saved
  console = all, !skipped, !saved
  append = "/var/log/bacula/bacula.log" = all, !skipped
  catalog = all
}

I've just got today a message with repeated lines like these:

10-Jun 07:06 storage-sd JobId 188: Job
storage_job-dataconf.2016-06-05_00.00.00_30 is waiting. Cannot find
any appendable volumes.
Please use the "label" command to create a new Volume for:
    Storage:      "DevFile1" (/var/bacula/file1)
    Pool:         Full
    Media type:   DiskFile1


This was caused because I didn't plan correctly the retention time and
max number of volumes on my "Full" pool. That's pretty fine.

But what concerns  me is that a Full backup was run on 1st Sunday this
month (June 5), but the message mentions "10-Jun" in the date colum.

So what I see is that this email should have arrived inmediately on
June 5 when the Full backup was out of volumes but the message arrived
just today. In my Bacula logs I can see that the same error appears
from June 5, so I have no idea why Bacula didn't send the message on
the right time (10 days ago!!!).

I've checked my postfix logs and there's no trace of emails sent to
[hidden email] on June 5 or June 10. There are just logs of emails
sent to [hidden email] today at 2:00 pm.

Does anybody have any idea why Bacula has delayed the notification for so long?

I'd appreciate some help. Thanks in advance guys.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Mail notifications delayed

Kern Sibbald
Hello,

There are two things you can do:

1. Look at the default bacula-dir.conf Messages resource, which avoids
the problem you are having.  You are missing (or probably have deleted)
one important directive.

2. Read the document section on the Messages resource, and in particular
the
"operatorcommand".

Best regards,
Kern

On 06/16/2016 12:52 AM, Jason Voorhees wrote:

> Hello guys:
>
> I'm running Bacula  7.4.0 with a Messages resource like this:
>
> Messages {
>    Name = Standard
>    mail = [hidden email] = all, !info, !skipped, !restored, !saved
>    console = all, !skipped, !saved
>    append = "/var/log/bacula/bacula.log" = all, !skipped
>    catalog = all
> }
>
> I've just got today a message with repeated lines like these:
>
> 10-Jun 07:06 storage-sd JobId 188: Job
> storage_job-dataconf.2016-06-05_00.00.00_30 is waiting. Cannot find
> any appendable volumes.
> Please use the "label" command to create a new Volume for:
>      Storage:      "DevFile1" (/var/bacula/file1)
>      Pool:         Full
>      Media type:   DiskFile1
>
>
> This was caused because I didn't plan correctly the retention time and
> max number of volumes on my "Full" pool. That's pretty fine.
>
> But what concerns  me is that a Full backup was run on 1st Sunday this
> month (June 5), but the message mentions "10-Jun" in the date colum.
>
> So what I see is that this email should have arrived inmediately on
> June 5 when the Full backup was out of volumes but the message arrived
> just today. In my Bacula logs I can see that the same error appears
> from June 5, so I have no idea why Bacula didn't send the message on
> the right time (10 days ago!!!).
>
> I've checked my postfix logs and there's no trace of emails sent to
> [hidden email] on June 5 or June 10. There are just logs of emails
> sent to [hidden email] today at 2:00 pm.
>
> Does anybody have any idea why Bacula has delayed the notification for so long?
>
> I'd appreciate some help. Thanks in advance guys.
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity planning
> reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
> _______________________________________________
> Bacula-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Mail notifications delayed

Jason Voorhees
What seems

On Thu, Jun 16, 2016 at 3:35 AM, Kern Sibbald <[hidden email]> wrote:

> Hello,
>
> There are two things you can do:
>
> 1. Look at the default bacula-dir.conf Messages resource, which avoids the
> problem you are having.  You are missing (or probably have deleted) one
> important directive.
>
> 2. Read the document section on the Messages resource, and in particular the
> "operatorcommand".
>
> Best regards,
> Kern
>

Thanks Kern. What seems strange to me is that the same Messages
resource configuration is working well in a couple of different Bacula
servers (different customers) and I get such kind of messages
inmediately (never delayed).

I've modified the default Messages resource to disable the bsmtp
command in favor of my native mail command which it's currently
routing mail through my postfix service without any issues. Also, the
"all" rule already includes the "mount" operation so messages should
have arrived without delays. I can't understand what went wrong just
that day.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Mail notifications delayed

Kern Sibbald
The issue is whether the directive is an "operatiorcommand" or a
"mailcommand".  The transport mechanism does not matter (i.e. bsmtp or
mutt, or whatever).  A mailcommand is sent at the end of a job and will
include all messages generated during the job.  The operatorcommand is
sent when the even occurs, so the messages appear immediately and are
not batched to the end of the job.

Of course, messages can also be delivered to the console, which is a
whole different story.

Best regards,
Kern

On 06/17/2016 04:59 PM, Jason Voorhees wrote:

> What seems
>
> On Thu, Jun 16, 2016 at 3:35 AM, Kern Sibbald <[hidden email]> wrote:
>> Hello,
>>
>> There are two things you can do:
>>
>> 1. Look at the default bacula-dir.conf Messages resource, which avoids the
>> problem you are having.  You are missing (or probably have deleted) one
>> important directive.
>>
>> 2. Read the document section on the Messages resource, and in particular the
>> "operatorcommand".
>>
>> Best regards,
>> Kern
>>
> Thanks Kern. What seems strange to me is that the same Messages
> resource configuration is working well in a couple of different Bacula
> servers (different customers) and I get such kind of messages
> inmediately (never delayed).
>
> I've modified the default Messages resource to disable the bsmtp
> command in favor of my native mail command which it's currently
> routing mail through my postfix service without any issues. Also, the
> "all" rule already includes the "mount" operation so messages should
> have arrived without delays. I can't understand what went wrong just
> that day.
>


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Mail notifications delayed

Kern Sibbald
In reply to this post by Jason Voorhees
Correct typo of last email:

The issue is whether the directive is an "operatiorcommand" or a
"mailcommand".  The transport mechanism does not matter (i.e. bsmtp or
mutt, or whatever).  A mailcommand is sent at the end of a job and will
include all messages generated during the job.  The operatorcommand is
sent when the *event* occurs, so the messages appear immediately and are
not batched to the end of the job.

Of course, messages can also be delivered to the console, which is a
whole different story.

Best regards,
Kern

On 06/17/2016 04:59 PM, Jason Voorhees wrote:

> What seems
>
> On Thu, Jun 16, 2016 at 3:35 AM, Kern Sibbald <[hidden email]> wrote:
>> Hello,
>>
>> There are two things you can do:
>>
>> 1. Look at the default bacula-dir.conf Messages resource, which avoids the
>> problem you are having.  You are missing (or probably have deleted) one
>> important directive.
>>
>> 2. Read the document section on the Messages resource, and in particular the
>> "operatorcommand".
>>
>> Best regards,
>> Kern
>>
> Thanks Kern. What seems strange to me is that the same Messages
> resource configuration is working well in a couple of different Bacula
> servers (different customers) and I get such kind of messages
> inmediately (never delayed).
>
> I've modified the default Messages resource to disable the bsmtp
> command in favor of my native mail command which it's currently
> routing mail through my postfix service without any issues. Also, the
> "all" rule already includes the "mount" operation so messages should
> have arrived without delays. I can't understand what went wrong just
> that day.
>


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols
are consuming the most bandwidth. Provides multi-vendor support for
NetFlow, J-Flow, sFlow and other flows. Make informed decisions using
capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users
Reply | Threaded
Open this post in threaded view
|

Re: Mail notifications delayed

Jason Voorhees
Hi:

> The issue is whether the directive is an "operatiorcommand" or a
> "mailcommand".  The transport mechanism does not matter (i.e. bsmtp or mutt,
> or whatever).  A mailcommand is sent at the end of a job and will include
> all messages generated during the job.  The operatorcommand is sent when the
> *event* occurs, so the messages appear immediately and are not batched to
> the end of the job.

oh that makes a big difference. I thought "operatorcommand" was used
exclusively only to notify operators on "mount" events but I wasn't
aware when those messages were sent.

Thanks a lot Kern! :)

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users