VMware Cloud Community
Petevaan
Contributor
Contributor

Load persistant store failed

Hello,

A week ago I suddenly lost snmp connection to our two esxi 4 hosts. Previously I was able to monitor them with Zenoss but now I can't get through with snmp. I don't remember doing any configuration or updating on the hosts just before the problem came up. I only tried SolarWinds VM Monitor software but I can't understand how it could have messed something up. And for the record even the SolarWinds couldn't connect to the hosts.

When checking the snmp setting with vMA virtual machine I get the following:

vicfg-snmp --server <serverip> --username root -s

Enter password:

Current SNMP agent settings:

Enabled : 0

UDP port : 161

Communities :

Notification targets :

And when trying to enable snmp agent I get:

vicfg-snmp --server <serverip> --username root -E

Enter password:

Enabling agent...

Failed : A general system error occurred: Load persistant store failed

Host's /etc/vmware/snmp.xml says:

<config>

<snmpSettings>

<communities>public</communities>

<enable>false</enable>

<targets><serverip>@161 public</targets>

<targets><serverip>@161 public</targets>

<targets><serverip>@161 public</targets>

</snmpSettings>

So what am I doing wrong? Im really stuck here. Google won't give me much answers for "Load persistant store failed" -error.

Tags (2)
Reply
0 Kudos
3 Replies
JFrommeyer
Contributor
Contributor

Hallo,

you can only enabled SNMP if the ESXi 4 Server is in EVAL-Mode.

Delete your License-Key and set the ESXi 4 Server in EVAL-Mode.

Then you can enable SNMP.

Bye,

Jens

Reply
0 Kudos
ElioteArg
Contributor
Contributor

That's right. You must first enable SNMP using the Evaluation license and then you can configure targets and ports usind Remote CLI. However, I could do that in two ESXi servers, but not in the third one. Those three servers are managed by vCenter Server.

Any idea? I restarted all services after modifying snmp.xml file by executing "/sbin/services.sh restart" and then start again

Reply
0 Kudos
jer0nim0
Contributor
Contributor

The "load persistant store failed" error seems to come from a pre-populated /etc/vmware/snmp.xml file using a wrong syntax.

My mistakes were:

- snmpSettings (the second "s" is a capital letter), make sure to change opening and closing elements

- the targets parameter has syntax

<targets>IP/port</targets>

(note the slash in between, a space won't work)

Reply
0 Kudos