{"id":399,"date":"2017-01-29T00:35:51","date_gmt":"2017-01-28T15:35:51","guid":{"rendered":"https:\/\/blog.chanha.me\/?p=399"},"modified":"2017-03-13T21:55:09","modified_gmt":"2017-03-13T12:55:09","slug":"%eb%aa%a8%eb%8b%88%ed%84%b0%eb%a7%81-%ea%b5%ac%ec%b6%95-munin-%ec%84%a4%ec%b9%98-%eb%b0%8f-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.chanha.kr\/?p=399","title":{"rendered":"\ubaa8\ub2c8\ud130\ub9c1 \uad6c\ucd95( Munin ) \uc124\uce58 \ubc0f \uc124\uc815\ud558\uae30"},"content":{"rendered":"<p>\uc774\uba54\uc77c\uc744 \ud1b5\ud55c Smartctl\uc54c\ub9bc \uc124\uc815\uacfc SSH\uc6d0\uaca9\uc811\uc18d\uc744 \ud1b5\ud574 \ub514\uc2a4\ud06c\uc758 \uc0c1\ud0dc\ub4f1\uc744 \uc54c\uc544\ubcfc \uc218 \uc788\uc9c0\ub9cc<\/p>\n<p>Munin\uc774\ub77c\ub294 \ud328\ud0a4\uc9c0\ub97c \uc774\uc6a9\ud574\uc11c \uc6f9\uc0ac\uc774\ud2b8\ub97c \uc774\uc6a9\ud574\uc11c \uc2e4\uc2dc\uac04\uc73c\ub85c NAS\ub97c \ubaa8\ub2c8\ud130\ub9c1\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>\uc774\ub97c \uc774\uc6a9\ud558\uae30 \uc704\ud574\uc11c<\/p>\n<pre class=\"lang:sh decode:true code\">apt-get install munin munin-node<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud574\uc900\ub2e4. \uadf8 \ud6c4,<\/p>\n<pre class=\"lang:sh decode:true code\">sudo vim \/etc\/munin\/munin.conf<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574 munin\uc124\uc815\ud30c\uc77c\uc744 \uc5f4\uc5b4\uc900 \ub4a4,<\/p>\n<pre class=\"lang:sh decode:true\">dbdir \/var\/lib\/munin\r\nhtmldir \/var\/cache\/munin\/www\r\nlogdir \/var\/log\/munin\r\nrundir \/var\/run\/munin<\/pre>\n<p>\ubd80\ubd84\uc758 \uc8fc\uc11d\uc744 \uc81c\uac70\ud574 \uc900\ub2e4.<\/p>\n<pre class=\"lang:default decode:true\">graph_strategy cgi\r\nhtml_strategy cgi\r\ncgiurl_graph \/cgi-bin\/munin-cgi-graph<\/pre>\n<p>\uadf8\ub798\ud504 \ud655\ub300\uae30\ub2a5\uc744 \uc774\uc6a9\ud558\ub824\uba74 \uc704\uc758 \ucf54\ub4dc\ub97c \ucd94\uac00\ud574\uc900\ub2e4.<\/p>\n<blockquote><p>\uc790\uc138\ud55c \uc124\uc815\uc740\u00a0<a href=\"https:\/\/raymii.org\/s\/tutorials\/Munin_optimalization_on_Debian.html\" target=\"_blank\">Munin optimalization on Debian<\/a>\ub97c \ucc38\uace0\ud558\uae30 \ubc14\ub780\ub2e4.<\/p><\/blockquote>\n<p>\uadf8 \ud6c4,<\/p>\n<pre class=\"lang:sh decode:true \">sudo \/etc\/apache2\/sites-available\/munin.conf<\/pre>\n<p>\ub97c \ud1b5\ud574 apache conf\ud30c\uc77c\uc744 \uc0dd\uc131\ud55c \ub4a4<\/p>\n<pre class=\"lang:apache decode:true\">&lt;VirtualHost *:80&gt;\r\n ServerName &lt;\ub3c4\uba54\uc778 \uc774\ub984&gt;\r\n ServerAlias munin\r\n Alias \/static \/var\/cache\/munin\/www\/static\r\n Alias \/munin \/var\/cache\/munin\/www\r\n Documentroot \/var\/cache\/munin\/www\r\n\r\n &lt;Directory \"\/var\/cache\/munin\/www\/\"&gt;\r\n Order allow,deny\r\n Allow from all\r\n AllowOverride None\r\n options FollowSymLinks SymLinksIfOwnerMatch\r\n AuthUserFile webdav.pwd\r\n AuthName \"WebDAV\"\r\n AuthType Basic\r\n require user &lt;\uc720\uc800\uc774\ub984&gt;\r\n &lt;\/Directory&gt;\r\n\r\n &lt;IfModule !mod_rewrite.c&gt;\r\n # required because we serve out of the cgi directory and URLs are relative\r\n Alias \/munin-cgi\/munin-cgi-html\/static \/var\/cache\/munin\/www\/static\r\n RedirectMatch ^\/$ \/munin-cgi\/munin-cgi-html\/\r\n &lt;\/IfModule&gt;\r\n\r\n &lt;IfModule mod_rewrite.c&gt;\r\n # Rewrite rules to serve traffic from the root instead of \/munin-cgi\r\n RewriteEngine On\r\n\r\n RewriteRule ^\/(.*)\/static\/(.*) \/static\/$2 [L,R]\r\n\r\n # Static files\r\n RewriteRule ^\/favicon.ico \/var\/cache\/munin\/www\/static\/favicon.ico [L]\r\n RewriteRule ^\/static\/(.*) \/var\/cache\/munin\/www\/static\/$1 [L]\r\n\r\n # HTML\r\n RewriteRule ^(\/.*\\.html)?$ \/munin-cgi\/munin-cgi-html\/$1 [PT]\r\n\r\n # Images\r\n RewriteRule ^\/munin-cgi\/munin-cgi-graph\/(.*) \/$1\r\n RewriteCond %{REQUEST_URI} !^\/static\r\n RewriteRule ^\/(.*.png)$ \/munin-cgi\/munin-cgi-graph\/$1 [L,PT]\r\n &lt;\/IfModule&gt;\r\n\r\n # Ensure we can run (fast)cgi scripts\r\n ScriptAlias \/munin-cgi\/munin-cgi-graph \/usr\/lib\/munin\/cgi\/munin-cgi-graph\r\n &lt;Location \/munin-cgi\/munin-cgi-graph&gt;\r\n Options +ExecCGI\r\n &lt;IfModule mod_fcgid.c&gt;\r\n SetHandler fcgid-script\r\n &lt;\/IfModule&gt;\r\n &lt;IfModule mod_fastcgi.c&gt;\r\n SetHandler fastcgi-script\r\n &lt;\/IfModule&gt;\r\n &lt;IfModule !mod_fastcgi.c&gt;\r\n &lt;IfModule !mod_fcgid.c&gt;\r\n SetHandler cgi-script\r\n &lt;\/IfModule&gt;\r\n &lt;\/IfModule&gt;\r\n Order allow,deny\r\n Allow from all\r\n AllowOverride None\r\n Options FollowSymLinks SymLinksIfOwnerMatch\r\n AuthUserFile webdav.pwd\r\n AuthName \"WebDAV\"\r\n AuthType Basic\r\n require user &lt;\uc720\uc800\uc774\ub984&gt;\r\n\r\n # Replace above with \"Require all granted\" if running apache 2.4\r\n &lt;\/Location&gt;\r\n\r\n ScriptAlias \/munin-cgi\/munin-cgi-html \/usr\/lib\/munin\/cgi\/munin-cgi-html\r\n &lt;Location \/munin-cgi\/munin-cgi-html&gt;\r\n Options +ExecCGI\r\n &lt;IfModule mod_fcgid.c&gt;\r\n SetHandler fcgid-script\r\n &lt;\/IfModule&gt;\r\n &lt;IfModule mod_fastcgi.c&gt;\r\n SetHandler fastcgi-script\r\n &lt;\/IfModule&gt;\r\n &lt;IfModule !mod_fastcgi.c&gt;\r\n &lt;IfModule !mod_fcgid.c&gt;\r\n SetHandler cgi-script\r\n &lt;\/IfModule&gt;\r\n &lt;\/IfModule&gt;\r\n Order allow,deny\r\n Allow from all\r\n AllowOverride None\r\n Options FollowSymLinks SymLinksIfOwnerMatch\r\n AuthUserFile webdav.pwd\r\n AuthName \"WebDAV\"\r\n AuthType Basic\r\n require user &lt;\uc720\uc800\uc774\ub984&gt;\r\n\r\n # Replace above with \"Require all granted\" if running apache 2.4\r\n &lt;\/Location&gt;\r\n\r\n &lt;IfModule !mod_rewrite.c&gt;\r\n &lt;Location \/munin-cgi\/munin-cgi-html\/static&gt;\r\n # this needs to be at the end to override the above sethandler directives\r\n Options -ExecCGI\r\n SetHandler None\r\n &lt;\/Location&gt;\r\n &lt;\/IfModule&gt;\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\uc744 \ucd94\uac00\ud574\uc900\ub4a4 \uc800\uc7a5\ud55c\ub2e4.<\/p>\n<blockquote><p>AuthUserFile webdav.pwd<br \/>\nAuthName &#8220;WebDAV&#8221;<br \/>\nAuthType Basic<br \/>\nrequire valid-user<\/p>\n<p>\uc778 \ubd80\ubd84\uc774 \uc788\ub294\ub370 \uc774\ub294 \uc774\uc804\uc5d0 WebDAV\ub77c\ub294 Passwd\ud30c\uc77c\uc744 \uc0dd\uc131\ud588\uae30\ub54c\ubb38\uc5d0<\/p>\n<p>\uadf8\ub97c \uc774\uc6a9\ud574 \uc801\uc6a9\ud588\uc9c0\ub9cc \ub9cc\uc57d WebDAV\ub97c \uac74\ub108\ub6f0\uc5c8\uac70\ub098 \uc0c8\ub85c\uc6b4 \uacc4\uc815\uc744 \ud1b5\ud574 \uc811\uc18d\ud558\uace0 \uc2f6\ub2e4\uba74<\/p>\n<p><a href=\"https:\/\/blog.chanha.me\/?p=310\" target=\"_blank\">\uc774 \uacf3<\/a>\uc744 \ucc38\uace0\ud574 \uc0c8\ub85c \uc0dd\uc131\ud558\uae30 \ubc14\ub780\ub2e4.<\/p><\/blockquote>\n<p>\uadf8 \ud6c4<\/p>\n<pre class=\"lang:sh decode:true\">sudo a2ensite munin.conf\r\nsudo \/etc\/init.d\/apache2 restart<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c munin\uc744 \ud65c\uc131\ud654 \uc2dc\ucf1c\uc900\ub4a4 \uc544\ud30c\uce58\ub97c \uc7ac\uc2dc\uc791\uc2dc\ucf1c\uc900\ub2e4.<\/p>\n<p>\uadf8 \ud6c4 \u00a0<a href=\"https:\/\/blog.chanha.me\/?p=337\" target=\"_blank\">HTTPS\uc124\uc815<\/a>\uc744 \ucd94\uac00\uc801\uc73c\ub85c \ud574\uc8fc\uba74 \ubaa8\ub4e0 \uc124\uc815\uc774 \uc644\ub8cc\ub41c\ub2e4.<\/p>\n<div class='ez_cc_license_block'><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><img decoding=\"async\" alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http:\/\/i.creativecommons.org\/l\/by-nc-sa\/4.0\/88x31.png\"\/><\/a><br\/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License<\/a>.<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\uba54\uc77c\uc744 \ud1b5\ud55c Smartctl\uc54c\ub9bc \uc124\uc815\uacfc SSH\uc6d0\uaca9\uc811\uc18d\uc744 \ud1b5\ud574 \ub514\uc2a4\ud06c\uc758 \uc0c1\ud0dc\ub4f1\uc744 \uc54c\uc544\ubcfc \uc218 \uc788\uc9c0\ub9cc Munin\uc774\ub77c\ub294 \ud328\ud0a4\uc9c0\ub97c \uc774\uc6a9\ud574\uc11c \uc6f9\uc0ac\uc774\ud2b8\ub97c \uc774\uc6a9\ud574\uc11c \uc2e4\uc2dc\uac04\uc73c\ub85c NAS\ub97c \ubaa8\ub2c8\ud130\ub9c1\ud560 \uc218 \uc788\ub2e4. \uc774\ub97c \uc774\uc6a9\ud558\uae30 \uc704\ud574\uc11c apt-get install munin munin-node \uba85\ub839\uc5b4\ub97c \ud1b5\ud574\uc11c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud574\uc900\ub2e4. \uadf8 \ud6c4, sudo vim \/etc\/munin\/munin.conf \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 munin\uc124\uc815\ud30c\uc77c\uc744 \uc5f4\uc5b4\uc900 \ub4a4, dbdir \/var\/lib\/munin htmldir \/var\/cache\/munin\/www logdir \/var\/log\/munin rundir \/var\/run\/munin \ubd80\ubd84\uc758 \uc8fc\uc11d\uc744 \uc81c\uac70\ud574 \uc900\ub2e4. graph_strategy cgi html_strategy cgi cgiurl_graph \/cgi-bin\/munin-cgi-graph [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-nas","clearfix"],"_links":{"self":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=399"}],"version-history":[{"count":7,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":472,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions\/472"}],"wp:attachment":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}