Icinga / icingaweb2-module-vsphere

VMware vSphere import source for the Icinga Director
GNU General Public License v2.0
32 stars 8 forks source link

Sync rules fail on ESXi import Source #5

Closed LordHepipud closed 7 years ago

LordHepipud commented 7 years ago

When trying to trigger a Sync run from an ESXi import source, the Icinga Director fails with the following message:

This Sync Rule failed when last checked at 2017-07-05 10:50:42: Data is not nested, cannot access runtime.host: stdClass::__set_state(array( 'runtime' => NULL, 'guest' => NULL, 'config' => NULL, 'name' => 'virtual-machine', ))

The problem seems to be the '.' of 'runtime.host'.

Using modifiers on the import source to remove the '.' from the column resolves the issue and the sync run is working properly.

Thomas-Gelf commented 7 years ago

I'll restructure the default properties and ship dictionaries, so runtime, guest and config would be main keys. Accessing their keys would then work as it should, via runtime.host and similar.