Icinga / Icinga/icinga2

Wrong Notifications in Icinga due to discrepancies between icinga2 and icingaweb

Open
#9,892 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/notifications bug
Dominant language
C++
Stars
2.2k
Forks
616
Avg merge
5d 6h
Merged PRs (30d)
10

Description

Describe the bug

We noticed discrepancies between Icinga and Icingaweb regarding states and notifications:
image

While analyzing the icinga2 logfile we found out that Icinga executes the notification as a "Problem" although the WebUI shows that check should be ok
[06:08:06 +0200] information/Notification: Sending reminder 'Problem' notification 'host_xyz!Notification_xyz' for user 'Notication Contact' [06:08:06 +0200] information/Notification: Completed sending 'Problem' notification 'host_xyz!Notification_xyz' for checkable 'host_xyz!service_abc' and user 'Notification Contact' using command 'my-notification-command'.

We couldn't find out how the states, the check output etc. come into Icingaweb.
Our guess is that somewhere during the process in getting the information Icingaweb only gets some old values.

To Reproduce

We were not able to reproduce this issue.

Expected behavior

Icinga should execute a "Recovery" Notification because we tested the check command and it was OK.
It shouldn't be a Problem Notification

Your Environment

Version used (icinga2 --version): r2.14.0-1
Operating System and version: RHEL 7 (7.9)
Enabled features (icinga2 feature list): api checker graphite ido-mysql mainlog notification
Icinga Web 2 version and modules (System - About): 2.11.4
2 Master and 2 Satellites for each Master

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by correlating the icinga2 notification log with the Icinga Web state for the affected check, using the reported two-master, two-satellite environment as context. The issue provides no reproduction steps, files, or tests; done would require reproducing the mismatch, identifying why a Problem state is used, and ensuring the resulting notification matches the recovered check state.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.