You can only use constants from CheckCommand
, by using a Icinga DSL function for an argument.
object CheckCommand "Test" {
import "plugin-check-command"
command = [ PluginDir + "/test" ]
arguments += {
"-p" = {{
return MyCredentials.password
}}
"-u" = {{
return MyCredentials.username
}}
}
}
Original author: @mfrosch