On Wed, 01 Jul 2015, Bertalan Voros wrote:

> Hello All,
> 
> Is it possible to escape the '$'?
> 
> Of cource it's because of Windows.
> 
> object CheckCommand "powershell" {
>     import "plugin-check-command"
>     command = [
> "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe" ]
>     arguments = {
>                 "-command" = {
>                 value = "$ps_command$ ;*exit $LASTEXITCODE*"
>                     order = -1
> }
>     "-args" = {
>                 value = "$ps_args$"
>                     order = 99
>                 }
> }
> 
> }
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/language-reference#string-literals

Alex

_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to