[Nagiosplug-devel] [ nagiosplug-Bugs-3538991 ] check_tcp shows no output when changing desired exit state

SourceForge.net noreply at sourceforge.net
Fri Jun 29 16:12:41 CEST 2012


Bugs item #3538991, was opened at 2012-06-29 07:12
Message generated for change (Tracker Item Submitted) made by snednarb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3538991&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: None
Group: v1.4.14
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: SnednarB (snednarb)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_tcp shows no output when changing desired exit state

Initial Comment:
The default exit code when a connection is refused is critical, but I only desire a warning (--refuse=warn). Also, I noticed that (--refuse=ok) returns output that gives the impression that the connection succeeded. The output should be the same "Connection refused" regardless of the desired exit code.

>./check_tcp -H localhost -p 999 --refuse=crit
Connection refused
>echo $?
2

>./check_tcp -H localhost -p 999 --refuse=warn
>echo $?
1

>./check_tcp -H localhost -p 999 --refuse=ok
TCP OK - 0.000 second response time on port 999|time=0.000182s;;;0.000000;10.000000
>echo $?
0


Plugin Version (-V output): v1.4.16 ( also v1.4.14 ) 
Plugin Name: check_tcp
Plugin Commandline showing issues: --refuse=warn | --refuse=ok
Operating System: Linux 2.6.31-14-server #48-Ubuntu SMP Fri Oct 16 15:07:34 UTC 2009 x86_64 GNU/Linux
Architecture:x64
Compiler: gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) [posix]


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

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




More information about the Devel mailing list