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 #8517] Config parser fails non-deterministic on Notification missing Checkable #2659

Closed
icinga-migration opened this issue Feb 24, 2015 · 3 comments
Labels
area/configuration DSL, parser, compiler, error handling blocker Blocks a release or needs immediate attention bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by mfriedrich on 2015-02-24 14:35:23 00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-02-25 11:44:39 00:00)
Target Version: 2.3.0
Last Update: 2015-02-25 11:44:39 00:00 (in Redmine)

Icinga Version: v2.2.0-511-g23005e1
Backport?: Not yet backported
Include in Changelog: 1

Attached config (remove conf.d inclusion and add lconf in icinga2.conf)

critical/config: Error: Notification object refers to a host/service which doesn't exist.
Location:
/etc/icinga2/lconf/hosts/host1.conf(35): }
/etc/icinga2/lconf/hosts/host1.conf(36): 
/etc/icinga2/lconf/hosts/host1.conf(37): object Notification "host-host1-service-service-event-mail-service-notification-0-1" {
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/etc/icinga2/lconf/hosts/host1.conf(38):  import "mail-service-notification"
/etc/icinga2/lconf/hosts/host1.conf(39):  host_name = "host1"

critical/config: 1 error

object Host "host1" {
        import "generic-host"
        address = "127.0.0.1"
        display_name = "aliasname"
        max_check_attempts = 6543
        event_command = "host-host1-eventhandler-args",
        groups = [ "hg1" ]
        enable_notifications = 1
        vars.EVENTARG1 = "bla"
        vars.EVENTARG2 = "foo"
        vars.EVENTARG3 = "bumsti"
}

object Service "service-event" {
        import "generic-service"
        host_name = "host1"
        check_command = "eventhandler-args"
        check_interval = 120m
        retry_interval = 45m
        display_name = "test"
        event_command = "host-host1-service-service-event-eventhandler-args"
        enable_flapping = 0
        enable_notifications = 0
        vars.EVENTARG1 = "eins"
        vars.EVENTARG2 = "zwei"
        vars.EVENTARG3 = "polizei"
}


object Notification "host-host1-service-service-event-mail-service-notification-0-1" {
        import "mail-service-notification"
        host_name = "host1"
        service_name = "service-event"
        command = "mail-service-notification"
        interval = 60m
        users = [ "c2" ]
}

Attachments

Changesets

2015-02-25 11:43:38 00:00 by (unknown) 4da3b1c

Make sure that Notification objects are activated after Host/Service objects

fixes #8517
@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-02-25 08:53:14 00:00

  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.3.0

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-02-25 09:21:34 00:00

  • Priority changed from Normal to High

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-02-25 11:44:39 00:00

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

Applied in changeset 4da3b1c.

@icinga-migration icinga-migration added blocker Blocks a release or needs immediate attention bug Something isn't working area/configuration DSL, parser, compiler, error handling labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration DSL, parser, compiler, error handling blocker Blocks a release or needs immediate attention bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant