[Nagiosplug-devel] [check_tcp] -M option problem
Rick Frey
rick at gribnut.com
Thu Nov 3 23:21:31 CET 2005
I had also used same fix and submitted on project patch tracking system
just last week. I'm new to Nagios but didn't see a previous bug/patch
listed for the problem.
http://sourceforge.net/tracker/index.php?func=detail&aid=1339134&group_id=29880&atid=397599
- Rick
Dmitriy Budashny wrote:
>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
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by:
>Tame your development challenges with Apache's Geronimo App Server. Download
>it for free - -and be entered to win a 42" plasma tv or your very own
>Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
>_______________________________________________________
>Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
>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
>
>
--
Reclaim your Inbox by trying Thunderbird!
<http://www.mozilla.org/products/thunderbird/>
and while you're at it
Get Firefox! <http://www.mozilla.org/products/firefox/>
More information about the Devel
mailing list