Icinga / icingaweb2-module-vspheredb

The easiest way to monitor a VMware vSphere environment.
https://icinga.com/docs/vsphere/latest
GNU General Public License v2.0
100 stars 34 forks source link

Import VMs using Director Hook doesn't work on since 1.6 if machines are powered off #512

Closed moreamazingnick closed 1 year ago

moreamazingnick commented 1 year ago

Current Behavior

1.6 shows no virtual machines to import if they are powered off, regardless of setting the skip powererd off to no

Possible Solution

        if ($this->getSetting('skip_powered_off', 'n') === "y") {
            $query->where('runtime_power_state != ?', 'poweredOff');
        }

Steps to Reproduce (for bugs)

power off vms Create vspheredb import source-> preview is empty, import is empty

Your Environment

Thomas-Gelf commented 1 year ago

PR has been merged, will be released with v1.7. Thanks for reporting this!