From owner-freebsd-questions@FreeBSD.ORG Wed Oct 17 01:31:09 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48E5B16A417 for ; Wed, 17 Oct 2007 01:31:09 +0000 (UTC) (envelope-from matt@gsicomp.on.ca) Received: from daisy2.compar.com (daisy2.compar.com [216.208.38.133]) by mx1.freebsd.org (Postfix) with ESMTP id 0B01013C459 for ; Wed, 17 Oct 2007 01:31:08 +0000 (UTC) (envelope-from matt@gsicomp.on.ca) Received: from localhost (localhost.compar.com [127.0.0.1]) by daisy2.compar.com (Postfix) with ESMTP id 1482913C40E; Tue, 16 Oct 2007 21:02:04 -0400 (EDT) X-Virus-Scanned: amavisd-new at compar.com Received: from unknown by localhost (amavisd-new, unix socket) id 1dHPxvTO6+An; Tue, 16 Oct 2007 21:01:54 -0400 (EDT) Received: from penelope.gsicomp.on.ca (CPE00062566c7bb-CM0011e6ede298.cpe.net.cable.rogers.com [99.236.43.116]) by daisy2.compar.com (Postfix) with ESMTP id 1E91413C46B; Tue, 16 Oct 2007 21:01:54 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by penelope.gsicomp.on.ca (Postfix) with ESMTP id 358B811450; Tue, 16 Oct 2007 21:25:18 -0400 (EDT) X-Virus-Scanned: amavisd-new at gsicomp.on.ca Received: from unknown by localhost (amavisd-new, unix socket) id sL2RlIpzDkmm; Tue, 16 Oct 2007 21:25:12 -0400 (EDT) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by penelope.gsicomp.on.ca (Postfix) with SMTP id 66E3911436; Tue, 16 Oct 2007 21:25:12 -0400 (EDT) Message-ID: <00e501c81059$4baa60d0$1200a8c0@hermes> From: "Matt Emmerton" To: "Tuc at T-B-O-H.NET" , References: <200710170005.l9H05BYR092267@himinbjorg.tucs-beachin-obx-house.com> Date: Tue, 16 Oct 2007 21:01:47 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Cc: Subject: Re: syslog marking sendmail output as "kernel:" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2007 01:31:09 -0000 ----- Original Message ----- From: "Tuc at T-B-O-H.NET" To: Sent: Tuesday, October 16, 2007 8:05 PM Subject: syslog marking sendmail output as "kernel:" > Hi, > > I'm seeing in the logs : > > Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): > collect: I > /O error on connection from bd0614db.virtua.com.br, > from= om> > Oct 16 00:00:25 valhalla kernel: Oct 16 00:00:25 valhalla sm-mta[69206]: > l9G40Kf > 5069206: SYSERR(root): collect: I/O error on connection from > bd0614db.virtua.com > .br, from= > > I understand there isn't a problem with the first one, but then its > logging > the second as a "kernel:" entry. My syslog.conf is : > > *.err;kern.debug;auth.notice;mail.crit /dev/console > *.emerg * > *.debug /var/log/spool > > Is there a way to stop that second entry? It keeps tripping my syslog > monitoring program. What release are you running? (Show the output of uname -a) It's just a formatting issue. > Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): > > Oct 16 00:00:25 valhalla kernel: > Oct 16 00:00:25 valhalla sm-mta[69206]: l9G40Kf5069206: SYSERR(root): > There must be somewhere in the kernel where we're writing to the syslog with an empty error string. The syslog routines expect a newline-terminated character string, so the lack of a newline causes the next entry to be on the same line as the (non-existant) kernel message. The trouble will be tracking this down. Regards, -- Matt Emmerton