Skip to content

check vcenterconnection fails with undefined method error #300

@acp-jsz

Description

@acp-jsz

The Check-Command "vcenterconnection" is not working in our environments.
Upgraded the vspheredb module yesterday on one icingaweb2 instance to "stable/1.2"
Also upgraded incubator module to version 0.10.1
Then we recognized, that the "old" health-command has been removed / disabled, and we should change this check to the "new" check vcenterconnection - but this is currently only throwing an error-message about undefined method Icinga\Module\Vspheredb\DbObject\VCenter::getApi()

Expected Behavior

cli:> '/usr/bin/icingacli' 'vspheredb' 'check' 'vcenterconnection' '--vCenter' '1'
myVCenter: Connected to VMware vCenter Server 6.7.0 build-18485185 on linux-x64, api=VirtualCenter (VMware VirtualCenter Server)

Current Behavior

cli:> '/usr/bin/icingacli' 'vspheredb' 'check' 'vcenterconnection' '--vCenter' '1'
[UNKNOWN] Call to undefined method Icinga\Module\Vspheredb\DbObject\VCenter::getApi()

Possible Solution

N/A

Steps to Reproduce (for bugs)

  1. cli:> '/usr/bin/icingacli' 'vspheredb' 'check' 'vcenterconnection' '--vCenter' '1'
    [UNKNOWN] Call to undefined method Icinga\Module\Vspheredb\DbObject\VCenter::getApi())

Your Environment

  • VMware vCenter®/ESXi™-Version:
    • VMware vCenter Server 7.0.3 build-18700403 on linux-x64
    • VMware vCenter Server 6.7.0 build-18485185 on linux-x64
  • Version/GIT-Hash of this module: branch stable/1.2 - commit 81db169
  • Icinga Web 2 version: 2.9.4
  • Operating System and version: Debian 10 (Buster)
  • Webserver, PHP versions:
    • Apache 2.4
    • PHP 7.3.31-1~deb10u1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions