Icinga / icingaweb2-module-vspheredb

The easiest way to monitor a VMware vSphere environment.

Home Page:https://icinga.com/docs/vsphere/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Errors: Refreshing Rule Problems failed: Failed to load object, Could not find parent

Tontonitch opened this issue · comments

Expected Behavior

No Errors.

Current Behavior

root@myserver:# journalctl -f -p err
-- Logs begin at Mon 2023-03-06 18:32:14 CET. --
Mar 17 19:10:03 myserver icinga-vspheredb[1044796]: [db] Could not find parent resgroup-9914704 for SD_vApp02
Mar 17 19:10:03 myserver icinga-vspheredb[1044796]: [db] Could not find parent resgroup-9914704 for SD_VApp01
Mar 17 19:10:42 myserver icinga-vspheredb[1044796]: [db] Refreshing Rule Problems failed: Failed to load object "1172b4a6-7b5f-55a3-97d8-166fdc572bc2"
Mar 17 19:12:12 myserver icinga-vspheredb[1044796]: [db] Refreshing Rule Problems failed: Failed to load object "1172b4a6-7b5f-55a3-97d8-166fdc572bc2"
Mar 17 19:12:53 myserver icinga-vspheredb[1044796]: [db] Could not find parent resgroup-9914704 for SD_vApp02
Mar 17 19:12:53 myserver icinga-vspheredb[1044796]: [db] Could not find parent resgroup-9914704 for SD_VApp01
Mar 17 19:13:42 myserver icinga-vspheredb[1044796]: [db] Refreshing Rule Problems failed: Failed to load object "1172b4a6-7b5f-55a3-97d8-166fdc572bc2"
Mar 17 19:15:12 myserver icinga-vspheredb[1044796]: [db] Refreshing Rule Problems failed: Failed to load object "1172b4a6-7b5f-55a3-97d8-166fdc572bc2"
Mar 17 19:15:43 myserver icinga-vspheredb[1044796]: [db] Could not find parent resgroup-9914704 for SD_vApp02
Mar 17 19:15:43 myserver icinga-vspheredb[1044796]: [db] Could not find parent resgroup-9914704 for SD_VApp01

Possible Solution

Steps to Reproduce (for bugs)

Your Environment

  • VMware vCenter®/ESXi™-Version: VMware ESXi, 7.0.3, 20328353
  • Version/GIT-Hash of this module: official 1.6.0
  • Icinga Web 2 version: r2.13.7-1
  • Operating System and version: Ubuntu 20.04.5 LTS
  • Webserver, PHP versions: PHP 7.4.3-4ubuntu2.17
SELECT
  moref,
  level,
  object_name,
  object_type,
  vc.name as vcenter,
  vc.id AS vcenter_id
FROM object o
LEFT JOIN vcenter vc ON o.vcenter_uuid = vc.instance_uuid
WHERE uuid =  UNHEX('1172b4a67b5f55a397d8166fdc572bc2');

0

SELECT COUNT(*)
  FROM host_system hs
  LEFT JOIN object o ON hs.uuid = o.uuid
  WHERE o.uuid IS NULL;

0

SELECT COUNT(*)
  FROM virtual_machine vm
  LEFT JOIN object o ON vm.uuid = o.uuid
  WHERE o.uuid IS NULL;

12

SELECT COUNT(*)
  FROM datastore ds
  LEFT JOIN object o ON ds.uuid = o.uuid
  WHERE o.uuid IS NULL;

0

looking at the 12 rows, seems to match perfectly the 12 vm assigned to the 2 vApps we have set on vSphere, SD_vApp01 and SD_vApp02, for which we can see "Could not find parent" error lines in the daemon log.