From owner-freebsd-hubs Mon Apr 23 23:55:42 2001 Delivered-To: freebsd-hubs@freebsd.org Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11]) by hub.freebsd.org (Postfix) with ESMTP id 6864637B422 for ; Mon, 23 Apr 2001 23:55:36 -0700 (PDT) (envelope-from cejkar@dcse.fee.vutbr.cz) Received: from kazi.dcse.fee.vutbr.cz (kazi.dcse.fee.vutbr.cz [147.229.8.12]) by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f3O6tYt11809 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK); Tue, 24 Apr 2001 08:55:34 +0200 (CEST) Received: (from cejkar@localhost) by kazi.dcse.fee.vutbr.cz (8.11.2/8.11.2) id f3O6tX067500; Tue, 24 Apr 2001 08:55:33 +0200 (CEST) Date: Tue, 24 Apr 2001 08:55:33 +0200 From: Cejka Rudolf To: jason andrade Cc: freebsd-hubs@FreeBSD.ORG Subject: Re: Broken mirrors Message-ID: <20010424085533.A65778@dcse.fee.vutbr.cz> References: <20010423235618.A57416@dcse.fee.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jason@dstc.edu.au on Tue, Apr 24, 2001 at 08:11:59AM +1000 Sender: owner-freebsd-hubs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org jason andrade wrote (2001/04/24): > freebsd 4.3 downloads have slowly started taking over - i estimate around > 250Gb downloaded from here so far. Me too, but 250 GB from 1st April, where there are 200 GB in last two days. I have FTP statistics in ftp://ftp.cz.FreeBSD.org/pub/logs/xferstats/xferstats.last > nice stats page you have though.. i'll have to look into doing something > like that. are you regularly writing out the process counts ? or using > snmp running on your box to get that back into mrtg ? Snmp runs on Japan sites. I have just simple proc2mrtg script, which takes current process counts every 5 minutes. It is just a fast solution and many processes are missed, so every better solution is welcomed. Usage: proc2mrtg (subtraction is good for idle servers as in case of cvsupd). -- #!/bin/sh HOSTNAME=/bin/hostname UPTIME=/usr/bin/uptime SED=/usr/bin/sed PS=/bin/ps GREP=/usr/bin/grep PRINTF=/usr/bin/printf HOSTNAME=`${HOSTNAME}` UPTIME=`${UPTIME} | ${SED} -e 's/^.*up *\([^,]*,[^,]*\),.*$/\1/'` COUNT=$(( `${PS} -axo ucomm | ${GREP} -c "^$2 *$"` - $1 )) ${PRINTF} -- "${COUNT}\n$3\n${UPTIME}\n${HOSTNAME}\n" -- Rudolf Cejka (cejkar@dcse.fee.vutbr.cz; http://www.fee.vutbr.cz/~cejkar) Brno University of Technology, Faculty of El. Engineering and Comp. Science Bozetechova 2, 612 66 Brno, Czech Republic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hubs" in the body of the message