We are facing an issue with the centreon_vmware process that started after a Centreon update applied in mid-December.
Issue description
The centreon_vmware service fails to start with the following error:
# systemctl status centreon_vmware.service
centreon_vmware.service - Centreon VMWare
Loaded: loaded (/lib/systemd/system/centreon_vmware.service; enabled)
Active: failed (Result: exit-code)
Process: ExecStart=/usr/bin/perl /usr/bin/centreon_vmware.pl $OPTIONS
Status: 255/EXCEPTION
Can't use string ("Could not decode JSON from ''...") as a HASH ref
at /usr/share/perl5/centreon/script/credentialsencryption.pm line 55.Logs
The centreon_vmware.log shows the following messages:
No vault config file given. Applying default: /var/lib/centreon/vault/vault.json
No Engine context config file given. Applying default: /etc/centreon-engine/engine-context.json
The given configuration file /var/lib/centreon/vault/vault.json does not exist.
Something happened during init() method that makes Centreonvault not usable.
Reading Engine context configuration from file /etc/centreon-engine/engine-context.jsonRoot cause identified
We found that the file:
/etc/centreon-engine/engine-context.jsonwas empty.
After manually editing it and adding minimal valid JSON content:
{}the centreon_vmware service started successfully and is now running normally.
Questions
However, this file:
-
Does not seem to be deployed during poller configuration deployment
-
Was empty after the update
We would like to understand:
-
Where does
engine-context.jsoncome from originally? -
What is the expected/default content of this file?
-
Is it normal that this file is not deployed or regenerated during poller configuration deployment?
-
Could this be related to the update applied in mid-December?
Thank you in advance for your help and clarification.
