Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #11402] Explain how to use functions for wildcard matches for arrays and/or dictionaries in assign where expressions #4041
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11402
Created by dedkus on 2016-03-17 10:31:17 +00:00
and assign a group of printer by
the same with services
icinga2 object list --name 'jip-060'
unfortunaltely it is not evaluated, even checkconfig is finw with it.
2016-03-17 14:49:13 +00:00 by mfriedrich e6f1439
2016-03-17 15:29:19 +00:00 by mfriedrich eeda5fe
2016-04-11 08:38:34 +00:00 by mfriedrich 24836a4
2016-04-20 08:06:59 +00:00 by mfriedrich 20cb2e4
Updated by mfriedrich on 2016-03-17 14:52:27 +00:00
Your match() call is wrong, this will never return true. You're comparing a wildcard string with an array of host templates.
You could go for a function which takes the host and the wildcard match as arguments.
I've now converted this issue into a documentation issue adding such examples. This should help in the future.
Next time please consider discussing this topic in the community channels such as the forum. It is merely not a bug but a configuration problem.