Hello,
Thank You all for the answers. For now I have resolved the problem by
adding:
$WorkDirectory /var/log/queue
$MainMsgQueueType LinkedList
$MainMsgQueueFileName Main
$MainMsgQueueMaxDiskSpace 1g
$MainMsgQueueSaveOnShutdown on
Now I would also like to add
$MainQueueTimeoutEnqueue 0
but pages
http://www.rsyslog.com/doc-rsyslog_conf_global.html
http://www.rsyslog.com/doc-queues.html
give contradictory meaning for value 0. Does this setting mean indefinite or
immediate timeout?
Best,
Oleg
On Sun, Dec 20, 2009 at 1:45 PM, Rainer Gerhards
<[email protected]>wrote:
> > -----Original Message-----
> > From: [email protected] [mailto:rsyslog-
> > [email protected]] On Behalf Of [email protected]
> > Sent: Sunday, December 20, 2009 1:09 AM
> > To: rsyslog-users
> > Subject: Re: [rsyslog] Help needed: rsyslog with ommail hang on network
> > outage
> >
> > On Sun, 20 Dec 2009, Oleg M?rk wrote:
> >
> > > Hello,
> > >
> > > On Sun, Dec 20, 2009 at 1:10 AM, <[email protected]> wrote:
> > >> rsyslog does do async queuing by default, but only up until the
> > point
> > >> where the queue is full. At that point it defaults to blocking until
> > there
> > >> is more space in the queue.
> > >
> > > Thanks for the answer. But why does ommail hang when SMTP server is
> > > unavailable? If I understand correclty with ActionResumeRetryCount
> > > equal by default to 0 it should timeout and then give up sending the
> > > message?
> >
> > I don't know. I haven't messed with the retry/fail mechanisms.
> >
> > however, remember that it takes time to fail, during that time more
> > messages arrive, if some of those try to send messages they then take
> > time
> > to fail......
>
> I will soon be out for xmas break (until early January) and have some
> assignments before I go, so I can unfortunately not look into this case.
> However, I guess that the connection to the SMTP server hangs, that is the
> connection setup does neither abort nor succeed so that the connect() hangs
> -
> which is beyond the control of rsyslog core's retry mechanism. Other than
> that, I have no good clue so far. A debug log may help, but I can't promise
> to look at it before mid-january.
>
> Rainer
>
> >
> > David Lang
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com