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
This issue has been migrated from Redmine: https://dev.icinga.com/issues/12928
Created by swizzly on 2016-10-14 14:46:24 +00:00
Is it possible to do something like this: http://docs.icinga.org/icinga2/snapshot/search?q=cluster\#!/icinga2/snapshot/doc/module/icinga2/chapter/advanced-topics?highlight-search=cluster#access-object-attributes-at-runtime in Director? I mean I would like to have the code that checks the Cluster health inside Director, and don't want to bother writing external config files for Icinga2.
Updated by tgelf on 2016-10-14 19:29:50 +00:00
this is absolutely possible. You are currently not allowed to write DSL to a Custom Variable, but it is perfectly legal to write them to a command argument. check_dummy is special as it's arguments are positional, but with an implicit skip_key (leaving the argument name empty) this is perfectly possible. Please find some screenshots attached, they show how it works (code is copied 1:1 from the link you provided):
Updated by swizzly on 2016-10-17 14:35:20 +00:00
Many thanks, it works great.
The first argument of the command should look like this:
The second parameter should be changed to this:
And of course accordingly the data fields name should be changed to "cluster_services" too.