summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_tcp.t
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2007-02-14 10:11:07 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2007-02-14 10:11:07 (GMT)
commit7106d10ab26d43c1ae1ff4d55397c38147222b51 (patch)
tree263262d4c6ecc690070bf137c8e8b81f557dde0e /plugins/t/check_tcp.t
parent098d3be6a8c89b08cacc73f2eb0fb292eb2f2e96 (diff)
downloadmonitoring-plugins-7106d10ab26d43c1ae1ff4d55397c38147222b51.tar.gz
Documentation fix re: --escape flag. Fix of ./check_tcp test to webservers
to make it more standards compliant git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1620 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t/check_tcp.t')
-rw-r--r--plugins/t/check_tcp.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/t/check_tcp.t b/plugins/t/check_tcp.t
index 67e527a..c38fca7 100644
--- a/plugins/t/check_tcp.t
+++ b/plugins/t/check_tcp.t
@@ -31,7 +31,10 @@ $t += checkCmd( "./check_tcp $host_tcp_http -p 80 -wt 300 -ct 600", 0
31$t += checkCmd( "./check_tcp $host_tcp_http -p 81 -wt 0 -ct 0 -to 1", 2 ); # use invalid port for this test 31$t += checkCmd( "./check_tcp $host_tcp_http -p 81 -wt 0 -ct 0 -to 1", 2 ); # use invalid port for this test
32$t += checkCmd( "./check_tcp $host_nonresponsive -p 80 -wt 0 -ct 0 -to 1", 2 ); 32$t += checkCmd( "./check_tcp $host_nonresponsive -p 80 -wt 0 -ct 0 -to 1", 2 );
33$t += checkCmd( "./check_tcp $hostname_invalid -p 80 -wt 0 -ct 0 -to 1", 2 ); 33$t += checkCmd( "./check_tcp $hostname_invalid -p 80 -wt 0 -ct 0 -to 1", 2 );
34$t += checkCmd( "./check_tcp $host_tcp_http -p 80 -s 'GET /\n' -e 'ThisShouldntMatch' -j", 1, $failedExpect ); 34
35# Need the \r\n to make it more standards compliant with web servers. Need the various quotes
36# so that perl doesn't interpret the \r\n and is passed onto command line correctly
37$t += checkCmd( "./check_tcp $host_tcp_http -p 80 -E -s ".'"GET /\r\n\r\n"'." -e 'ThisShouldntMatch' -j", 1, $failedExpect );
35 38
36exit(0) if defined($Test::Harness::VERSION); 39exit(0) if defined($Test::Harness::VERSION);
37exit($tests - $t); 40exit($tests - $t);