From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 13:29:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2278106566C for ; Sat, 3 Jan 2009 13:29:47 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 858238FC1B for ; Sat, 3 Jan 2009 13:29:47 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (246.10.87-79.rev.gaoland.net [79.87.10.246]) by smtp.lamaiziere.net (Postfix) with ESMTPA id ABD2B633692; Sat, 3 Jan 2009 14:29:45 +0100 (CET) Received: from baby-jane-lamaiziere-net.local (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 814B96924A6; Sat, 3 Jan 2009 14:29:44 +0100 (CET) Date: Sat, 3 Jan 2009 14:29:43 +0100 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= To: freebsd-questions@freebsd.org Message-ID: <20090103142943.05d2a2a3@baby-jane-lamaiziere-net.local> In-Reply-To: References: Organization: /dave/nulle X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.3.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Cc: Grant Peel Subject: Re: Memory 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, 03 Jan 2009 13:29:48 -0000 Le Fri, 2 Jan 2009 10:47:32 -0500, "Grant Peel" a écrit : > Hi all, > > Does anyone have scripts they may be willing to share the parses any > FreeBSD utility (top, w, etc) suitable for using the output to use > mrtg to show memory and disk usage? Mrtg needs a script that returns four lines : - the first value - the second value (return 0 if only one value is used) - the Uptime - The legend By example a little script to return the number of processus using ps -xa net:/<1>local/libexec/mrtg# ./pn2mrtg 193 0 12 days, 10:20 net see http://user.lamaiziere.net/patrick/mrtg.tar.gz as examples. (The scripts are quite uggly...) http://lamaiziere.net/private/stat/net/ for the result OTH, regards.