[Nagiosplug-devel] [ nagiosplug-Bugs-1475901 ] check_tcp fails propery parse: -E -s "\\\r"

SourceForge.net noreply at sourceforge.net
Fri Apr 28 02:01:05 CEST 2006


Bugs item #1475901, was opened at 2006-04-25 02:53
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1475901&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Argument proccessing
Group: Release (specify)
>Status: Pending
Resolution: None
Priority: 5
Submitted By: John Rouillard (rouilj)
>Assigned to: Ton Voon (tonvoon)
Summary: check_tcp fails propery parse: -E -s "\\\r"

Initial Comment:
With nagios-plugins 1.4.3 running on centos 4.2 redhat
based linux.

It gobbles all the \'s after the doubled one and
prints r rather than carrige return.

It should parse it as \ <cr>.

Using the string:  "\\a\r" properly sends
"\ a <cr>". This makes it impossible to send
some strings.

-- rouilj


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2006-04-28 10:00

Message:
Logged In: YES 
user_id=664364

John,

I think this is a shell problem:

$ echo "\\\r"
\\r
$ echo '\\\r'
\\\r

I think if you use single quotes around the -s option, the correct number of 
backslashes will be passed to check_tcp.

I've marked the call as pending. Please change if you think this is still a 
problem.

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1475901&group_id=29880




More information about the Devel mailing list