[nagiosplug] fixed check_tcp test

Nagios Plugin Development nagios-plugins at users.sourceforge.net
Wed Aug 21 20:20:48 CEST 2013


 Module: nagiosplug
 Branch: master
 Commit: 817ea52cc0288b708341a6dc73af3db7c40f3b86
 Author: Sven Nierlein <sven at nierlein.de>
   Date: Wed Aug 21 17:48:14 2013 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=817ea52

fixed check_tcp test

A check with thresholds 9000,1 must exit with warning if the certificate expires in less
than 9000 but more than one day.

---

 plugins/t/check_tcp.t |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/t/check_tcp.t b/plugins/t/check_tcp.t
index d6808bf..c100cad 100644
--- a/plugins/t/check_tcp.t
+++ b/plugins/t/check_tcp.t
@@ -32,7 +32,7 @@ $t += checkCmd( "./check_tcp $host_tcp_http      -p 81 -wt   0 -ct   0 -to 1", 2
 $t += checkCmd( "./check_tcp $host_nonresponsive -p 80 -wt   0 -ct   0 -to 1", 2 );
 $t += checkCmd( "./check_tcp $hostname_invalid   -p 80 -wt   0 -ct   0 -to 1", 2 );
 $t += checkCmd( "./check_tcp -S -D 1 -H www.verisign.com -p 443",              0 );
-$t += checkCmd( "./check_tcp -S -D 9000,1    -H www.verisign.com -p 443",      0 );
+$t += checkCmd( "./check_tcp -S -D 9000,1    -H www.verisign.com -p 443",      1 );
 $t += checkCmd( "./check_tcp -S -D 9000      -H www.verisign.com -p 443",      1 );
 $t += checkCmd( "./check_tcp -S -D 9000,8999 -H www.verisign.com -p 443",      2 );
 $t += checkCmd( "./check_tcp -6 -p 80 www.heise.de",                           0 );





More information about the Commits mailing list