From owner-freebsd-questions@FreeBSD.ORG Mon Aug 14 16:28:32 2006 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 E3FF316A4DA for ; Mon, 14 Aug 2006 16:28:32 +0000 (UTC) (envelope-from nomadlogic@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F30943D4C for ; Mon, 14 Aug 2006 16:28:22 +0000 (GMT) (envelope-from nomadlogic@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so1308916pyc for ; Mon, 14 Aug 2006 09:28:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WByfuzUZPgDSW8QLXbsXl5EOx8Zj7GeJ7pDfDdn5p5NiRboDYdvG1kwAhhpmzCH6FwsZ9PTkUb6+JuE35o3ANuC/6GvRy5dGHe3yiwKuK633Ha5gX1YJkV1ADh8L2TdTG383aoasPLfr8Lk9yn5jxypOwlOrvWqRM/HKBOmswRM= Received: by 10.35.108.12 with SMTP id k12mr13606273pym; Mon, 14 Aug 2006 09:28:22 -0700 (PDT) Received: by 10.35.57.1 with HTTP; Mon, 14 Aug 2006 09:28:22 -0700 (PDT) Message-ID: <57d710000608140928p4ae4e355kd364951f2f4d8679@mail.gmail.com> Date: Mon, 14 Aug 2006 09:28:22 -0700 From: "pete wright" To: "Philippe Lang" In-Reply-To: <6C0CF58A187DA5479245E0830AF84F421D1087@poweredge.attiksystem.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6C0CF58A187DA5479245E0830AF84F421D1087@poweredge.attiksystem.ch> Cc: questions@freebsd.org 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:28:33 -0000 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. HTH -pete -- ~~o0OO0o~~ Pete Wright www.nycbug.org NYC's *BSD User Group