Hello All,

Found it in the docs this morning:

CHARACTERESCAPE SEQUENCE"\"\\\$$$<TAB>\t<CARRIAGE-RETURN>\r<LINE-FEED>\n
<BEL>\b<FORM-FEED>\f

In addition to these pre-defined escape sequences you can specify arbitrary
ASCII characters using the backslash character (\) followed by an ASCII
character in octal encoding.

On Wed, 1 Jul 2015 at 10:55 Bertalan Voros <[email protected]> wrote:

> Unfortunately this doesn't seem to work either, the agent doesn't start
> when it's like this. It's OK when the bit of code between * are removed.
> Nothing in the log either.
>
> On Wed, 1 Jul 2015 at 10:46 Alexander Wirt <[email protected]> wrote:
>
>> 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
>>
>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to