2012년 2월 14일 화요일

MRTG 소스 설치


■ MRTG 소스 설치

[root@linucle local]# tar zxvf mrtg-2.10.8.tar.gz압축풀기
[root@linucle local]# cd mrtg-2.10.8
[root@linucle mrtg-2.10.8]# ./configure
                       ‥
                       ‥
                       ‥
                       ‥
                       ‥
-------------------------------------------------------------
Config is DONE!
Type 'make' to compile the software
       ... that wishlist mentioned above does really exist. So if
you feel like showing your appreciation for MRTG, this is the
place to go. I just love CDs and DVDs
                            -- Tobi Oetiker <oetiker@ee.ethz.ch>
-------------------------------------------------------------
[root@linucle mrtg-2.10.8]# make && make install

  ※ 참 고 Enterprise 4 ES 전체설치된 경우 mrtg 와 net-snmp 만 설치하면 되지만
다음과 같은 패키지들이 기본적으로 mrtg에 필요한 패키지들이다.

perl , zlib, libpng, gd, freetype, jpeg

만약 설치 되어있지 않으면 소스나 rpm 패키지를 받아 설치한다.
그리고 소스 설치된 경우 mrtg 설치시
./configure --with-zlib=/usr/local/zlib/  과 같이 설치된 경로를 지정해주어 연동시켜야한다.

■· net-snmp 소스 설치 

[root@linucle src]# tar zxvf net-snmp-5.0.10.2.tar.gz
[root@linucle src]# cd net-snmp-5.0.10.2[root@linucle net-snmp-5.0.10.2]# ./configure
   ·
   ·
         ************** Configuration Section **************
        You are about to be prompted with a series of questions.  Answer
them carefully, as they determine how the SNMP agent and related
applications are to function.
-Press return to continue-
*** Default SNMP Version:
Default version of SNMP to use (3): 2snmp 버전을 지정한다 [1-3]
setting Default version of SNMP to use to...  2checking System Contact Information...
*** System Contact Information:
System Contact Information (root@): bluetree75@naver.com
관리자 email 주소를 지정해준다.setting System Contact Information to...  bluetree75@naver.com
checking System Location...
*** System Location:
System Location (Unknown): korea주소를 지정해준다.setting System Location to...  korea
checking Location to write logfile...
*** Logfile location:
Location to write logfile (/var/log/snmpd.log):
log 화일의 위치와 이름를 지정해준다.setting Location to write logfile to...  /var/log/snmpd.log
checking Location to write persistent information...
 위의 항목들은 입력하지않고 엔터를 쳐두 된다.
   ·
   ·
---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------
  Net-SNMP Version:           5.0.10.2
  Building for:               linux
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules:    usm
  Agent MIB code:             mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES128 AES192 AES256
---------------------------------------------------------
[root@linucle net-snmp-5.0.10.2]# make && make install
[root@linucle net-snmp-5.0.10.2]# cp EXAMPLE.conf /usr/local/share/snmp/snmpd.conf

환경설정 파일은 snmpd.conf를 설치디렉토리에 EXAMPLE.conf를 복사해서 생성한다.