[ nagiosplug-Bugs-3538991 ] check_tcp shows no output when changing desired exit state
SourceForge.net <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3538991, was opened at 2012-06-29 07:12 Message generated for change (Settings changed) 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: None 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________________ Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null