80 likes | 244 Views
CNL Lab6 snmpwalk & ntop & munin. B97902059 資工三 趙祈鈞. 1.snmpwalk. apt-get install snmp snmpd vim /etc/ snmp / snmpd.conf add “ rocommunity public” /etc/ init.d / snmpd restart Usage: snmpwalk -v 1 -c public [host] [ oid ] OIDs: http://ppt.cc/zwl3 Ex: CPU 5 minute Load
E N D
CNL Lab6snmpwalk&ntop & munin B97902059 資工三 趙祈鈞
1.snmpwalk • apt-get install snmpsnmpd • vim /etc/snmp/snmpd.conf • add “rocommunity public” • /etc/init.d/snmpd restart • Usage: snmpwalk -v 1 -c public [host] [oid] • OIDs: http://ppt.cc/zwl3 • Ex: CPU 5 minute Load • snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.10.1.3.2
2.ntop configuration • wgethttp://sourceforge.net/projects/ntop/files/ntop/3.2/ntop-3.2.tgz • 解壓縮:tar zxvf ntop-3.2.tgz • cd ntop-3.2並開始安裝 • ./configure • make • make install • 設定密碼:/usr/local/bin/ntop –A • 啟動:/usr/local/bin/ntop -d -L -i "eth0,eth1"
2.ntop configuration(Cont.) • 測試:http://cnl2011-10.csie.org:3000/ • 如果有問題的話: • ps -A | grepntop找出該ntop的process_id • Kill -9 process_id • 重新啟動ntop • ntop監測AP: http://goo.gl/natjR • P.s. 曾經想裝比ntop-3.2更新的版本,如4.0 但需求的套件實在太多了裝都裝不完
3.Munin configuration • apt-get install munin • 修改 /etc/munin/munin.conf • htmldir /var/www/munin • 拿掉#tmpldir/etc/…前的# • [ ooxx ] => [cnl2011-10.csie.org] • mkdir /var/www/munin • chownmunin:munin /var/www/munin/ • service munin-node restart
3.Munin configuration(Cont.) • 測試: http://cnl2011-10.csie.org/munin/ • Q: forbidden? • A:修改 /etc/munin/apache.conf • Deny => Allow