Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #12333] Incorrect downtime notification events #4446

Closed
icinga-migration opened this issue Aug 9, 2016 · 6 comments

Comments

Projects
None yet
1 participant
@icinga-migration
Copy link
Member

commented Aug 9, 2016

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12333

Created by mfriedrich on 2016-08-09 07:57:30 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2016-08-10 14:05:04 +00:00)
Target Version: 2.5.0
Last Update: 2016-11-09 14:58:54 +00:00 (in Redmine)

Icinga Version: 2.4.10
Backport?: Not yet backported
Include in Changelog: 1

OnDowntimeAdded/Removed trigger the DB IDO updates, they should behave in a similar fashion for the notifications.

  • OnDowntimeAdded -> DOWNYIMESTART notification if downtime is fixed
  • OnDowntimeTriggered -> DOWNTIMESTART notification if downtime is flexible
  • OnDowntimeRevied -> DOWNTIMEEND notification for both - the timer handler takes care of removing fixed (end time) and flexible (trigger time + duration)

Changesets

2016-08-10 14:04:37 +00:00 by mfriedrich 42818ab

Fix downtime notification events and missing author/comment

fixes #12333
fixes #11851

Relations:

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Aug 9, 2016

Updated by mfriedrich on 2016-08-09 07:57:44 +00:00

  • Relates set to 11030
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Aug 10, 2016

Updated by mfriedrich on 2016-08-10 13:00:53 +00:00

  • Relates set to 11851
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Aug 10, 2016

Updated by mfriedrich on 2016-08-10 13:05:25 +00:00

  • Subject changed from DowntimeStart/End notifications processed in ProcessCheckResult to Incorrect downtime notification events

  • Description updated

  • Status changed from New to Assigned

  • Assigned to set to mfriedrich

  • Target Version set to 2.5.0

    object Host "12333-host" {
    check_command = "dummy"

    check_interval = 60m
    retry_interval = 60m
    

    }

    object User "12333-user" {
    email = "michael.friedrich@netways.de"
    }

    apply Notification "12333-downtime-notification" to Host {
    import "mail-host-notification"

    users = [ "12333-user" ]
    
    states = [ Up, Down ]
    types = [ Problem, Recovery, DowntimeStart, DowntimeEnd, DowntimeRemoved ]
    
    assign where match("12333*", host.name)
    

    }

    [2016-08-10 11:58:15 +0200] information/ExternalCommandListener: Executing external command: [1470823095] SCHEDULE_HOST_DOWNTIME;12333-host;1470823092;1470826692;1;0;0;icingaadmin;abc
    [2016-08-10 11:58:15 +0200] notice/ExternalCommandProcessor: Creating downtime for host 12333-host
    [2016-08-10 11:58:15 +0200] notice/ConfigCompiler: Compiling config file: /usr/local/icinga2/var/lib/icinga2/api/packages/_api/mbmif.int.netways.de-1442309540-1/conf.d/downtimes/12333-host!mbmif.int.netways.de-1470823095-0.conf
    [2016-08-10 11:58:15 +0200] debug/ConfigItem: Activating object '12333-host!mbmif.int.netways.de-1470823095-0' of type 'Downtime'
    [2016-08-10 11:58:15 +0200] notice/Downtime: Checkable '12333-host' already in a NOT-OK state. Triggering downtime now.
    [2016-08-10 11:58:15 +0200] notice/Downtime: Triggering downtime '12333-host!mbmif.int.netways.de-1470823095-0'.
    [2016-08-10 11:58:15 +0200] information/Checkable: Checking for configured notifications for object '12333-host'
    [2016-08-10 11:58:15 +0200] debug/Checkable: Checkable '12333-host' has 1 notification(s).
    [2016-08-10 11:58:15 +0200] notice/Notification: Attempting to send notifications for notification object '12333-host!12333-downtime-notification'.
    [2016-08-10 11:58:15 +0200] information/Notification: Sending 'DowntimeStart' notification '12333-host!12333-downtime-notification for user '12333-user'
    [2016-08-10 11:58:15 +0200] debug/DbEvents: add notification history for '12333-host'
    [2016-08-10 11:58:15 +0200] debug/DbEvents: add contact notification history for service '12333-host' and user '12333-user'.
    [2016-08-10 11:58:15 +0200] debug/DbEvents: add log entry history for '12333-host'
    [2016-08-10 11:58:15 +0200] information/Notification: Completed sending 'DowntimeStart' notification '12333-host!12333-downtime-notification' for checkable '12333-host' and user '12333-user'.
    [2016-08-10 11:58:15 +0200] debug/DbEvents: add log entry history for '12333-host'

    ***** Icinga *****

    Notification Type: DOWNTIMESTART

    Host: 12333-host
    Address:
    State: DOWN

    Date/Time: 2016-08-10 11:58:15 +0200

    Additional Info: dosas

    Comment: [icingaadmin] abc

    [2016-08-10 11:59:07 +0200] notice/Downtime: Removed downtime '12333-host!mbmif.int.netways.de-1470823095-0' from object '12333-host'.
    [2016-08-10 11:59:07 +0200] information/Checkable: Checking for configured notifications for object '12333-host'
    [2016-08-10 11:59:07 +0200] debug/Checkable: Checkable '12333-host' has 1 notification(s).
    [2016-08-10 11:59:07 +0200] notice/Notification: Attempting to send notifications for notification object '12333-host!12333-downtime-notification'.
    [2016-08-10 11:59:07 +0200] information/Notification: Sending 'DowntimeEnd' notification '12333-host!12333-downtime-notification for user '12333-user'
    [2016-08-10 11:59:07 +0200] debug/DbEvents: add notification history for '12333-host'
    [2016-08-10 11:59:07 +0200] debug/DbEvents: add contact notification history for service '12333-host' and user '12333-user'.
    [2016-08-10 11:59:07 +0200] debug/DbEvents: add log entry history for '12333-host'
    [2016-08-10 11:59:07 +0200] debug/DbEvents: add log entry history for '12333-host'
    [2016-08-10 11:59:07 +0200] information/Notification: Completed sending 'DowntimeEnd' notification '12333-host!12333-downtime-notification' for checkable '12333-host' and user '12333-user'.

    ***** Icinga *****

    Notification Type: DOWNTIMEEND

    Host: 12333-host
    Address:
    State: DOWN

    Date/Time: 2016-08-10 11:59:07 +0200

    Additional Info: dosas

    Comment: [icingaadmin] abc

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Aug 10, 2016

Updated by mfriedrich on 2016-08-10 14:04:17 +00:00

Tested with both fixed and flexible downtimes, works for me.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Aug 10, 2016

Updated by mfriedrich on 2016-08-10 14:05:05 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 42818ab.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 9, 2016

Updated by mfriedrich on 2016-11-09 14:58:54 +00:00

  • Parent Id deleted 11312
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.