Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 08:55:33 +0200
From:      Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
To:        jason andrade <jason@dstc.edu.au>
Cc:        freebsd-hubs@FreeBSD.ORG
Subject:   Re: Broken mirrors
Message-ID:  <20010424085533.A65778@dcse.fee.vutbr.cz>
In-Reply-To: <Pine.OSF.4.20.0104240800250.7520-100000@azure.dstc.edu.au>; from jason@dstc.edu.au on Tue, Apr 24, 2001 at 08:11:59AM %2B1000
References:  <20010423235618.A57416@dcse.fee.vutbr.cz> <Pine.OSF.4.20.0104240800250.7520-100000@azure.dstc.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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> <process name> <process limit count> 
(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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010424085533.A65778>