Note: This worked on ESXi server 5.5
Open Putty and login to the EXSi server as root
esxcli system snmp set -c snmpstring
esxcli system snmp set -e true snmpstring – This snmpstring is your custom string. you can add whatever thing you like. Make sure you give snmp string on the monitoring server and ESXi server are same.