icingaweb2-module-vspheredb icon indicating copy to clipboard operation
icingaweb2-module-vspheredb copied to clipboard

host_system doesn't get updated in db after updating vcenter/esxi

Open mkayontour opened this issue 4 years ago • 0 comments

Expected Behavior

When updating a esxi/vcenter, update the host systems too.

[vspheredb]> select host_name,product_full_name from host_system where host_name like '%esxi%';

+---------------------------+----------------------------------+
| host_name                 | product_full_name                |
+---------------------------+----------------------------------+
| x-esxi02.xxx.lan | VMware ESXi 6.0.0 Build-13635687 |
| x-esxi01.xxx.lan | VMware ESXi 6.5.0 build-7967591  |
| x-esxi02.xxx.lan | VMware ESXi 6.5.0 build-7967591  |
| x-esxi01.xxx.lan | VMware ESXi 6.0.0 Build-7504637  |
+---------------------------+----------------------------------+

Current Behavior

Host System will be still the same and the new hosts are added, this results in an error when checking on the monitoring state:

'/usr/bin/php' '/usr/bin/icingacli' 'vspheredb' 'check' 'host' '--name' 'x-esxi02.xxx.lan'
[UNKNOWN] More than one object found for given filter

Your Environment

  • VMware vCenter®/ESXi™-Version: 6.0/6.5
  • Version/GIT-Hash of this module: 1.1.0
  • Icinga Web 2 version: 2.8.2
  • Operating System and version: Ubuntu 20.04
  • Webserver, PHP versions: PHP7.3/Apache2.4

mkayontour avatar Nov 10 '20 12:11 mkayontour