From owner-freebsd-stable Fri May 11 12:17:13 2001 Delivered-To: freebsd-stable@freebsd.org Received: from tethys.valhalla.net (tethys.valhalla.net [195.26.32.112]) by hub.freebsd.org (Postfix) with ESMTP id 0854537B43E for ; Fri, 11 May 2001 12:17:09 -0700 (PDT) (envelope-from mark@tethys.valhalla.net) Received: by tethys.valhalla.net (Postfix, from userid 500) id 0255A33009; Fri, 11 May 2001 20:17:08 +0100 (BST) Date: Fri, 11 May 2001 20:17:07 +0100 From: Mark Drayton To: freebsd-stable@freebsd.org Subject: Re: sendmail traffic analysis Message-ID: <20010511201707.B13410@tethys.valhalla.net> Mail-Followup-To: freebsd-stable@freebsd.org References: <200105111808.OAA95315@khavrinen.lcs.mit.edu> <20010511141711.I26835-100000@germanium.xtalwind.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010511141711.I26835-100000@germanium.xtalwind.net>; from jack@germanium.xtalwind.net on Fri, May 11, 2001 at 02:19:08PM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jack (jack@germanium.xtalwind.net) wrote: > Today Garrett Wollman wrote: > > > >I'm not sure how to monitor sendmail with SNMP, and would be > > >interested in hearing from others what tools they use to monitor > > >SMTP traffic on their FreeBSD systems. > > > > Depends on what and how you want to monitor. For BIND, I wrote a > > little script that stuffs those annoying statistics dumps into an > > RRD. You could conceivably do the same thing with sendmail, > > although you would have to collect your own stats by analyzing the > > log files. > > Or use mailstats(1). I wrote a perl script to parse the named stats log file and return the number of queries. These results are available via snmp by using the 'exec' feature of ucd-snmpd to call the script. I use a shell script and snmpget(1) on my monitoring machine to collect the results and update a rrdtool database every 5 minutes. It would be easy to parse the output of mailstats(1) and return the results via snmp. Cheers, -- Mark Drayton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message