um -y install net-snmp*
rpm -y install mrtg
useradd mrtg -s /bin/false
cd /free/home/mrtg/html
### public은 컴뮤니티 네임이다 snmp.conf 파일의 communit name을 변경가능
cfgmaker public@localhost > mrtg.cfg
vi mrtg.cfg
====================== 아래 내용기입===========
WorkDir: /free/home/mrtg/html
Language: korean
Options[_]: growright
================================================
indexmaker –output=/free/home/mrtg/html/index.html mrtg.cfg
mrtg mrtg.cfg
#### 5분마다 갱신되기 위하여 스크립트 작성
vi /shell/mrtg
#!/bin/bash
/usr/bin/mrtg /free/home/mrtg/html/mrtg.cfg > /dev/null 2>&1
#### 권한 변경
chmod 700 /shell/mrtg
#### crontab 등록
crontab -e
*/5 * * * * /shell/mrtg