From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/704 Path: main.gmane.org!not-for-mail From: Joan Picanyol i Puig Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: ucspilogd + ipcserver but no logs Date: Sat, 12 Feb 2005 21:29:23 +0100 Message-ID: <20050212202923.GA9795@grummit.biaix.org> References: <20050211164338.GA89934@grummit.biaix.org> <20050211204719.GA789@hera.lehmann.schwinge.homeip.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108240072 337 80.91.229.2 (12 Feb 2005 20:27:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2005 20:27:52 +0000 (UTC) Original-X-From: supervision-return-943-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Feb 12 21:27:51 2005 Original-Received: from antah.skarnet.org ([212.85.147.14] ident=qmailr) by ciao.gmane.org with smtp (Exim 4.43) id 1D03rk-0001fP-S8 for gcsg-supervision@gmane.org; Sat, 12 Feb 2005 21:27:44 +0100 Original-Received: (qmail 320 invoked by uid 76); 12 Feb 2005 20:30:03 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 314 invoked from network); 12 Feb 2005 20:30:03 -0000 Original-To: supervision@list.skarnet.org, ucspi@list.superscript.com Mail-Followup-To: ucspi@list.superscript.com Content-Disposition: inline In-Reply-To: <20050211204719.GA789@hera.lehmann.schwinge.homeip.net> User-Agent: Mutt/1.5.6i X-MailScanner-To: gcsg-supervision@gmane.org Xref: main.gmane.org gmane.comp.sysutils.supervision.general:704 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:704 [ at this point it looks like an ipcserver issue, Mail-Followup-To set accordingly ] * Thomas Schwinge [20050211 22:01]: > On Fri, Feb 11, 2005 at 05:43:16PM +0100, Joan Picanyol i Puig wrote: > > 607,p1,0$ cat log/run > > #!/command/execlineb -P > > > > setuidgid log > > > > define L /var/log/ucspilogd > > > > emptyenv > > multilog $L/main > > -* "+*: *: kern.*" $L/kern > > -* "+*: *: user.*" $L/user > > -* "+*: *: daemon.*" $L/daemon > > -* "+*: *: auth.*" +authpriv.* $L/auth > > -* "+*: *: syslog.*" $L/syslog > > -* "+*: *: news.*" $L/news > > -* "+*: *: cron.*" $L/cron > > -* "+*: *: local*.*" $L/local > > -* "+*: *: *.debug*" $L/debug > > That should be '${L}' instead of '$L'. Ooops, correct. I guess Laurent will update the example to work with the newer eexecline syntax. That takes care of the first issue (log files not appearing), however I still don't have any logs, all files are empty. I'm running FreeBSD 4.11 ktracing ipcserver and logger shows that ipcserver is waiting on accept() after succesfully creating the socket: 11782 ipcserver CALL unlink(0xbfbffc2a) 11782 ipcserver NAMI "/dev/log" 11782 ipcserver RET unlink 0 11782 ipcserver CALL bind(0x3,0xbfbffc28,0x6a) 11782 ipcserver NAMI "/dev/log" 11782 ipcserver RET bind 0 11782 ipcserver CALL umask(0x12) 11782 ipcserver RET umask 0 11782 ipcserver CALL getsockname(0x3,0xbfbffc38,0xbfbffc34) 11782 ipcserver RET getsockname 0 11782 ipcserver CALL listen(0x3,0x14) 11782 ipcserver RET listen 0 11782 ipcserver CALL fcntl(0x3,0x3,0) 11782 ipcserver RET fcntl 6 11782 ipcserver CALL fcntl(0x3,0x4,0x2) 11782 ipcserver RET fcntl 0 11782 ipcserver CALL setgroups(0x1,0xbfbffcc8) 11782 ipcserver RET setgroups 0 11782 ipcserver CALL setgid(0xfffe) 11782 ipcserver RET setgid 0 11782 ipcserver CALL setuid(0xfffe) 11782 ipcserver RET setuid 0 11782 ipcserver CALL close(0) 11782 ipcserver RET close 0 11782 ipcserver CALL close(0x1) 11782 ipcserver RET close 0 11782 ipcserver CALL sigprocmask(0x2,0xbfbffca8,0) 11782 ipcserver RET sigprocmask 0 11782 ipcserver CALL accept(0x3,0xbfbffc38,0xbfbffc34) Unfortunately, logger (in fact, syslog()) does not like ipcserver's socket: 11865 logger CALL socket(0x1,0x2,0) 11865 logger RET socket 1 11865 logger CALL fcntl(0x1,0x2,0x1) 11865 logger RET fcntl 0 11865 logger CALL connect(0x1,0xbfbfe8d4,0x6a) 11865 logger NAMI "/var/run/log" 11865 logger RET connect -1 errno 2 No such file or directory 11865 logger CALL connect(0x1,0xbfbfe8d4,0x6a) 11865 logger NAMI "/dev/log" 11865 logger RET connect -1 errno 41 Protocol wrong type for socket 11865 logger CALL close(0x1) 11865 logger RET close 0 11865 logger CALL sendto(0xffffffff,0xbfbfedd0,0x1d,0,0,0) 11865 logger RET sendto -1 errno 9 Bad file descriptor 11865 logger CALL socket(0x1,0x2,0) 11865 logger RET socket 1 11865 logger CALL fcntl(0x1,0x2,0x1) 11865 logger RET fcntl 0 11865 logger CALL connect(0x1,0xbfbfe8d4,0x6a) 11865 logger NAMI "/var/run/log" 11865 logger RET connect -1 errno 2 No such file or directory 11865 logger CALL connect(0x1,0xbfbfe8d4,0x6a) 11865 logger NAMI "/dev/log" 11865 logger RET connect -1 errno 41 Protocol wrong type for socket 11865 logger CALL close(0x1) 11865 logger RET close 0 11865 logger CALL sendto(0xffffffff,0xbfbfedd0,0x1d,0,0,0) 11865 logger RET sendto -1 errno 9 Bad file descriptor 11865 logger CALL exit(0) For reference, a successfull invocation of logger (logging to the socket created by syslogd) looks like: 11379 logger CALL socket(0x1,0x2,0) 11379 logger RET socket 1 11379 logger CALL fcntl(0x1,0x2,0x1) 11379 logger RET fcntl 0 11379 logger CALL connect(0x1,0xbfbfe8e4,0x6a) 11379 logger NAMI "/var/run/log" 11379 logger RET connect 0 11379 logger CALL sendto(0x1,0xbfbfede0,0x1d,0,0,0) 11379 logger GIO fd 1 wrote 29 bytes "<13>Feb 12 20:47:24 joan: foo" 11379 logger RET sendto 29/0x1d 11379 logger CALL exit(0) The only difference I can see between the two calls to connect is one bit, but I don't know what it means. What's going on here? tks -- pica