I am trying to forward logs to another box from a Solaris 7 (SPARC) machine. The error I get is puzzling: sinetva99{SUPERUSER:25}/tmp# syslog-ng -d -f syslog-remote.conf io.c: Preparing fd 3 for reading io.c: connecting using fd 4 Error creating AF_INET socket (Operation now in progress) Error initializing configuration, exiting. Solaris' man page for connect defines EINPROGRESS quite cryptically: EINPROGRESS The socket is non-blocking and the connection can- not be completed immediately. It is possible to select(3C) for completion by selecting the socket for writing. However, this is only possible if the socket STREAMS module is the topmost module on the protocol stack with a write service procedure. This will be the normal case. So it sounds vaguely like the socket needs to be blocking, but I don't see any option in syslog-ng for accomplishing this. The relevant part of my .conf file: source src { file("/dev/log"); internal(); }; destination remote { tcp(208.214.21.133 port(514) ); }; log { source(src); destination(remote); }; I've managed to use virtually the same configuration to forward successfully under TCP using a Linux source. I also find that sending to localhost works fine under Solaris, but I get the error whenever I try a remote TCP destination from Solaris. "truss" does not return anything terribly interesting. --------------------------------------------------------- David C. Niemi (Reston, Virginia, USA) niemi@tuxers.net Know the difference between the color of the wine and the color of the glass. (Jalaluddin Rumi) ---------------------------------------------------------
On Mon, Apr 02, 2001 at 09:34:25AM -0400, David C Niemi wrote:
I am trying to forward logs to another box from a Solaris 7 (SPARC) machine. The error I get is puzzling:
sinetva99{SUPERUSER:25}/tmp# syslog-ng -d -f syslog-remote.conf io.c: Preparing fd 3 for reading io.c: connecting using fd 4 Error creating AF_INET socket (Operation now in progress) Error initializing configuration, exiting.
This is an old libol problem. Which libol version are you using. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
On Mon, 2 Apr 2001, Balazs Scheidler wrote:
On Mon, Apr 02, 2001 at 09:34:25AM -0400, David C Niemi wrote:
I am trying to forward logs to another box from a Solaris 7 (SPARC) machine. The error I get is puzzling:
sinetva99{SUPERUSER:25}/tmp# syslog-ng -d -f syslog-remote.conf io.c: Preparing fd 3 for reading io.c: connecting using fd 4 Error creating AF_INET socket (Operation now in progress) Error initializing configuration, exiting.
This is an old libol problem. Which libol version are you using.
It looks like it was 0.2.20. And I was mistaken, it looks like this was syslog-ng 1.4.9a, not 1.4.11 (and stringsing the binary makes it look like it is only v1.4.4, which casts doubt on it even being libol 0.2.20). Looks like I need to rebuild this myself! --------------------------------------------------------- David C. Niemi (Reston, Virginia, USA) niemi@tuxers.net Know the difference between the color of the wine and the color of the glass. (Jalaluddin Rumi) ---------------------------------------------------------
participants (2)
-
Balazs Scheidler
-
David C Niemi