From owner-freebsd-questions@FreeBSD.ORG Sat Oct 15 15:47:27 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD8EB16A41F for ; Sat, 15 Oct 2005 15:47:27 +0000 (GMT) (envelope-from josh@tcbug.org) Received: from rwcrmhc12.comcast.net (rwcrmhc13.comcast.net [216.148.227.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D41B43D49 for ; Sat, 15 Oct 2005 15:47:27 +0000 (GMT) (envelope-from josh@tcbug.org) Received: from [192.168.1.101] (c-24-118-173-219.hsd1.mn.comcast.net[24.118.173.219]) by comcast.net (rwcrmhc13) with ESMTP id <2005101515472601500rf9dje>; Sat, 15 Oct 2005 15:47:26 +0000 From: Josh Paetzel To: questions@freebsd.org Date: Sat, 15 Oct 2005 10:48:39 -0500 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510151048.39626.josh@tcbug.org> Cc: Subject: Gathering statistics on disk usage 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: Sat, 15 Oct 2005 15:47:27 -0000 I am trying to set up mrtg to graph disk usage. I've tried using the output of iostat to provide me with usage in MB/s. The problem with this is that moving data from disk to disk on the system causes the usage to jump to around 30MB/s. Even with mrtg configured to draw the graphs logarithmically they basically blow up and the normal transfers are not really visable. systat -vm gives statistics on disk usage with a percent busy field. This stat would be easier to graph and I would like to use it. My problem is that I can't seem to extract the output of systat properly. I've tried doing systat -vm | tail -n -1 and that doesn't work. I've also tried systat -vm > somefile.txt and that doesn't work. There doesn't seem to be a way to get systat to run once and then quit either. Can anyone think of a way to either capture systat's output or recommend a utility that will give me a % busy output? I've tried iostat without success. -- Thanks, Josh Paetzel