/etc/snmp/snmpd.conf
-----------------------------------------------------
# Sample snmpd.conf containing VMware MIB module entries.
# This is a simple snmpd.conf that may help you test SNMP.
# It is not recommended for production use. Consult the
# snmpd.conf(5) man pages to set up a secure installation.
syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)
rocommunity public
trapcommunity public
trapsink localhost
# VMware MIB modules. To enable/disable VMware MIB items
# add/remove the following entries.
#dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so
proxy -v1 -c public udp:127.0.0.1:171 .1.3.6.1.4.1.6876
proxy -v2c -c public udp:127.0.0.1:171 .1.3.6.1.4.1.6876
#extend df /bin/df -k
-----------------------------------------------------------
/etc/vmware/snmp.xml
-----------------------------------------------------------
<config>
<snmpSettings>
<communities>public</communities>
<enable>true</enable>
<port>171</port>
<targets>IP address@162 private</targets> (或IP@162/public)
</snmpSettings>
</config>
-------------------------------------------------------
service mgmt-vmware restart
service snmpd restart
沒有留言:
張貼留言