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 #12633] Validation does not highlight the correct attribute #4630

Closed
icinga-migration opened this issue Sep 4, 2016 · 3 comments
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by Trefex on 2016-09-04 15:48:16 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2016-09-04 15:50:52 +00:00)
Target Version: 2.6.0
Last Update: 2016-09-04 15:50:52 +00:00 (in Redmine)

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

When applying a host notification to a service, the validation highlights the wrong attribute.

Sep  4 17:31:07 icinga icinga2[3188]: [2016-09-04 17:31:07 +0200] critical/config: Error: Validation failed for object 'test-domain.company!users!ct-service-mail' of type 'Notification'; Attribute 'types': State filter is invalid.
Sep  4 17:31:07 icinga icinga2[3188]: Location: in /etc/icinga2/conf.d/templates.conf: 50:3-52:57
Sep  4 17:31:07 icinga icinga2[3188]: /etc/icinga2/conf.d/templates.conf(48):
Sep  4 17:31:07 icinga icinga2[3188]: /etc/icinga2/conf.d/templates.conf(49):   states = [ Up, Down ]
Sep  4 17:31:07 icinga icinga2[3188]: /etc/icinga2/conf.d/templates.conf(50):   types = [ Problem, Acknowledgement, Recovery, Custom,
Sep  4 17:31:07 icinga icinga2[3188]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep  4 17:31:07 icinga icinga2[3188]: /etc/icinga2/conf.d/templates.conf(51):             FlappingStart, FlappingEnd,
Sep  4 17:31:07 icinga icinga2[3188]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep  4 17:31:07 icinga icinga2[3188]: /etc/icinga2/conf.d/templates.conf(52):             DowntimeStart, DowntimeEnd, DowntimeRemoved ]
Sep  4 17:31:07 icinga icinga2[3188]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sep  4 17:31:07 icinga icinga2[3188]: /etc/icinga2/conf.d/templates.conf(53):
Sep  4 17:31:07 icinga icinga2[3188]: /etc/icinga2/conf.d/templates.conf(54):   period = "24x7"

Changesets

2016-09-04 15:50:44 +00:00 by gbeutner efbdce8

Fix incorrect attribute name on the validator for the Notification class

fixes #12633
@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-09-04 15:49:56 +00:00

  • Category set to Configuration
  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.6.0

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-09-04 15:50:15 +00:00

  • Description updated

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-09-04 15:50:52 +00:00

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

Applied in changeset efbdce8.

@icinga-migration icinga-migration added 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.6.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 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant