From owner-freebsd-questions Fri May 11 16:33:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from edwin.mounet.com (edwin.mounet.com [216.145.76.8]) by hub.freebsd.org (Postfix) with SMTP id E777D37B423 for ; Fri, 11 May 2001 16:33:52 -0700 (PDT) (envelope-from hornback@wireco.net) Received: (qmail 3105 invoked by uid 0); 11 May 2001 22:58:54 -0000 Received: from unknown (HELO tomcat) (216.145.67.27) by mounet.com with SMTP; 11 May 2001 22:58:54 -0000 From: "Andrew C. Hornback" To: "Michael Lucas" Cc: "FreeBSD Questions" Subject: RE: syslog.conf && executing programs Date: Fri, 11 May 2001 19:02:18 -0400 Message-ID: <013c01c0da6e$6d9c6e40$0e00000a@tomcat> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: <20010511131433.A28242@blackhelicopters.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Depending on your settings for Syslog, that's gonna be thousands of e-mails an hour. A small installation that I worked on last year involving a Cisco 2600 series, a USR modem rack and a few servers spit out 7000 messages in an hour. 'course, I had everything set to absolute 100% verbosity so I could see how it was operating, since the previous "System Admin" (and I use the term loosely) evidently got his MCSE in a box of Cracker Jacks. You might be better off if you could set it to send you the contents of the syslog buffer every 10 minutes if you can give it that much time between a possible critical problem and being alerted to it. That would make your mail server feel a LOT better... *grins* --- Andy > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Michael Lucas > Sent: Friday, May 11, 2001 1:15 PM > To: Jonathan Fortin > Cc: questions@freebsd.org > Subject: Re: syslog.conf && executing programs > > > I'm not trying to rotate, I want every message immediately emailed to > me. But thanks. > > On Fri, May 11, 2001 at 11:31:10AM -0400, Jonathan Fortin wrote: > > Hum > > syslogd doesnt have logfile rotation functionality. > > > > it's called newsyslog that has it and you can use it in any > instance to trim > > files. > > > > > > ----- Original Message ----- > > From: "Michael Lucas" > > To: > > Sent: Friday, May 11, 2001 11:02 AM > > Subject: syslog.conf && executing programs > > > > > > > Hello, > > > > > > I'd like to use syslogd to mail me upon certain events. > > > > > > local3.* | /usr/bin/mail -s alert mwlucas > > > > > > (I was using swatch, but it gives me trouble with logfile rotation. > > > Since syslogd has the functionality, why not use it?) > > > > > > > > > The first time something is appended to the log, I get a mail. > > > > > > The second time, I get a hang: > > > > > > loghost/etc;ps -ax | grep mail > > > 25711 ?? Is 0:00.00 sh -c /usr/bin/mail -s alert mwlucas > > > 25712 ?? I 0:00.00 /usr/bin/mail -s alert mwlucas > > > loghost/etc; > > > > > > > > > Any suggestions? > > > > > > > > > -- > > > Michael Lucas > > > mwlucas@blackhelicopters.org > > > http://www.blackhelicopters.org/~mwlucas/ > > > Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > -- > Michael Lucas > mwlucas@blackhelicopters.org > http://www.blackhelicopters.org/~mwlucas/ > Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message