報錯:vim
root@localhost mnt]# ./check_traffic.sh -V 2c -C public -H 127.0.0.1 -Lide
List Interface for host 127.0.0.1.this
Interface index = No Such Object available on this agent at this OIDit
解決:class
vim /etc/snmp/snmpd.confoauth
修改兩處:List
一處:im
access notConfigGroup "" any noauth exact all none nonedi
或者view
access notConfigGroup "" any noauth exact mib2 none none
二處:
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc