[Nagiosplug-devel] [check_tcp] -M option problem

Dmitriy Budashny dmitriy.budashny at gmail.com
Thu Nov 3 04:32:45 CET 2005


Please take a look at my patch, i'm not sure if i got all right, but
it have fixed probs w/ -M option and now check_tcp understands this
option.

[(dym at sweeper):~/src]$ diff -Naur ../check_tcp.c nagiosplug/plugins/check_tcp.c
--- ../check_tcp.c      2005-11-03 14:25:25.000000000 +0200
+++ nagiosplug/plugins/check_tcp.c      2005-10-31 22:03:19.000000000 +0200
@@ -311,7 +311,7 @@

        /* did we get the response we hoped? */
        if(match == -2 && result != STATE_CRITICAL)
-               result = expect_mismatch_state;
+               result = STATE_WARNING;

        /* reset the alarm */
        alarm (0);

--
wbr, dym




More information about the Devel mailing list