Date: Mon, 14 Aug 2006 10:37:50 -0600 From: "Chad Leigh -- Shire.Net LLC" <chad@shire.net> To: freebsd-questions Questions <freebsd-questions@freebsd.org> Subject: Re: Cacti & FreeBSD Jail CPU & RAM monitoring Message-ID: <F5DDCD11-8C79-46CE-82BB-9C6EF24263A5@shire.net> In-Reply-To: <57d710000608140928p4ae4e355kd364951f2f4d8679@mail.gmail.com> References: <6C0CF58A187DA5479245E0830AF84F421D1087@poweredge.attiksystem.ch> <57d710000608140928p4ae4e355kd364951f2f4d8679@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 14, 2006, at 10:28 AM, pete wright wrote: > On 8/14/06, Philippe Lang <philippe.lang@attiksystem.ch> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F5DDCD11-8C79-46CE-82BB-9C6EF24263A5>