[Nagiosplug-devel] [ nagiosplug-Bugs-1475901 ] check_tcp fails propery parse: -E -s "\\\r"
SourceForge.net
noreply at sourceforge.net
Fri Apr 28 09:13:04 CEST 2006
Bugs item #1475901, was opened at 2006-04-24 21:53
Message generated for change (Comment added) made by rouilj
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: Deleted
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: John Rouillard (rouilj)
Date: 2006-04-28 12:12
Message:
Logged In: YES
user_id=707416
I agree, just tested and it seems to be a quoting error.
Sigh. Not sure why "\\\\\r" didn't work but.... that was
a long day. Sorry. Set ticket to deleted status since there
is no rejected/unfounded state.
-- rouilj
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2006-04-28 05: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