Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check vcenterconnection fails with undefined method error #300

Closed
acp-jsz opened this issue Dec 1, 2021 · 6 comments
Closed

check vcenterconnection fails with undefined method error #300

acp-jsz opened this issue Dec 1, 2021 · 6 comments
Assignees
Labels
Milestone

Comments

@acp-jsz
Copy link

acp-jsz commented Dec 1, 2021

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
@Thomas-Gelf
Copy link
Contributor

Thanks for reporting this, can be reproduced. This check command is still using an outdated API, which no longer exists. Has been overlooked when releasing v1.2. Sorry for that - will be fixed. Workaround: please disable this check for now, it will not work.

@acp-jsz
Copy link
Author

acp-jsz commented Dec 1, 2021

Thanks for this very fast response.
We will proceed as suggested - and wait for an update for this feature.
Thank you!

@danopt
Copy link

danopt commented Aug 15, 2022

ref/NC/760552

@Thomas-Gelf
Copy link
Contributor

Will be superseded by #245, please follow that issue

@Thomas-Gelf
Copy link
Contributor

NB: #245 has been implemented

@Thomas-Gelf
Copy link
Contributor

#401 has also been implemented, being a full drop-in replacement for this check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants