From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CAD231381F3 for ; Tue, 18 Jun 2013 06:26:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 774C0E0957; Tue, 18 Jun 2013 06:25:52 +0000 (UTC) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 155B3E08A6 for ; Tue, 18 Jun 2013 06:25:50 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id u53so3032588wes.37 for ; Mon, 17 Jun 2013 23:25:49 -0700 (PDT) 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=vnOVGCN8L1yznifTkT1dHV9roeVz65mNT2LLdDegudU=; b=hw5htQHpLRtQG5kpN+F0FlYGd7pGI+ApZ4K+RHgQP0q3yJNNR4mpTDkTFoyOHyrADg zG+Ynzh0BZ9U8WieYkWs2upd1FhVgIzRwrbYFn0p7+heIy8jcCGUg7Tao3eIAgc++zCy kunZcOd2d+DrSe2F5uo4zBHxkd+sAx+jlHFNsUTNt5ZDPNWtyhWmND8iVpcVU+jUeSch FB+GN/2ykND029VW59W+d0IpLOdgXIHeu0SZ9qwVVwg9GpzdA4UXTQVO4ksHjhHN05J4 MpaK0YUmKatTI8SSNQl+KwgE/CtrbXszja/c6XlQPM+K8YSh3/xtBVZtU82I+1fIkhwj OB2w== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.180.207.43 with SMTP id lt11mr6665658wic.57.1371536749482; Mon, 17 Jun 2013 23:25:49 -0700 (PDT) Received: by 10.194.46.99 with HTTP; Mon, 17 Jun 2013 23:25:49 -0700 (PDT) In-Reply-To: <51BF2F53.2030605@gmail.com> References: <494511127cb3e6faacd71caf912c46b8@hadt.biz> <51BE1694.2030104@hadt.biz> <51BE277F.2070203@gmail.com> <51BF2F53.2030605@gmail.com> Date: Mon, 17 Jun 2013 23:25:49 -0700 Message-ID: Subject: Re: [gentoo-user] monitoring system resource usage From: Grant To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 1990de77-618a-452b-89c8-64d02e3bc653 X-Archives-Hash: f324e71ec0e60e394bc0087dab69abe2 >>>> Agreed! Although getting apache, mysql, and nginx plugins fully >>>> working is proving to be a little trickier. To get those going it's >>>> necessary to edit /etc/munin/plugin-conf.d/munin-node as well as some >>>> apache and nginx config. Still working on getting it all 100%. - Grant >>> If you have a fairly basic setup, post what you are using to help others >>> later on. At least it could give someone a config to go by. >> I promise I will do this once I feel good about my config. >> >> - Grant > > That's good. Sometimes when I am setting up something, I google for the > config file to see if I can find something to go by at least. I did > that the other day with my xorg.conf file. I found out that when I > logout and leave, my monitor never goes to standby. I found a config > file that someone posted that had the info I needed. It was MUCH faster > than trying to read man pages and find it. > > I thought about setting up a site or something and putting different > config files there and allowing others to post theirs. Thing is, I'm > sort of low income and I don't know how much that would end up costing > me. I'd do it for free so I'd pay for whatever it was. I think a > central place for this sort of thing would be great. > > Anyway, it may help the next person if you post what works for you and > maybe how you are using it. At least give someone a start. If they > google, they will find it. I used this as a base which is excellent: http://wiki.gentoo.org/wiki/Munin Extra config is required if you want to get other plugins working like apache, mysql, and nginx The extra config takes place in /etc/munin/plugin-conf.d/munin-node and in whatever program you are configuring the plugin for. This setup assumes the master and node are on the same machine. apache: /etc/munin/plugin-conf.d/munin-node: [apache_*] env.ports 80 env.url http://127.0.0.1:80/server-status?auto /etc/conf.d/apache2: add "-D STATUS" to APACHE2_OPTS (apache must be compiled with APACHE2_MODULES="status") mysql: /etc/munin/plugin-conf.d/munin-node: [mysql*] env.mysqlopts -u root --password=PASSWORDHERE (I'm still having a problem with the myisam and InnoDB graphs.) nginx: This should work but it doesn't for me yet: http://www.nginxtips.com/nginx-configuration-for-munin/ It's a good idea to change the following for security as long as the master and node are on the same machine: #host * host 127.0.0.1 It's handy to use 'munin-run PLUGIN_NAME' to test a plugin. - Grant