How to setup SNMP for ESX4.1

We have several ESX4.1 servers that we would like to monitor remotely and I understand that we can do this through SNMP.   Unfortunatly all I can find is esx4.0 or esxi instructions.
Since this is normal, I am assuming that it is a straight forward config.
The end goal is to have it send alerts to an windows 7 box.
LVL 2
brian_appliedcpuAsked:
Who is Participating?
 
coolsport00Commented:
Searched around a while and didn't find anything on that error "brian_appliedcpu". 1 person did in & posted in VMware Communities:
http://communities.vmware.com/thread/263597, but seems didn't really get an answer. There was a SNMP whitepaper reference: http://www.vmware.com/pdf/vsp_4_snmp_config.pdf. Not sure that'll provide much more info. Your best bet is more than likely to use the Datacenter Guide I provided to utilize vCenter to configure your SNMP traps. If I come across an answer (may plug CLI guru Alan Renouf to see if he knows what the error is from), I'll let you know.

Regards,
~coolsport00
0
 
coolsport00Commented:
VMware's KB should provide the assistance you need:
http://kb.vmware.com/kb/1008065

Regards,
~coolsport00
0
 
brian_appliedcpuAuthor Commented:
We are using VCenter and do not use the CLI.

I have already seen that I need to edit the snmpd.xml
but am unsure about what information goes where.

config><snmpSettings><enable>true</enable>
<communities>public</communities>
<target>public </targets>
<port>167</port>
</snmpSettings></config>

I just don't see any clear instructions.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
coolsport00Commented:
Ok...well, pg. 129 of the Datacenter Adm Guide I think provides assistance with those using vCenter:
http://www.vmware.com/pdf/vsphere4/r41/vsp_41_dc_admin_guide.pdf

Hope that helps.

~coolsport00
0
 
brian_appliedcpuAuthor Commented:
Okay...we will give this a try.
Question though:

 From the vSphere CLI, type
vicfg-snmp.pl --server hostname --username username --password password -c com1.
Replace com1 with the community name you wish to set. Each time you specify a community
What host/username/password am i specifying?  the esx server, root, pw or the snmp mgt server receiving the traps?
0
 
coolsport00Commented:
It should be the ESXi host root/pwd because that is the host you're requiring data/traps from.
0
 
brian_appliedcpuAuthor Commented:
Did this...where 118.20 is my windows 7 machine setup to capture the traps.

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server 192.
168.118.95 --username root --password pasxxxx -t 192.168.118.20@162/public
Changing notification(trap) targets list to: 192.168.118.20@162/public...
Complete.

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server 192.
168.118.95 --username root --password pasxxxx --enable
Enabling agent...
Failed : A general system error occurred: Bind socket(af=2) failed, reason: 98,
Address already in use
0
 
prak_seafarerCommented:
install a vcenter server on any 64bit windows machine and configure vcenter to send the snmp traps.

simple and strait forward
0
 
brian_appliedcpuAuthor Commented:
Any additional informatio would be appreciated
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.