{"id":161,"date":"2016-10-26T15:41:50","date_gmt":"2016-10-26T06:41:50","guid":{"rendered":"http:\/\/jook.pe.kr\/?p=161"},"modified":"2016-10-26T15:41:50","modified_gmt":"2016-10-26T06:41:50","slug":"mrtg%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ed%8a%b8%eb%9e%98%ed%94%bd-%eb%aa%a8%eb%8b%88%ed%84%b0%eb%a7%81debian-5-0","status":"publish","type":"post","link":"http:\/\/jook.pe.kr\/?p=161","title":{"rendered":"mrtg\ub97c \uc774\uc6a9\ud55c \ud2b8\ub798\ud53d \ubaa8\ub2c8\ud130\ub9c1(debian 5.0)"},"content":{"rendered":"<p><strong>1. mrtg \ud328\ud0a4\uc9c0 \uc124\uce58<\/strong><\/p>\n<p>&#8211; mrtg \uc124\uce58\uc2dc\uc5d0 \ud544\uc694\ud55c gcc, make, g++ \ub4f1\uc758 \ud328\ud0a4\uc9c0\uac00 \uc124\uce58\ub418\uc5b4 \uc788\ub294\uc9c0\ub97c \ud655\uc778\ud558\uace0, \uc124\uce58\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc744 \uacbd\uc6b0\ub294 \uc544\ub798\uc640 \uac19\uc774 \uc124\uce58\ud558\uace0, mrtg \uad6c\ub3d9\uc5d0 \ud544\uc694\ud55c, mrtg, snmp, snmpd \ud328\ud0a4\uc9c0\ub97c \uc124\uce58 \ud55c\ub2e4.<\/p>\n<p>=========================================<br \/>\njook:~# apt-get install gcc make g++<br \/>\njook:~# apt-get install mrtg snmp snmpd<br \/>\n=========================================<\/p>\n<p>mrtg\ub97c \uc124\uce58\ud558\uace0 \ub098\uba74, \uc544\ub798\uc640 \uac19\uc774 5\ubd84\uac04\uaca9\uc73c\ub85c mrtg \uc2a4\ud06c\ub9bd\ud2b8\uac00 \uc2e4\ud589\ub418\ub3c4\ub85d cron\uc5d0 \uc0dd\uc131\ub41c\ub2e4.<br \/>\njook:\/var\/spool# cat \/etc\/cron.d\/mrtg<br \/>\n*\/5 *\u00a0\u00a0 * * *\u00a0\u00a0 root\u00a0\u00a0\u00a0 if [ -x \/usr\/bin\/mrtg ] &amp;&amp; [ -r \/etc\/mrtg.cfg ]; then env LANG=C \/usr\/bin\/mrtg \/etc\/mrtg.cfg &gt;&gt; \/var\/log\/mrtg\/mrtg.log 2&gt;&amp;1; fi<br \/>\n<strong>2. snmpd.conf \ud30c\uc77c \uc124\uc815<\/strong><\/p>\n<p>\/etc\/snmp\/snmpd.conf \uc5d0\uc11c community \uc124\uc815\ubd80\ubd84\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc218\uc815\ud558\uace0 snmp \ub370\ubaac\uc744 \ub9ac\uc2a4\ud0c0\ud2b8 \ud55c\ub2e4.<\/p>\n<p>=====================================<br \/>\n# sec.name source community<br \/>\n# com2sec paranoid default public<br \/>\ncom2sec readonly default public<br \/>\n#com2sec readwrite default private<br \/>\n=====================================<\/p>\n<p>===============================================<br \/>\njook:~# \/etc\/init.d\/snmpd restart<br \/>\nRestarting network management services: snmpd.<br \/>\njook:~#<br \/>\n===============================================<br \/>\n<strong>3. mrtg.cfg \ud30c\uc77c \uc0dd\uc131<\/strong><\/p>\n<p>cfgmaker \uba85\ub839\uc73c\ub85c mrtg \uc124\uc815\ud30c\uc77c\uc744 \uc0dd\uc131\ud55c\ub2e4.<br \/>\n==================================================<br \/>\njook:~# cfgmaker <a href=\"mailto:public@localhost\">public@localhost<\/a> &gt; \/etc\/mrtg.cfg<br \/>\n==================================================<\/p>\n<p>\uc704\uc640 \uac19\uc774 \ud560 \uacbd\uc6b0\ub294 default \uc124\uc815\uc73c\ub85c \uc0dd\uc131\ub418\uba70, \uc544\ub798\uc640 \uac19\uc774 \uc635\uc158\uc0ac\ud56d\uc744 \ucd94\uac00\ud558\uc5ec mrtg.cfg \ud30c\uc77c\uc744 \uc0dd\uc131 \ud560 \uc218\ub3c4 \uc788\ub2e4.<\/p>\n<p>====================================================================================================================================<br \/>\njook:~# cfgmaker -global &#8220;WorkDir: \/var\/www\/mrtg\/&#8221; -global &#8220;Options[_]: growright,bits&#8221; -ifref=ip <a href=\"mailto:public@localhost\">public@localhost<\/a> &gt; \/etc\/mrtg.conf<br \/>\n====================================================================================================================================<\/p>\n<p>-global WorkDir: \/var\/www\/mrtg\/\u00a0\u00a0 -&gt; mrtg \uc2e4\ud589\uacb0\uacfc \uc0dd\uc131\ub418\ub294 \uc6f9\ud398\uc774\uc9c0 \ud30c\uc77c\uc774 \uc800\uc7a5\ub420 \ub514\ub809\ud1a0\ub9ac\uacbd\ub85c \uc124\uc815<br \/>\n-global Options[_]: growright,bits\u00a0 -&gt; growright\ub294 \uc624\ub978\ucabd\uc5d0\uc11c\ubd80\ud130 \uadf8\ub798\ud504\uac00 \uc0dd\uc131\ub41c\ub2e4\ub294 \ub73b\uc774\uba70, bits\ub294 \ub2e8\uc704\ub97c bit\ub85c \ud574\uc11c \uadf8\ub798\ud504\ub97c \uadf8\ub9b0\ub2e4\ub294 \ub73b\uc774\ub2e4.<br \/>\n-ifref=ip\u00a0 -&gt; interface references\ub97c ip\ub85c \ub098\ud0c0\ub098\ub3c4\ub85d \uc124\uc815<br \/>\n<strong>4. mrtg index \ud30c\uc77c \uc0dd\uc131<\/strong><\/p>\n<p>indexmaker \uba85\ub839\uc73c\ub85c index.html \ud30c\uc77c\uc744 \uc0dd\uc131\ud55c\ub2e4. index \ud30c\uc77c\uc740 mrtg \ud648\ub514\ub809\ud1a0\ub9ac\ub0b4\uc5d0 \uc0dd\uc131\ub418\ub3c4\ub85d \uc124\uc815\uc744 \ud55c\ub2e4.<\/p>\n<p>===================================================================<br \/>\njook:\/var\/www# indexmaker \/etc\/mrtg.cfg &gt; \/var\/www\/mrtg\/index.html<br \/>\n===================================================================<br \/>\n<strong>5. \uac00\uc0c1\ud638\uc2a4\ud2b8 \uc124\uc815 \ud6c4, \uc6f9\uc0c1\uc5d0\uc11c mrtg \uadf8\ub798\ud504 \ud655\uc778<\/strong><\/p>\n<p>\/var\/www\/mrtg \ub514\ub809\ud1a0\ub9ac\ub97c <a href=\"http:\/\/mydomain.com\/mrtg\">http:\/\/mydomain.com\/mrtg<\/a> \ub610\ub294 <a href=\"http:\/\/mrtg.mydomain.com\/\">http:\/\/mrtg.mydomain.com<\/a> \ub4f1\uc73c\ub85c \uc811\uc18d\uc774 \uac00\ub2a5\ud558\ub3c4\ub85d apache \uac00\uc0c1\ud638\uc2a4\ud2b8\ub97c \uc124\uc815\ud55c\ub2e4.<\/p>\n<p>\ucd5c\ucd08 \uc124\uce58\uc2dc\uc5d0\ub294 mrtg \uc2a4\ud06c\ub9bd\ud2b8\uac00 \uc2e4\ud589\ub418\uc9c0 \uc54a\uc544\uc11c \uadf8\ub798\ud504\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \ubcf4\uc774\uc9c0 \uc54a\uc744\uc218 \uc788\ub2e4. \uc774\ub7f0\uacbd\uc6b0\ub294 cron\uc5d0 \ub4f1\ub85d\ub41c mrtg \uc2e4\ud589 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc218\ub3d9\uc73c\ub85c 3\ud68c \uc2e4\ud589\uc2dc\ud0a4\uac70\ub098, 15\ubd84 ~ 20\ubd84 \uc815\ub3c4 \uacbd\uacfc\ud55c \ud6c4\uc5d0 mrtg \uadf8\ub798\ud504\ub97c \ud655\uc778 \ud55c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. mrtg \ud328\ud0a4\uc9c0 \uc124\uce58 &#8211; mrtg \uc124\uce58\uc2dc\uc5d0 \ud544\uc694\ud55c gcc, make, g++ \ub4f1\uc758 \ud328\ud0a4\uc9c0\uac00 \uc124\uce58\ub418\uc5b4 \uc788\ub294\uc9c0\ub97c \ud655\uc778\ud558\uace0, \uc124\uce58\ub418\uc5b4 \uc788\uc9c0 \uc54a\uc744 \uacbd\uc6b0\ub294<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"_links":{"self":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/161"}],"collection":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":0,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"wp:attachment":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}