How-To: Setup SNMP on ESX 3.5 Servers

To monitor your ESX 3.5 server by using SNMP, we need to enable SNMP on ESX before adding it to your monitoring software. This How-To will show you the steps involved.

 

Log Into ESX Server

media-1235427473105.png

Log into your ESX Server either through SSH or through the console of the server.

Use Nano to Edit Snmpd.conf

media-1235427595706.png

Use Nano (which is a notepad like text editor) to edit the file /etc/snmp/snmpd.conf file by using the command:
nano /etc/snmp/snmpd.conf

Add SNMP Community to Config File

media-1235427774660.png

Use the arrow keys to go down to the section “rocommunity public”. Replace “public” with your community string for your environment (1). Then use “Ctrl+X” to exit out of Nano. You’ll be asked if you would like to save. Type in “y” for yes and hit enter. Press enter again when confirming the filename to save as.

Enable SNMP to Start Automatically After a Reboot

media-1235428097675.png

Since SNMP is not started by default, you’ll need to type in this command to ensure it will be started after a reboot of the ESX server. The command is:
chkconfig snmpd on

Enable SNMP Through the ESX Firewall

media-1235428204838.png

We’ll need to allow SNMP traffic through the built-in ESX firewall. To do this, type in the following command:
esxcfg-firewall -e snmpd

Start the SNMP Service

media-1235428286191.png

Now we’re ready to start the SNMP service. Type in:
service snmpd start

Ready for Monitoring

At this point, SNMP is enabled on your ESX 3.5 server and you can monitor it using your SNMP monitoring software! Happy monitoring!

This entry was posted in Manuals & How-To's, Virtualization, VMware and tagged , by virtualdennis. Bookmark the permalink.

About virtualdennis

I have over 18 years helping small to large enterprise businesses nationwide with their enterprise storage, backup and recovery, disaster recovery and system virtualization solutions. He holds numerous storage and virtualization certifications and has personally delivered over 300 complex enterprise solution implementations. He has been privileged to speak at various national events on the topics of datacenter virtualization, end-user virtualization, hyper-converged infrastructure and disaster recovery.

5 thoughts on “How-To: Setup SNMP on ESX 3.5 Servers

  1. If you need information regarding the ESX MIBs, you can find it in the VI3 Admin Guide:

    Click to access vi3_35_25_admin_guide.pdf

    If you simply need to enable SNMP traps to your monitoring solution (used in conjunction with Virtual Center alert notification), you can find this in the VI Client under the menu: Administration > VirtualCenter Management Server Configuration

  2. Pingback: All Things SNMP | Information Technology Enthusiast

  3. Pingback: Our Blog – 2010 in Review «

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s