From owner-freebsd-questions@FreeBSD.ORG Mon Aug 14 16:37:57 2006 Return-Path: X-Original-To: freebsd-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 AD92216A4E1 for ; Mon, 14 Aug 2006 16:37:57 +0000 (UTC) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (mail.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4227E43D69 for ; Mon, 14 Aug 2006 16:37:52 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.171.127.191] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1GCfRn-000774-EC for freebsd-questions@freebsd.org; Mon, 14 Aug 2006 10:37:51 -0600 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <57d710000608140928p4ae4e355kd364951f2f4d8679@mail.gmail.com> References: <6C0CF58A187DA5479245E0830AF84F421D1087@poweredge.attiksystem.ch> <57d710000608140928p4ae4e355kd364951f2f4d8679@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Mon, 14 Aug 2006 10:37:50 -0600 To: freebsd-questions Questions X-Mailer: Apple Mail (2.752.2) X-SA-Exim-Connect-IP: 67.171.127.191 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Subject: Re: Cacti & FreeBSD Jail CPU & RAM monitoring 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: Mon, 14 Aug 2006 16:37:57 -0000 On Aug 14, 2006, at 10:28 AM, pete wright wrote: > On 8/14/06, Philippe Lang wrote: >> Hi, >> >> I'd like to use Cacti for CPU and RAM usage monitoring on my >> FreeBSD Server. >> >> Is there a way to do monitoring for each jail independently? I >> guess the answer is "no" for CPU usage, but is there a way maybe >> to get the RAM usage of the processes of each jail? >> > > > using cacti's scripting ability you actually may be able to get some > sort of usefull info. for example, you can use "ps auxwl" to get some > pretty detailed info on process which are in jails (third filed is > %CPU, fourth %MEM). it may take a little work to sort out which jail > a process resides in - . this method will only work from the master > as well. similar tricks can be used inside a jail as well. Remember you can do things like % jexec NUM /bin/ps from the master to do a ps command inside jail NUM you can get the jail number from the % jls command inside the master. Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net