2011年11月2日 星期三

CentOS 5.6 install MRTG(Webmin)

1.#yum -y install net-snmp net-snmp-utils mrtg
2.進入webmin MultiRouterTrafficGrapher>MRTG Configuration>Run
如果出現下方ERROR......line 352錯誤訊息請進行下列更改...
#vi /etc/snmp/snmpd.conf
把第89行#拿掉
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
在第62行修改
access notConfigGroup "" any noauth exact systemview none none
變成
access notConfigGroup "" any noauth exact mib2 none none
#service snmpd restart
3.webmin MultiRouterTrafficGrapher>MRTG Configuration>Delete File
4.webmin MultiRouterTrafficGrapher>MRTG Configuration>Add Host
5.webmin MultiRouterTrafficGrapher>MRTG Configuration>Run
6.View WorkDir:/var/www/mrtg是否有相關html出現

#vi /etc/mrtg/webmin.cfg
RunAsDaemon: Yes
Interval: 5