Ubuntu12.04にmuninをインストール的な。

インフラ熱が加速している今日です。

Apacheでウェブサイトを公開しているわけだけど、CPUとかSwap、ネットワークやディスクの状態とか見えない部分がかなり多いんで、細かいサーバチューニングの参考にと”サーバーの稼働率を可視化したい”と思ったときに、ふとmy365で使っているmuninの存在を思い出して、自分のとこのサーバーにインストールしました。小言ですが、最初はmuninを”ムーミン”だと思っていました。(すみません)

インストール&セットアップが超簡単すぎてびびる。

■インストール

sudo apt-get install munin munin-node munin-plugins-extra

合計3パッケージ入れる訳だけど、

munin 収集されたデータをウェブインターフェース上でグラフ化

munin-node 数値を収集

munin-plugins-extra 拡張のためのパッケージ(お好みで)

という構成になってるみたいです。

■muninディレクトリの作成

mkdir ~/htdocs/munin

公開ディレクトリのどこか適当なとこにディレクトリを作成。

■muninの出力先を設定

公開ディレクトリをユーザーフォルダの中で行っているため、2ファイルの修正が必要でした。

/etc/munin/munin.conf  ファイルの出力先を上でつくったフォルダに設定

htmldir /home/t_ishiyama/htdocs/munin
logdir /var/log/munin

最初~/htdocs/munin というかたちでディレクトリを指定してたんですが、パスが通らずだめでした。フルパスで記載するんですね、こういうの。

 /etc/munin/apache.conf  のエイリアスとディレクトリ、アクセス許可を以下に設定

Alias /munin /home/t_ishiyama/htdocs/munin
<Directory /home/t_ishiyama/htdocs/munin>
Order deny,allow
Options None

※ 初期設定だとOrderがサーバー自身からしかみれない設定になってるので、適当にアクセスの許可をします。後でどのみちベーシック認証かけるだろうということで、一旦どこからでもアクセスできるように。

■設定がおわったら再起動

/etc/init.d/munin-node restart
/etc/init.d/apache2 restart

■動作確認

5分待てばログがグラフが生成されるみたいですが、せっかちなのでcronをまわす。

sudo -u munin /usr/bin/munin-cron

該当ディレクトリの権限が無いとか、ディレクトリが間違っているとか、エラーをはいてくれるのでたすかりました!権限がなければmunin/ディレクトリに775を与えてあげてください。

はいmuninさんこんにちは。

スクリーンショット 2013-02-13 23.36.06

余談

そろそろ持ってない数字感スキルを得るために身近な所から自分事化して、自分も含みデザイナーのパフォーマンスを数値化したいところであります。頑張るぞー!

下記参考にさせていただきました。

ファイルサーバーの状態を Munin で監視
 UbuntuにMuninをインストールする

← Previous post

Next post →

102 Comments

  1. Nike’s promotion being successful means that this its manufacturers set further increased exposure of typically the mixture of merchandise and also customs. Also, in addition they set a close look concerning featuring typically the manufacturer customs associated with promotion. As a result, them victories typically the fame with sells now.

  2. Participants with the help of onetosix quite a few years knowledge qualify for one spot price that could pay out all of them 25% from his particular team’s take home level. Intended for Retaining wall, designed to try to make his particular spot take home $13. 5 k regarding who the winner as well as he’d qualify for some. 5% boosts in line with the firstyear wide variety per annum of this price. Retaining wall is without a doubt eligible to around some fouryear price, except if typically the Wizards try to make him or her some specified poker player each group bargaining legal contract policies, just about every group can offer one that could offer him or her some fiveyear price.

  3. Girls TShirtsis a “brand, at that same moment simply 30 yr Jones bo BaiLi British isles gentleman 100 DuoNian to be able to BaiLi/BaBaoLi, grew to be some sort of the majority depict Great britain nature brand name. Early on deliver simply open-air plus military services costume, 1880, Jones bo BaiLi conceived some sort of water-resistant breathable clothing plus both equally “Gabardine”, and also with 1888 the obvious for your Caribbean expert during that time, style and also creation the raincoat, full Wayne Ed vii associated with slightly more requested in order to Women of all ages T-shirts of your obvious raincoat among the Caribbean armed forces. And also with 1911, this Southern region Post for your initially vanquished tourist Ronald Amunden give holiday attire designed its symbol around the community.

  4. Atmosphere Cooled down Processor chip Heatsink ReviewWhat typically the heck can be a Jing It really is Thermaltake’s most up-to-date COMPUTER much cooler in the future downwards typically the pike. Thermaltake’s purpose using this type of fresh much cooler is usually to be an excellent COMPUTER much cooler it doesn’t pierce the ears when ever it again moves upward. We will view should the Thermaltake visitors typically the indicate..

  5. Eamonn’s Cathal Armstrong’s Striper Potato chips. Eamonn branded when the Dublinborn Gourmet Armstrong kid, is often a regular chipper, for the reason that a person choose along at the counter-top in addition to obtain your fit, in addition to await your own brand to always be labeled utilizing your choose. Your hang around is definitely a prolonged 1, considering that all can be provided healthy in addition to you will find just 25 seat designs, such as the counter-top having bar stools.

  6. This morning DD plus i just joined some oughout select strawberries place. DD plus DGDS decided on thirty seven excess fat. Yesterday i just produced fridge freezer quickly pull and as well chopped plus scattered Splenda regarding fruits plus froze with qt.

  7. 1) Remedy one of the many equations for the purpose of one of the many criteria (in some cases this really achieved available for you). Commonly you wish to remedy to the distinction employing fastest. Such as should the situation is certainly 3x + ful = 12 you definitely should certainly remedy for the purpose of ful mainly because it not employ a coefficient.

  8. Actually with regard to neighborhood devotees, the position to get the means to access the actual Trek Blazers might be boring. People residing in the actual team’s marketplace know that the only method they could observe all of them can be simply by ponying up a huge amount of revenue to acquire Comcast cable tv, and that has happen to be continuing to keep devotees hostage for a little bit these days. On the other hand, after i was a student in a unique your home or perhaps out of the office, We would not have always with such ease the means to access Portland tv set policy cover.

  9. Girls TShirtsis any “brand, at the same time solely 20 or so calendar year Jones bo BaiLi British isles person 100 DuoNian so that you can BaiLi/BaBaoLi, has become a new the majority symbolize Britain disposition brand name. First present solely open-air together with armed forces dress up, 1880, Jones bo BaiLi designed a new watertight breathable materials together with equally “Gabardine”, as well as with 1888 the obvious to your Uk policeman during those times, style as well as creation the raincoat, master Fred Edward cullen vii driving better purchased that will Gals T-shirts of the obvious raincoat among the Uk armed forces. And also with 1911, the actual Southwest Post to your earliest beaten traveller Ronald Amunden deliver vacation apparel produced their own indicate around the planet.

  10. When Rourke’s function from the thriller is held beneath wraps, your history stores at a daredevil courier (Morgan) what person makes a specialty of illegally reproduced transport together with what person gusts of wind right up ensnared among numerous pursuers any time a person shipping and delivery runs bad. Schweiger is placed as the FBI representative. Home Hany AbuAssad (Somewhere warm Currently) can be main your Arclight Motion pictures creation in accordance with any piece of software as a result of Eric Brandt together with Derek Haas.

  11. Section of Beckham’s new purpose will probably be to inspire China’s youth to embrace soccer at a time when the country’s government is trying to grow the sport. シャネル 布 パチ http://www.1webresources.com/布-c-1_8/chanel-布-二つ折り-キルティング-ココマク入り-ピンク-a68600-pk-p6y6-p-65.html/

  12. i purchased this breadmaker those people throughout charcoal and they are attractive! we have always aspired to spend money on final fantasy xiv gil continually doesn’t imply could not desire to layer in your more money. Nevertheless in conclusion relented and its particular the best selection Used to far. my partner wants it on everyone (and do very!) my partner and i find it difficult to hold on to make use of that for our time at San diego county in the future In,)

  13. The greatest method for the men for you to discover right now.

  14. What Each person Ought To Know Regarding bag Marketing

  15. Britain’s Lizzie Neave competes around the women’s K1 kayak slalom heats in the Lee Valley White Water Middle in the 2012 Summer Olympics, Monday, July thirty, 2012, in London. (AP Photo/Victor R. Caivano)
    Cheap Jordan Shoes http://www.sinterfirepatents.com/cheapjordanshoes.html

  16. my spouse and i carry all the powerlevel world of tanks for exclusive temperatures to successfully living aroundFeels excellent appearances outstanding is often worn for every party

  17. Mr Roe, 87, a previous veterinary surgeon, claimed: “We are seeking forward to it and hope she comes out with a gold.”

  18. Mr Roe, 87, a previous veterinary surgeon, said: “We are browsing ahead to it and hope she arrives out using a gold.”

  19. The key reasons why no-one is discussing watch and for that reason exactly what you should implement right away. ナイキ エア クラシックBW http://www.nikesale.biz/nike-air-classic-bw-gen-2brナイキ-エア-クラシックBw-ジェネレーション-jp-2202.html

  20. sZY6YV Thank you for helping out, superb information. In case of dissension, never dare to judge till you ave heard the other side. by Euripides.

  21. KoZeFs wow, awesome article.Really looking forward to read more. Much obliged.

  22. OMj2oq Loving the info on this web site, you ave got done outstanding job on the content.

  23. Very informative article post.Much thanks again. Cool.

  24. You ave made some really good points there. I checked on the net for more information about the issue and found most individuals will go along with your views on this web site.

  25. Thank you, I ave recently been looking for info about this subject for ages and yours is the best I have discovered so far. But, what about the conclusion? Are you sure about the source?

  26. I truly appreciate this article.Thanks Again. Will read on

  27. Some really choice blog posts on this site, saved to favorites.

  28. post. They are very convincing and can certainly work. Nonetheless, the posts are very brief for starters.

  29. This particular blog is definitely cool as well as amusing. I have discovered many handy tips out of this amazing blog. I ad love to visit it over and over again. Cheers!

  30. Usually I do not read post on blogs, but I wish to say that this write-up very pressured me to check out and do it! Your writing taste has been amazed me. Thank you, quite nice article.

  31. I loved your blog. Will read on…

  32. You have made some decent points there. I looked on the net for more info about the issue and found most individuals will go along with your views on this website.

  33. Very neat blog article.Thanks Again. Great.

  34. Thank you for another excellent post. Where else could anybody get that kind of information in such a perfect way of writing? I ave a presentation next week, and I am on the look for such info.

  35. This is one awesome article post.Much thanks again. Awesome.

  36. Awesome blog post.Thanks Again. Great.

  37. Im thankful for the article.Much thanks again. Great.

  38. Thanks for sharing, this is a fantastic article.Really thank you! Awesome.

  39. Thanks so much for the blog post.Really looking forward to read more.

  40. Really appreciate you sharing this blog post.Thanks Again. Awesome.

  41. Thanks a lot for the blog article.Thanks Again. Will read on

  42. usually posts some incredibly fascinating stuff like this. If you

  43. Im thankful for the article.Thanks Again. Awesome.

  44. Say, you got a nice article.Much thanks again.

  45. ThаА аЂа•re is noticeablаАааБТ“ a ton to realize about thаАаб‚Т€Т“аАаб‚Т€а‚.

  46. A big thank you for your blog article.Thanks Again. Cool.

  47. Ms. Kadetskaya is an excellent lawyer. She kept me informed every step of the way concerning my case. She is very knowledgeable.

  48. I loved your article.Thanks Again.

  49. Hey, thanks for the article.Really looking forward to read more. Fantastic.

  50. Thanks a lot for the blog article.Much thanks again. Fantastic.

  51. I really like and appreciate your article. Want more.

  52. Really informative post.Much thanks again.

  53. I really like and appreciate your blog post.Really thank you! Great.

  54. I simply want to tell you that I am just very new to blogging and site-building and definitely loved your web blog. More than likely I’m want to bookmark your website . You actually have wonderful writings. Thanks for sharing your web site.

  55. Major thankies for the blog post.Thanks Again. Really Great.

  56. Awesome article.Thanks Again. Much obliged.

  57. Thanks for sharing, this is a fantastic blog post.Thanks Again. Cool.

  58. Thank you ever so for you blog post.Really thank you! Much obliged.

  59. yeah bookmaking this wasn at a speculative determination outstanding post!.

  60. Major thankies for the blog post.Much thanks again. Will read on

  61. Of course, what a magnificent blog and revealing posts, I definitely will bookmark your website.All the Best!

  62. iOS app developer blues | Craft Cocktail Rules

  63. Really informative post.Much thanks again. Cool.

  64. Thank you for your blog post. Really Cool.

  65. Really enjoyed this article post.Really looking forward to read more. Fantastic.

  66. You have noted very interesting points ! ps nice website. The length of a film should be directly related to the endurance of the human bladder. by Alfred Hitchcock.

  67. Major thanks for the article post.Really looking forward to read more. Keep writing.

  68. Looking forward to reading more. Great blog article.Thanks Again. Awesome.

  69. Many thanks for sharing this good article. Very interesting ideas! (as always, btw)

  70. Wow! Thank you! I continually wanted to write on my website something like that. Can I include a part of your post to my blog?

  71. you know a few of the pictures aren at loading correctly. I am not sure why but I think its a linking issue. I ave tried it in two different browsers and both show the same outcome.

  72. Maybe You Also Make All of these Mistakes With bag ?

  73. Very informative article.Really looking forward to read more. Keep writing.

  74. Thanks for sharing amazing Article.

  75. It is not my first time to visit this web site, i am visiting this site dailly and take pleasant information from here daily.

  76. Thanks for sharing this amazing service

  77. Thanks for the post.Thanks Again. Much obliged.

  78. I value the article.Thanks Again. Cool.

  79. There is clearly a bunch to know about this. I suppose you made some nice points in features also.

  80. Very informative article.Really looking forward to read more.

  81. A big thank you for your post.Much thanks again.

  82. Im grateful for the blog.Thanks Again. Will read on

  83. Really enjoyed this post. Great.

  84. Great, thanks for sharing this article post.Much thanks again.

  85. Thanks for the post. Want more.

  86. Very neat article post.Really thank you! Keep writing.

  87. Awesome post.Thanks Again. Really Cool.

  88. A round of applause for your blog.Really thank you! Much obliged.

  89. Say, you got a nice blog.Thanks Again. Great.

  90. I cannot thank you enough for the blog.Much thanks again. Fantastic.

  91. I really enjoy the blog post. Fantastic.

  92. Thanks so much for the post. Fantastic.

  93. I really enjoy the blog article. Will read on…

  94. QMpEBa Thanks for sharing, this is a fantastic article post. Great.

  95. Muchos Gracias for your post.Really thank you! Awesome.

  96. Thanks for this amaing article.

  97. Major thanks for the blog. Fantastic.

  98. Thanks for the article.

  99. Great, thanks for sharing this blog post.Much thanks again. Really Cool.

  100. Say, you got a nice post. Awesome.

  101. PJKDFK In this article are some uncomplicated ways to jogging a newsletter.

コメントを残す