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
Kickstart ITL Commands should at least show the Macro/Icinga2 DSL Code and not simply replace it with
/* Unable to fetch function body through API */
So you can at least tell what Macro or Icinga2 DSL usage is used via the Web2/Director GUI.
The resolving/fetch function Disclaimer can still be presented.
Current Behavior
Functions and Macros/Icinga DSL which can't be resolved during Kickstart will be represented via the Director GUI with
/* Unable to fetch function body through API */
As an Example
"-I" = {
description = "IP address or name (use numeric address if possible to bypass DNS lookup)"
set_if = {{
/* Unable to fetch function body through API */
}}
value = "$http_address$"
}
Possible Solution
Just show the function/Macro/Icinga2 DSL Code so at least you can tell from the GUI what Macro or function is used with this imported Command, this makes Debugging easier ..
There can still be a Disclaimer that it isn't resolve/usable via the Director but this helps improving Debugging and readablility/knowledge of the Kickstartet files.
Steps to Reproduce (for bugs)
Kickstart or import ITL/Commands via Director Kickstart which use as an example Macro/Icinga2 DSL functions or even the example above set_if.
Your Environment
Director version (System - About): latest Director Version 1.9.1
Icinga Web 2 version and modules (System - About): 2.11.0
While Director is able to show your configured DSL (you're allowed to do so in your command arguments defined in the Director), the problem here lies elsewhere: the Icinga 2 API doesn't export DSL bodies. For a better understanding we might rephrase...
Unable to fetch function body through API
...to:
Icinga 2 does not export DSL function bodies via API
Expected Behavior
Kickstart ITL Commands should at least show the Macro/Icinga2 DSL Code and not simply replace it with
So you can at least tell what Macro or Icinga2 DSL usage is used via the Web2/Director GUI.
The resolving/fetch function Disclaimer can still be presented.
Current Behavior
Functions and Macros/Icinga DSL which can't be resolved during Kickstart will be represented via the Director GUI with
As an Example
Possible Solution
Just show the function/Macro/Icinga2 DSL Code so at least you can tell from the GUI what Macro or function is used with this imported Command, this makes Debugging easier ..
There can still be a Disclaimer that it isn't resolve/usable via the Director but this helps improving Debugging and readablility/knowledge of the Kickstartet files.
Steps to Reproduce (for bugs)
Kickstart or import ITL/Commands via Director Kickstart which use as an example Macro/Icinga2 DSL functions or even the example above set_if.
Your Environment
icinga2 --version
): 2.13.4-1The text was updated successfully, but these errors were encountered: