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

Event sync stuck on specific day

xeiss opened this issue · comments

commented

Expected Behavior

Event sync can sync all events

Current Behavior

The event sync stuck on a specific day, 10.01.2023 is the last day with events, in our Database:
grafik

Daemon Log shows every 2 sec: "Task 'Events' is already running, skipping"
Daemon Debug Log Output, don't show anything other about Events.
"service icinga-vspheredb restart" don't change anything, after 4 sec it comes back to "Task 'Events' is already running, skipping"

I also flush the whole icinga-vspheredb database and start with a fresh setup, same last event / day.

Possible Solution

Ignore a event when, it isn't possible to apply it to database and print the error on daemon log. So we also be able to identify the problematic event and other events can be applied.

Steps to Reproduce (for bugs)

I can reproduce it with a fresh start of database + config of my vcenter. It only sync 1168 events. But I think this is only reproducible with my vcenter. I also exported the events with VMware PowerCLI and look on the after last event from vspheredb history, but there was no strange event, some "Task: Create virtual machine snapshot" or "Task: Find rules for VM" or "Changed custom field". But this events happends every day.

Your Environment

  • VMware vCenter®/ESXi™-Version: 7.0.3 / 7.0.3 (21424296)
  • Version/GIT-Hash of this module: v1.7.0
  • Icinga Web 2 version: 2.11.4
  • Operating System and version: Debian 11
  • Webserver, PHP versions: Apache 2.4.56-1~deb11u1, PHP 7.4.33-1+deb11u3