It’s mandatory to active SNMP (Simple Network Monitoring Protocol) to monitor your ESXi server health and status. To enable SNMP on your ESXi, follow the steps below.

  1. First, you have to Start the SNMP Service by login to Vmware ESXi. To do that open your vSphere Client and login: Vmware Esxi login

2. After login Select the Server Hostname or IP address and then Select “Configuration” tab as shown in the picture below. In the Configuration tab Select “Security Profile” and then click “Properties…”

3. Click snmpd from the Service Properties window and click “Options…” button

4. Finally, Select the “Start and Stop with host” radio button, then click “Start” button and click “OK”

Start or stop snmp in vmware esxi

 

After finish, this 4 steps above you have successfully started the SNMP service in your VMware ESXi host. Now its time to configure the SNMP via SSH to set up the community string, firewall and restart the service.

Different ESXi version needs different command sets. Please check your ESXi version and execute the commands. You can do it by SSH the VMware ESXi Server or with vSphere command line interface.

Enable SNMP on VMware ESXi 5.0

Execute the following commands. Replace YOUR_STRING with your desired community string. your_username and your_password correspond to your vSphere username and password, respectively.

vicfg-snmp.pl --server hostname --username your_username --password your_password -c YOUR_STRING
vicfg-snmp.pl --server hostname --username your_username --password your_password -p 161
vicfg-snmp.pl --server hostname --username your_username --password your_password --enable

Enable SNMP on VMware ESXi 5.5

Execute the following commands. Replace YOUR_STRING with your desired community string.

esxcli system snmp set --communities YOUR_STRING
esxcli system snmp set --enable true
esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true
esxcli network firewall ruleset set --ruleset-id snmp --enabled true
/etc/init.d/snmpd restart

Enable SNMP on VMwareESXi 6.x

Execute the following commands. Replace YOUR_STRING with your desired community string.

esxcli system snmp set -r
esxcli system snmp set -c YOUR_STRING
esxcli system snmp set -p 161
esxcli system snmp set -L "City, State, Country"
esxcli system snmp set -C [email protected]
esxcli system snmp set -e yes

You are all done. Your ESXi server is now discovered by your monitoring system.