[Nagiosplug-devel] [ nagiosplug-Patches-1339134 ] Fixes --mismatch option for check_tcp

SourceForge.net noreply at sourceforge.net
Wed Oct 26 20:31:48 CEST 2005


Patches item #1339134, was opened at 2005-10-26 22:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1339134&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: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Rick Frey (grater)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fixes --mismatch option for check_tcp

Initial Comment:
check_tcp correctly parsed options for --mismatch
option and set var expect_mismatch_state, but never
used var when mismatch was detected (string mismatch
always returned STATE_WARNING regardless of mismatch
argument).

Patch to check_tcp 1.66 (supplied with 1.4.2 plugins):

*** check_tcp.c Sun Jun  5 12:43:58 2005
--- check_tcp.c.patch   Wed Oct 26 22:20:30 2005
***************
*** 350,356 ****
  
        /* did we get the response we hoped? */
        if(match == -2 && result != STATE_CRITICAL)
!               result = STATE_WARNING;
  
        /* reset the alarm */
        alarm (0);
--- 350,356 ----
  
        /* did we get the response we hoped? */
        if(match == -2 && result != STATE_CRITICAL)
!               result = expect_mismatch_state;
  
        /* reset the alarm */
        alarm (0);

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

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




More information about the Devel mailing list