IDO isn't updating host contacts if new contact is added to contact group
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 616
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Describe the bug
I noticed missing contacts of hosts and services in the icingaweb2 monitoring module.
If I send a test notification, the missing contacts get notified.
If I click on the contact group the missing contacts are listed.
I had a look in the IDO _host_contacts table and noticed only the displayed contacts are present for the host.
After adding a note to the host and deploying with the director the missing contacts appeared.
To Reproduce
- note contacts of host or service with a contact group in the icingaweb2 monitoring module
- add new user to user group in director
- deploy
- note contacts of host or service with a contact group in the icingaweb2 monitoring module
- change something on host
- deploy
- note contacts of host or service with a contact group in the icingaweb2 monitoring module
Expected behavior
Changes to members of contact groups get updated in the icingaweb2 monitoring module's contacts without requiring a change to the host or service object.
Your Environment
Include as many relevant details about the environment you experienced the problem in
- Icinga2 version: r2.14.2-1
- OS: AlmaLinux 8.9
- Enabled features: api checker gelf icingadb ido-mysql influxdb mainlog notification
- Icinga Web 2 version: 2.12.1
- monitoring module version: 2.12.1
Additional context
Because of our issues with icingadb like ref/IP/48748 a fix in the legacy monitoring module would be very welcome.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the contact-group membership change and inspect the IDO _host_contacts table alongside the icingaweb2 monitoring module contacts view. Trace how deploying a user-group change differs from deploying a host or service change; done means newly added group members appear without modifying the host or service object.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, mysql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100