Re: [Nagios-users] Having single or double quotes in a custom variable

2010-09-06 Thread Diego Roccia
Single quotes are quite good, but, as Marc said, He needs to preserve them, too. The only simple idea I can give is escaping them. I don't know why it's not working, I'd advice to turn on command logging bye Diego On Mon, Sep 6, 2010 at 3:32 PM, Marc Powell wrote: > > On Sep 6, 2010, at 6:57 AM,

Re: [Nagios-users] Having single or double quotes in a custom variable

2010-09-06 Thread Marc Powell
On Sep 6, 2010, at 6:57 AM, Jelle Smet wrote: > _blah "one two three four" a b c d > > I want to use this custom variable in a command to execute like this: > > define command{ > > command_namecheck_linux_nrpe_all_disks > > command_line/bin/echo $_HOSTBLAH$ > /tmp/fubar.txt

Re: [Nagios-users] Having single or double quotes in a custom variable

2010-09-06 Thread Diego Roccia
You must to escape them _blah \"one two three four\" a b c d Diego On Mon, Sep 6, 2010 at 1:57 PM, Jelle Smet wrote: > Hi I have a custom host variable define likes this: > > _blah           "one two three four" a b c d > > I want to use this custom variable in a command to execute l

[Nagios-users] Having single or double quotes in a custom variable

2010-09-06 Thread Jelle Smet
Hi I have a custom host variable define likes this: _blah "one two three four" a b c d I want to use this custom variable in a command to execute like this: define command{ command_name check_linux_nrpe_all_disks command_line /bin/echo $_HOSTBLAH$ > /tmp/fubar.txt } In /tmp/fuba