[syslog-ng] write() failed (errno 32)
Przemek Bak
przemolicc@poczta.fm
Fri, 7 Apr 2000 10:13:33 +0200
On Wed, Apr 05, 2000 at 05:04:44PM +0200, Balazs Scheidler wrote:
> > I have following lines in syslog-ng.conf
> >
> > filter aaa { match ("aaa"); };
> > destination aaa { program ("/usr/bin/mail -s WARN user"); };
> > log { source(src); filter (aaa); destination(aaa); };
> >
> > When I run logger:
> > # logger aaaIIII
> > in messages file I have:
> > Apr 5 13:06:26 src@host syslog-ng[1627]: io.c: do_write: write() failed (errno 32), Broken pipe
> >
> > What does it mean ?
> > It happen from time to time, not always.
>
> probably the mail program exits for some reason... you may try to write a
> wrapper script sending logs in a batch, e.g.:
>
> repeat while something is available:
> read 100 lines, mail it
> loop
>
> maybe mail can't read messages exceeding some limit in size.
I use standard mail program in Debian slink:
# which mail
/usr/bin/mail
# dpkg -S `which mail`
mailx: /usr/bin/mail
przemol