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: (none)
Status: New (closed on 2016-11-07 07:13:50 +00:00)
Target Version: (none)
Last Update: 2016-11-25 14:28:22 +00:00 (in Redmine)
Icinga Version: 2.3.4
Backport?: Not yet backported
Include in Changelog: 1
Some of our hosts have custom variables that are arrays, and I've tried to create a downtime for a all hosts that have a particular string as element in such a variable. There doesn't seem to be a way to do that, and if there is, then that documentation at http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/icinga2-api fails to mention it.
Things I have tried:
filter="thestring" in host.vars.thevariable, inspired by the example filter="linux-servers" in host.groups in the API docs. Result: no downtime created.
filter=match("thestring",host.vars.thevariable). Result: No downtime created
filter=match("*thestring*",host.vars.thevariable). Result: Hosts where host.vars.thevariable contain "thestringbutlonger" also get the downtime created.
The text was updated successfully, but these errors were encountered:
This issue has been migrated from Redmine: https://dev.icinga.com/issues/13054
Created by moritz on 2016-11-05 15:25:25 +00:00
Assignee: (none)
Status: New (closed on 2016-11-07 07:13:50 +00:00)
Target Version: (none)
Last Update: 2016-11-25 14:28:22 +00:00 (in Redmine)
Some of our hosts have custom variables that are arrays, and I've tried to create a downtime for a all hosts that have a particular string as element in such a variable. There doesn't seem to be a way to do that, and if there is, then that documentation at http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/icinga2-api fails to mention it.
Things I have tried:
filter="thestring" in host.vars.thevariable
, inspired by the examplefilter="linux-servers" in host.groups
in the API docs. Result: no downtime created.filter=match("thestring",host.vars.thevariable)
. Result: No downtime createdfilter=match("*thestring*",host.vars.thevariable)
. Result: Hosts where host.vars.thevariable contain "thestringbutlonger" also get the downtime created.The text was updated successfully, but these errors were encountered: