Return-Path: X-Original-To: apmail-hadoop-general-archive@minotaur.apache.org Delivered-To: apmail-hadoop-general-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 932C9E957 for ; Sat, 5 Jan 2013 09:33:23 +0000 (UTC) Received: (qmail 56233 invoked by uid 500); 5 Jan 2013 09:33:21 -0000 Delivered-To: apmail-hadoop-general-archive@hadoop.apache.org Received: (qmail 56149 invoked by uid 500); 5 Jan 2013 09:33:21 -0000 Mailing-List: contact general-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@hadoop.apache.org Delivered-To: mailing list general@hadoop.apache.org Received: (qmail 56136 invoked by uid 99); 5 Jan 2013 09:33:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 09:33:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mlanciau@gmail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jan 2013 09:33:16 +0000 Received: by mail-ob0-f179.google.com with SMTP id x4so15341181obh.24 for ; Sat, 05 Jan 2013 01:32:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5ZgtMbbJPMC1vKdz8OpBhU71HACOq9vami0J+48jLuo=; b=xrROpyQvnMDT5Y+i5ghYm1a4yiha9SzK8xjYQB2SNzgIfkWNQ72VK0LyVGZgn4+rgD I6Hl9HouysiwvCEBFg37J+sv6rtwuTj9n02XDds559DOnZmjXyl9lJNAVJch2VdS7YxV GiOKPO18x8F3N8Qem86+cJCs++3xJbA7NXQ9OBHo3VbhVGAlfslaY9kPAZEgjszovATF JJ2Ydp5ILieATPrP9q8fnm9yA8+nkN7q0ao+wbUxyrx6gwjotfCXtgnzYSc2yq5MHSrt mIZjb4/U5Tq1QMDargD7wzqROzvVrzCLd70fKHNQnc/SCqcqDwVoKnpJtZ9vYcD7QleD 64Pw== MIME-Version: 1.0 Received: by 10.60.28.74 with SMTP id z10mr31020714oeg.29.1357378376159; Sat, 05 Jan 2013 01:32:56 -0800 (PST) Received: by 10.76.151.198 with HTTP; Sat, 5 Jan 2013 01:32:55 -0800 (PST) Received: by 10.76.151.198 with HTTP; Sat, 5 Jan 2013 01:32:55 -0800 (PST) In-Reply-To: References: Date: Sat, 5 Jan 2013 10:32:55 +0100 Message-ID: Subject: Re: hadoop simple monitor From: mlanciau To: general@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1c170efd15b04d2874758 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c170efd15b04d2874758 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks a lot I will look @ on monday Best Regards Le 5 janv. 2013 10:30, "=E5=91=A8=E6=A2=A6=E6=83=B3" a= =C3=A9crit : > Hello, > I write a bash script to monitor all nodes of Hadoop system. It can monit= or > memory, disk usage and hadoop,thirift,hbase process exit. > > Simple Monitor for Hadoop Processes, Memory and Diskspace usage. If memor= y > and disk usage reaches to a threshold, or some hadoop system process exit= , > the program will send email to make warnings. > Features: > > 1. Simple Monitor Hadoop Processes, Memory and Diskspace usage of ever= y > hosts that configured. > 2. Deploy is simple. Just copy or uncompress the code to one station, > and it can monitor each remote hosts.( Do not need to deploy to any > nodes > to be monitored.) > 3. Write by Bash script, It's easy to modify. > 4. It can monitor java processes(Such as HBase,Thrift,Hadoop processes= ) > or other processes(need a little change) > > Deploy: > > Just copy or uncompress the code to a directory, configured to monitor al= l > remote hosts, the remote hosts needn't any configure or deploy. > > 1. modify config.sh to configure parameters > 2. check loopcheck.sh to modify paths, because crontab has a limited e= nv > and PATH > 3. check email sending is ok or not, you may need configure MTA such a= s > Postfix > 4. configure crontab, every 5 minutes check the hosts > > 0-59/5 * * * * $HOME/smr/loopcheck.sh > > > Download: https://code.google.com/p/hadoop-simple-monitor/ > > May it could help some body. > > Best Regards, > > Andy Zhou > --e89a8ff1c170efd15b04d2874758--