Skip to content

Check VM with VMs in vapps #610

@Chaos823

Description

@Chaos823

Hi,
Using icingacli vspheredb check vm doesn't work on vms that are in a vapp. It returns the following:

[UNKNOWN] Icinga\Module\Vspheredb\Monitoring\Rule\MonitoringRuleSet::loadOptionalForUuid(): Argument #1 ($uuid) must be of type string, null given, called in /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Monitoring/Rule/InheritedSettings.php on line 32
Doing so via the gui (/vspheredb/vm/monitoring) does the same:

Image Image

Moving the vm outside of the vapp and then trying again makes it work again:

Image

It sounds like this should have been fixed in #379, but I'm getting this with the 1.8.0 version in vsphere 8.0.3 and 7.0.3.

I noticed that when adding a new vcenter, it doesn't show a path for vms that are in vapps

Image

While there is no path, the Monitoring check doesn't work. The path is however present once I move the vm outside of the vapp and appears to still be present after moving it back inside the vapp. Even after moving it back, the check still works.

Screenshot after moving it ouside the vapp:

Image

Screenshot after moving it back in:

Image

The logs show the following when adding a new vcenter (version 7.0.3):

Image

Logs when adding a new vcenter (version 8.0.3):

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions