Helo, I would like to know what's happen with syslog-ng.conf systax in this part of confiruration: # --------8<------------- # Leitura da porta UDP do syslog padrão (514) # # Por padrão, ele não esta ligado na instalação # Para iniciá-lo, basta descomentar a linha abaixo source net { udp(ip("10.0.2.4") port(514)); }; # --------------------------- # Destino dos dados Filtrados # --------------------------- destination remotenet {udp(ip("10.0.0.10") port(514)); }; <-------(this part have errors ????) destination console { pipe("/dev/console"); }; destination messages { file("/var/log/messages"); }; destination secure { file("/var/log/secure"); }; destination maillog { file("/var/log/maillog"); }; destination spooler { file("/var/log/spooler"); }; destination boot { file("/var/log/boot.log"); }; # -------8<------------------ [root@patolino syslog-ng-1.4.4]# /usr/sbin/syslog-ng -d -v -f /etc/syslog-ng/syslog-ng.conf parse error at 33 Parse error reading configuration file, exiting. [root@patolino syslog-ng-1.4.4]# (line 33 refers to destination remotenet ...) i tryed this syntaxes: **** destination remotenet { udp(ip("10.0.0.10") port(514)); }; destination remotenet { udp(ip(10.0.0.10) port(514)); }; destination remotenet { udp(ip("10.0.0.10") port(514);); }; destination remotenet { udp(ip("10.0.0.10"); port(514)); }; destination remotenet { udp(ip("10.0.0.10"); port(514);); }; destination remotenet { udp(ip("10.0.0.10")); }; destination remotenet { tcp(ip("10.0.0.10") port(514)); }; destination remotenet { udp(ip(10.0.0.10) port(514);); }; destination rtteste { udp(ip("10.0.0.10") port(514)); }; destination remote_net { udp(ip("10.0.0.10") port(514) ); }; ** no sucess.. :( egcs-1.1.2 glibc 2.1.3~ 2.1.2 libol-0.2.17 syslog-ng-1.4.4 kernel-2.2.16 Any one can help me?? who can i increase de Debug?? What i can do to fix that (in source font)? thanks.. PS.: This program have any restriction?? Its realy 100% GPL?? We are thinking to put this program in our distribution here, in Brazil. I built a RPM package, but i trying to a log of tests in our servers (430 servers)... syslog fails to do that :(( lose data, do not restart veri well, use a lot os CPU... :(( i trying syslog-ng to eliminate (or decrese) this problems.. Thank's in advanced!! Leonardo Marques de Souza +--------------------------+ | Conectiva S/A | |Curitiba - Paraná - Brazil| | Suporte Interno | +--------------------------+
On Wed, 14 Jun 2000, Leonardo Marques de Souza wrote:
# --------------------------- # Destino dos dados Filtrados # ---------------------------
destination remotenet {udp(ip("10.0.0.10") port(514)); }; <-------(this part have errors ????)
does the port number have to be quoted? ie: destination remotenet { udp(ip("10.0.0.10") port("514")); }; i am not sure can anyone else comment? otherwise looks fine to me... Chris Scheller Network One Internet, inc. http://www.networkone.net/ System/Network Administration 1-888-GOT-NET1
A few times a day I get this in the syslog of my loghost machine. syslog-ng: io.c:172: io_iter: Assertion `i < nfds' failed. Here's the version: Jun 17 11:17:06 skitzo syslog-ng[2230]: syslog-ng version 1.4.4 starting It collects logs from 4 hosts in remote locations via tcp. When it gives this message it dies. I have to have a cron job right now that restarts syslog-ng every hour, just to make sure that it's running. -- Nate
syslog-ng: io.c:172: io_iter: Assertion `i < nfds' failed.
Here's the version: Jun 17 11:17:06 skitzo syslog-ng[2230]: syslog-ng version 1.4.4 starting
It collects logs from 4 hosts in remote locations via tcp. When it gives this message it dies. I have to have a cron job right now that restarts syslog-ng every hour, just to make sure that it's running.
hmmm... that seems to be a problem in libol, can you send me your libol version? -- Bazsi
Darn, I deleted the source directory, and I never installed it, just built syslog-ng against it. Is there some other way for me to tell? -- Nate On Sun, 18 Jun 2000, Balazs Scheidler wrote:
hmmm... that seems to be a problem in libol, can you send me your libol version?
I just rebuilt syslog-ng against libol-0.2.17 to be sure of the libol version. I went ahead and removed the cron job that restarts syslog-ng, and I'll see if this error keeps happening. -- Nate On Sun, 18 Jun 2000, Balazs Scheidler wrote:
hmmm... that seems to be a problem in libol, can you send me your libol version?
syslog-ng: io.c:172: io_iter: Assertion `i < nfds' failed.
Here's the version: Jun 17 11:17:06 skitzo syslog-ng[2230]: syslog-ng version 1.4.4 starting
It collects logs from 4 hosts in remote locations via tcp. When it gives this message it dies. I have to have a cron job right now that restarts syslog-ng every hour, just to make sure that it's running.
Hi, Try this patch against libol, recompile and check if it fixes this problem: diff -urN libol-0.2.17/src/io.c libol-0.2.18/src/io.c @@ -109,14 +108,7 @@ struct nonblocking_fd *fd; for(fd_p = &b->files; (fd = *fd_p); ) { - if (fd->super.alive) { - if (fd->prepare) { - PREPARE_FD(fd); - } else if (fd->to_be_closed) { - kill_fd(fd); - } - } - else { + if (!fd->super.alive) { if (fd->fd < 0) /* Unlink the file object, but don't close any underlying file. */ ; @@ -140,7 +132,19 @@ *fd_p = fd->next; continue; } - nfds++; + fd_p = &fd->next; + } + + for(fd_p = &b->files; (fd = *fd_p); ) { + if (fd->super.alive) { + if (fd->prepare) { + PREPARE_FD(fd); + } else if (fd->to_be_closed) { + kill_fd(fd); + continue; + } + nfds++; + } fd_p = &fd->next; }
participants (4)
-
Balazs Scheidler
-
Chris Scheller
-
Leonardo Marques de Souza
-
Nate Campi