<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>KENCOM.BIZ &#187; munin</title>
	<atom:link href="http://kencom.biz/archives/tag/munin/feed" rel="self" type="application/rss+xml" />
	<link>http://kencom.biz</link>
	<description>Linux Server Memorandum etc.</description>
	<lastBuildDate>Sun, 08 Jan 2012 20:22:34 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://kencom.biz/archives/tag/munin/feed" />
		<item>
		<title>munin プラグインを追加 ApacheとMysql</title>
		<link>http://kencom.biz/archives/2009/0427161537.php</link>
		<comments>http://kencom.biz/archives/2009/0427161537.php#comments</comments>
		<pubDate>Mon, 27 Apr 2009 07:15:37 +0000</pubDate>
		<dc:creator>kencom</dc:creator>
				<category><![CDATA[CentOS5.3]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://kencom.biz/?p=511</guid>
		<description><![CDATA[監視ツール　muninのプラグインを追加しました。 今回追加したプラグインは、ApacheとMysqlのグラフです。 デフォルトでプラグインは有効になっていないので、下記の手順で有効にしてみました。 apache_acc [...]]]></description>
			<content:encoded><![CDATA[<p>
監視ツール　muninのプラグインを追加しました。<br />
今回追加したプラグインは、ApacheとMysqlのグラフです。<br />
デフォルトでプラグインは有効になっていないので、下記の手順で有効にしてみました。<br />
<br />
<br />
<br />
apache_accesses apache_processes apache_volume<br />
Apacheのプラグインはあらかじめ mod_statusを有効にしなければなりません。<br />
<br />
Statusを使用可能にするため、以下のコードを追加<br />
<pre class="brush: xml; title: ; notranslate">
[root@centos ~]# vi /etc/httpd/conf/httpd.conf

LoadModule status_module modules/mod_status.so

ExtendedStatus On

&lt;Location /server-status&gt;
   SetHandler server-status
   Order Deny,Allow
   Deny from all
   Allow from 127.0.0.1
   Allow from localhost
&lt;/Location&gt;

設定の反映
[root@centos ~]# /etc/rc.d/init.d/httpd restart
</pre>
<br />
プラグインを有効化するためシンボリックリンクを張る。<br />
<pre class="brush: bash; title: ; notranslate">
[root@centos ~]#ln -s /usr/share/munin/plugins/apache_accesses /etc/munin/plugins/apache_accesses
[root@centos ~]#ln -s /usr/share/munin/plugins/apache_processes /etc/munin/plugins/apache_processes
[root@centos ~]#ln -s /usr/share/munin/plugins/apache_volume /etc/munin/plugins/apache_volume
</pre>
80ポート以外のポートも監視したい場合は[apache*]をmunin-nodeに追加してください。<br />
<pre class="brush: bash; title: ; notranslate">
[root@centos ~]# vi /etc/munin/plugin-conf.d/munin-node
[apache*]
env.ports 80 443

[root@centos ~]# /etc/init.d/munin-node restart ←設定反映
</pre>
Mysqlのグラフ mysql_bytes mysql_isam_space_ mysql_queries<br />
mysql_slowqueries mysql_threads<br />
プラグインを有効化するためシンボリックリンクを張る。<br />
<pre class="brush: bash; title: ; notranslate">
[root@centos ~]#ln -s /usr/share/munin/plugins/mysql_bytes /etc/munin/plugins/mysql_bytes
[root@centos ~]#ln -s /usr/share/munin/plugins/mysql_isam_space_ /etc/munin/plugins/mysql_isam_space_
[root@centos ~]#ln -s /usr/share/munin/plugins/mysql_queries /etc/munin/plugins/mysql_queries
[root@centos ~]#ln -s /usr/share/munin/plugins/mysql_slowqueries /etc/munin/plugins/mysql_slowqueries
[root@centos ~]#ln -s /usr/share/munin/plugins/mysql_threads /etc/munin/plugins/mysql_threads
</pre>
Mysqlの情報を所得するには、env.mysqlopts -u root -pパスワード　が必要でした。<br />
<pre class="brush: bash; title: ; notranslate">
[root@centos ~]# vi /etc/munin/plugin-conf.d/munin-node
[mysql*]
env.mysqlopts -u root -pパスワード
env.mysqladmin /usr/bin/mysqladmin

[root@centos ~]# /etc/init.d/munin-node restart ←設定反映
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://kencom.biz/archives/2009/0427161537.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://kencom.biz/archives/2009/0427161537.php" />
	</item>
		<item>
		<title>監視ツール　munin 1.2.6-4 のインストール</title>
		<link>http://kencom.biz/archives/2009/0421163003.php</link>
		<comments>http://kencom.biz/archives/2009/0421163003.php#comments</comments>
		<pubDate>Tue, 21 Apr 2009 07:30:03 +0000</pubDate>
		<dc:creator>kencom</dc:creator>
				<category><![CDATA[CentOS5.3]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[repository]]></category>

		<guid isPermaLink="false">http://kencom.biz/?p=406</guid>
		<description><![CDATA[ 簡単にサーバーリソースなどのグラフを生成してくれるmuninを インストールしてみました。その時の備忘録です。 インストール環境　CentOS5.3にインストール EPEL（Extra Packages for Ent [...]]]></description>
			<content:encoded><![CDATA[<p>
 簡単にサーバーリソースなどのグラフを生成してくれるmuninを<br />
インストールしてみました。その時の備忘録です。<br />
<br />
<br />
<br />
インストール環境　CentOS5.3にインストール<br />
<br />
EPEL（Extra Packages for Enterprise Linux ）にある<br />
munin-1.2.6-4<br />
munin-node-1.2.6-4をyumでインストール<br />
<br />
EPELのリポジトリを追加していない場合は下記のリンクを参照してください。<br />
・<a href="http://kencom.biz/archives/2009/0312153709.php">epel リポジトリを追加</a><br />
<br />
<pre class="brush: bash; title: ; notranslate">
muninのインストール (munin, munin-node)
[root@cent ~]#yum --enablerepo=epel install munin munin-node

muninディレクトリの作成
[root@cent ~]#mkdir /var/www/munin&lt;/pre&gt;

muninが作成する格納ディレクトリの権限変更
[root@cent ~]#chown -R munin:munin /var/www/munin
</pre>
<br />
/etc/munin/munin.confの設定<br />
htmldir /var/www/munin　←自分の環境に合わせる<br />
<br />
↓追加<br />
[localhost]<br />
    address 127.0.0.1<br />
    use_node_name yes<br />
<pre class="brush: bash; title: ; notranslate">
[root@centos ~]#vi /etc/munin/munin.conf
dbdir   /var/lib/munin
htmldir /var/www/munin
logdir  /var/log/munin
rundir  /var/run/munin

# Where to look for the HTML templates
tmpldir /etc/munin/templates
# a simple host tree
# 監視するサーバーの設定
[localhost]
    address 127.0.0.1
    use_node_name yes
</pre>
apacheでアクセスできるようにmunin.confを設定する。<br />
<pre class="brush: xml; title: ; notranslate">
[root@cent ~]#vi /etc/httpd/conf.d/munin.conf
Alias /munin /var/www/munin
###　内部からのみアクセスするためには以下を追加
&lt;Location /munin&gt;
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1
  Allow from 192.168.1.0/24　←　内部ネットワークアドレスを指定
&lt;/Location&gt;
 
[root@cent ~]# /etc/rc.d/init.d/httpd reload　←Apache設定反映
httpd を再読み込み中:                                 [  OK  ]

[root@cent ~]# /etc/init.d/munin-node start ←munin-node起動
Starting Munin Node:                                  [  OK  ]
</pre>
これで、5分後には、グラフが作成されています。</p>
]]></content:encoded>
			<wfw:commentRss>http://kencom.biz/archives/2009/0421163003.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://kencom.biz/archives/2009/0421163003.php" />
	</item>
	</channel>
</rss>

