[Nagiosplug-help] Sending control characters with check_tcp

Jason Bodnar jason at shakabuku.org
Tue Dec 13 16:45:02 CET 2005


Hi,

I have a service that expects messages to end with ^D (EOT). How can I get
check_tcp to send that? Here's how it works:

$ nc foo 3737
PING^D
ACK=0

(I enter the ^D by doing Ctl-V Ctl-D in the shell.)

I've tried the following with check_tcp:

$ /usr/lib/nagios/plugins/check_tcp -H foo -p 3737 -s 'PING\x04' -e ACK=0
$ /usr/lib/nagios/plugins/check_tcp -H foo -p 3737 -s 'PING^D' -e ACK=0
$ /usr/lib/nagios/plugins/check_tcp -H foo -p 3737 -s 'PING[Ctl-VCtl-D as
above]' -e ACK=0

but they all timeout so the EOT must not be getting sent. Is there a way to do
this with check_tcp?

--
Jason Bodnar
jason at shakabuku.org
http://www.shakabuku.org

UnWired Buyer. The best way to win on eBay. Period.
http://www.unwiredbuyer.com





More information about the Help mailing list