You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignee: mfriedrich
Status: Resolved (closed on 2015-07-02 15:55:04 +00:00)
Target Version: 2.3.7
Last Update: 2015-07-13 09:01:47 +00:00 (in Redmine)
Icinga Version: 2.3.5
Backport?: Already backported
Include in Changelog: 1
Operating system version: 2.6.32-431.el6.x86_64
Distribution: Red Hat Enterprise Linux Server release 6.5 (Santiago)
Package: icinga2-2.3.5-1.el6.x86_64
if i try to do "assign" within a template definition the config parser throws this error message: "object rule 'assign' cannot be used for type 'Host'
Updated by mfriedrich on 2015-07-02 15:51:42 +00:00
Status changed from New to Assigned
Assigned to set to mfriedrich
Target Version set to 2.4.0
There's only code implemented for checking if 'assign' was seen, as 'ignore' without any 'assign' expression does not make sense. Therefore the parser silently ignores standalone 'ignore' expressions in objects/templates and does not check against a valid object rule expression.
I've implemented and tested a fix, please test the git mater/snapshot packages.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9535
Created by tredel on 2015-07-01 08:36:00 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2015-07-02 15:55:04 +00:00)
Target Version: 2.3.7
Last Update: 2015-07-13 09:01:47 +00:00 (in Redmine)
Operating system version: 2.6.32-431.el6.x86_64
Distribution: Red Hat Enterprise Linux Server release 6.5 (Santiago)
Package: icinga2-2.3.5-1.el6.x86_64
if i try to do "assign" within a template definition the config parser throws this error message: "object rule 'assign' cannot be used for type 'Host'
But if i try to do "ignore" there's no error. Seems like the config parser ignores the "ignore where" line overall. The line has no effect.
Changesets
2015-07-02 15:53:34 +00:00 by (unknown) ed3882b
2015-07-13 09:01:19 +00:00 by (unknown) b423609
Relations:
The text was updated successfully, but these errors were encountered: