Special characters

Mark Campbell mcc171 at psu.edu
Mon Aug 22 19:16:41 CEST 2011


So trying to get s1t at Home (or something similar with an @ symbol in it) 
to a check_blah command.




On 8/22/2011 12:33 PM, Allan Clark wrote:
> On Mon, Aug 22, 2011 at 07:43, Mark Campbell<mcc171 at psu.edu>  wrote:
>> I am trying to set a special character in a variable called $USER12$.
>> This is then used in a command definition  check_blah -H $HOSTADDRESS$
>> -u $USER11$ -p $USER12$ -l hello -s read -w $ARG1$ -c $ARG2$
>>
>>
>> The Var definition looks like this   $USER12$=s1t\\@Home
>>
>>
>> I have also tried s1t\@Home and 's1t at Home'  and s1t\\\\@Home.  All have
>> failed.
>>
>> Has anyone made this work in the past?
> It's difficult to know what you're actually trying to get as the value
> -- are you trying for a value with "\@" or "@" in it, for example?
>
> This may be a case of the layers of scripting and passing -- the
> various escaping might get ripped off at each layer.  In that case,
> the following debugging wrapper might add another layer to work with,
> but it might help show what's actually getting use in your plugin
> call, which can help you randomize to find the right value:
>
> http://www.waggy.at/nagios/capture_plugin.htm
>
> Allan
>
>



------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list