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 #7372] custom attribute name "type" causes empty vars dictionary #2051

Closed
icinga-migration opened this issue Oct 14, 2014 · 6 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/7372

Created by cstein on 2014-10-14 08:24:14 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2014-10-25 07:15:42 +00:00)
Target Version: 2.2.0
Last Update: 2014-10-29 09:54:31 +00:00 (in Redmine)

Icinga Version: 2.1.1

When assigning a host variable to an host object which is flagged as core variable, services for this object are not applied.

Example:

/**
 * A host definition. You can create your own configuration files
 * in the conf.d directory (e.g. one per host). By default all *.conf
 * files in this directory are included.
 */
object Host "srv-mysql" {
  import "generic-host"

  address = "192.168.2.1"
  address6 = "::1"

  vars.os = "Linux"
  vars.sla = "24x7"
  vars.database = "MySQL"
  vars.type = "Database"
  vars.no_mysql_health_check = true
}

While validating the configuration for Icinga 2, there is no error given out.

Changesets

2014-10-25 07:14:56 +00:00 by (unknown) 315c84e

Fix problems with the serializer when using "type" as an attribute

fixes #7372

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-10-14 09:04:40 +00:00

  • Subject changed from Icinga 2 Config: Bug with host / service variables (system variables) to custom attribute name "type" causes empty vars dictionary

Sounds like a similar issue to #7335

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-10-14 09:04:50 +00:00

  • Duplicates set to 7335

@icinga-migration
Copy link
Author

Updated by mfrosch on 2014-10-21 11:49:40 +00:00

  • Duplicated set to 7424

@icinga-migration
Copy link
Author

Updated by mfrosch on 2014-10-21 14:11:46 +00:00

  • Description updated

@icinga-migration
Copy link
Author

Updated by Anonymous on 2014-10-25 07:15:42 +00:00

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

Applied in changeset 315c84e.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-10-25 07:16:18 +00:00

  • Assigned to set to gbeutner
  • Target Version set to 2.2.0

@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.2.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