如果您是參考這一篇安裝的話:
http://www.study-area.org/tips/mrtg.htm
要注意的是,依照這篇的/etc/snmp/snmpd.conf 設定有一行是:
com2sec local localhost netadmin
會導致 snmpwalk 正常因為回傳的是 localhost 的資料,所以當您在下:
cfgmaker –global ‘WorkDir: /var/www/html/mrtg’ \
–global ‘Options[_]: bits,growright’ \
–global ‘Language: big5’ \
–output /etc/mrtg/mrtg.cfg \
netadmin@your.machine.name
會產生 No Response 的訊息,這時您可以把 netadmin@your.machine.name 改為 netadmin@localhost 即可,或是再去修改 /etc/snmp/snmpd.conf 的 com2sec 的參數。
另外我的 /etc/snmp/snmpd.conf 列在下面給大家看,有興趣直接用就可以了,不用 # 那邊消來消去,改來改去。
# sed ‘s/#.*$//’ snmpd.conf | grep -v ‘^$’
com2sec local localhost netadmin
com2sec mynetwork 192.168.100.0/24 netadmin
group MyRWGroup v1 local
group MyROGroup v1 mynetwork
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view all included .1 80
access MyROGroup “” any noauth prefix all none none
access MyRWGroup “” any noauth prefix all all all
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat