Ensure that the SNMP configuration exists at /etc/vmware/snmp.xml and looks similar to:
<config>
<snmpSettings>
<communities>public</communities>
<enable>true</enable>
</snmpSettings>
</config>
Ensure that there are no white spaces or extra line breaks in the /etc/vmware/snmp.xml file.
If you do not see the file, or you get an “Load persistent store failed” error, you can delete the file and recreate it:
-
To create the file manually:
- Run this command to rename the /etc/vmware/snmp.xml file as snmp.xml.old:mv snmp.xml snmp.xml.old
- Create a new snmp.xml file using a text editor. For example, to create the file using the vi editor, run this command:vi /etc/vmware/snmp.xml
- Copy and paste these lines to the file:<config>
<snmpSettings>
<communities>public</communities>
<enable>true</enable>
</snmpSettings>
</config>Note: Ensure that you do not have any extra line breaks or white spaces before or after the text.
- Save the file.
- Run this command to restart the VMware Management service for ESX4.x: service mgmt-vmware restart OR for ESX 5.x: /etc/init.d/hostd restart