[Nagiosplug-help] Questions using negate?

Rick . rickm106 at hotmail.com
Mon Mar 17 20:43:04 CET 2003


I still get:

# ./negate check_http -H x.x.x.x -s \"word1 word2\" -u /pub/index.html

Could not open pipe: check_http -H x.x.x.x -s "word1 word2" -u 
/pub/index.html






>From: Subhendu Ghosh <sghosh at sghosh.org>
>To: Nagiosplug-help at lists.sourceforge.net
>Subject: RE: [Nagiosplug-help] Questions using negate?
>Date: Mon, 17 Mar 2003 22:11:26 -0500 (EST)
>MIME-Version: 1.0
>Received: from sc8-sf-list2.sourceforge.net ([66.35.250.206]) by 
>mc3-f16.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 17 
>Mar 2003 19:14:11 -0800
>Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.13] 
>helo=sc8-sf-list1.sourceforge.net)by sc8-sf-list2.sourceforge.net with 
>esmtp (Exim 3.31-VA-mm2 #1 (Debian))id 18v7Wm-0002rE-00; Mon, 17 Mar 2003 
>19:12:36 -0800
>Received: from smtp-out.comcast.net ([24.153.64.110] 
>helo=smtp.comcast.net)by sc8-sf-list1.sourceforge.net with esmtp (Exim 
>3.31-VA-mm2 #1 (Debian))id 18v7W1-00051f-00for 
><Nagiosplug-help at lists.sourceforge.net>; Mon, 17 Mar 2003 19:11:49 -0800
>Received: from jersey.sghosh.org (bgp510508bgs.verona01.nj.comcast.net 
>[68.38.20.121]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 
>HotFix 1.12 (built Feb 13 2003)) with ESMTP id 
><0HBX001OXCV2KF at mtaout10.icomcast.net> for 
>Nagiosplug-help at lists.sourceforge.net; Mon, 17 Mar 2003 22:11:27 -0500 
>(EST)
>Received: from calcutta.sghosh.org (calcutta.sghosh.org [192.168.0.5])by 
>jersey.sghosh.org (8.11.6/8.11.6) with ESMTP id h2I3BQu24018	for 
><Nagiosplug-help at lists.sourceforge.net>; Mon, 17 Mar 2003 22:11:26 -0500
>Received: from localhost (sghosh at localhost)by calcutta.sghosh.org 
>(8.11.6/8.11.6) with ESMTP id h2I3BQQ00400	for 
><Nagiosplug-help at lists.sourceforge.net>; Mon, 17 Mar 2003 22:11:26 -0500
>X-Message-Info: UZmYcfFpTCewzfqvyl1d15R59mlxBfYY
>In-reply-to: <F29FOB5T4jLdEMRtS4S0000afa1 at hotmail.com>
>Message-id: <Pine.LNX.4.44.0303172210080.32711-100000 at calcutta.sghosh.org>
>X-Authentication-warning: calcutta.sghosh.org: sghosh owned process doing 
>-bs
>Sender: nagiosplug-help-admin at lists.sourceforge.net
>Errors-To: nagiosplug-help-admin at lists.sourceforge.net
>X-BeenThere: nagiosplug-help at lists.sourceforge.net
>X-Mailman-Version: 2.0.9-sf.net
>Precedence: bulk
>List-Help: 
><mailto:nagiosplug-help-request at lists.sourceforge.net?subject=help>
>List-Post: <mailto:nagiosplug-help at lists.sourceforge.net>
>List-Subscribe: 
><https://lists.sourceforge.net/lists/listinfo/nagiosplug-help>,<mailto:nagiosplug-help-request at lists.sourceforge.net?subject=subscribe>
>List-Id: Nagios Plugin Help List <nagiosplug-help.lists.sourceforge.net>
>List-Unsubscribe: 
><https://lists.sourceforge.net/lists/listinfo/nagiosplug-help>,<mailto:nagiosplug-help-request at lists.sourceforge.net?subject=unsubscribe>
>List-Archive: 
><http://sourceforge.net/mailarchive/forum.php?forum=nagiosplug-help>
>X-Original-Date: Mon, 17 Mar 2003 22:11:26 -0500 (EST)
>Return-Path: nagiosplug-help-admin at lists.sourceforge.net
>X-OriginalArrivalTime: 18 Mar 2003 03:14:12.0127 (UTC) 
>FILETIME=[72C5BAF0:01C2ECFC]
>
>I thinks you need backslash to escape not forward slash...
>
>-s \"word1 word2\"
>
>-sg
>
>On Tue, 18 Mar 2003, Rick . wrote:
>
> > Thanks Subhendu,
> >
> > The plugin works a lot better. My only problem now is that i need to use 
>the
> > -s command to check for a string of text using check_http. The string 
>needs
> > to be two words.
> > When i put the two words in the quotes "word1 word2" with check_http 
>only,
> > the command works fine. But as soon as i negate the check_http command, 
>it
> > doesn't work with more than one word in the string.
> > I have tried -s /"word1 word2/" etc but unfortunately it isn't working.
> >
> > Is there any way to do this?
> >
> > Thanks alot!
> >
> > Rick :)
> >
> >
> >
> >
> >
> > >From: Subhendu Ghosh <sghosh at sghosh.org>
> > >To: Nagiosplug-help at lists.sourceforge.net
> > >Subject: RE: [Nagiosplug-help] Questions using negate?
> > >Date: Fri, 14 Mar 2003 19:10:05 -0500 (EST)
> > >
> > >
> > >There was a recent patch applied on negate - you might want to grab the
> > >latest version of negate from CVS...
> > >
> > >-sg
> > >
> > >On Thu, 6 Mar 2003, Rick . wrote:
> > >
> > > > Hi,
> > > >
> > > > I downloaded and tested this plugin, and i am having the same 
>problem.
> > > >
> > > > The plugin is always giving an OK, whether the negated plugin is OK 
>or
> > > > CRITICAL.
> > > >
> > > > Does anybody know how to fix this?
> > > >
> > > > Thanks,
> > > >
> > > > Rick.
> > > >
> > > >
> > > >
> > > >
> > > > >From: Rose David <DRose at snyderdrug.com>
> > > > >To: Nagiosplug-help at lists.sourceforge.net
> > > > >Subject: RE: [Nagiosplug-help] Questions using negate?
> > > > >Date: Wed, 5 Mar 2003 11:38:13 -0600
> > > > >
> > > > >Thank you for your response and input.  I have now used your script 
>and
> > >it
> > > > >has gotten me farther along than I have been able to this point.  
>Here
> > >is
> > > > >the catch.  When I run this on the command line, it works just as
> > > > >advertised, switching the return codes from 2 to 0 or from 0 to 2.
> > > > >However,
> > > > >when I run it in nagios as a command, either a Critical or an OK 
>state
> > >on
> > > > >the check_ping shows up as OK.  Using the same command, I get the
> > >following
> > > > >two results:
> > > > >
> > > > >Status		Status Information
> > > > >OK			CRITICAL - Plugin timed out after 10 seconds
> > > > >OK			PING OK - Packet loss = 20%, RTA = 245.95 ms
> > > > >
> > > > >Any further input as to what I might do to get this to work?
> > > > >
> > > > >
> > > > >
> > > > > > We re-wrote negate as a simple perl script.  I have tried your
> > > > > > check_ping input with my version of negate and here is what I 
>get:
> > > > > >
> > > > > >
> > > > > > root at lxxxx:[/home/nagios/etc]: /home/nagios/libexec/new-negate
> > > > > > /home/nagios/libexec/check_ping -H auspap01 -w 1000.0,100% -c
> > > > > > 1000.0,100% -p 5
> > > > > > Command is: /home/nagios/libexec/check_ping -H host01 -w
> > > > > > 1000.0,100% -c
> > > > > > 1000.0,100% -p 5PING OK - Packet loss = 0%, RTA = 4.62 ms
> > > > > > Return code is 0
> > > > > > root at lapin:[/home/nagios/etc]: echo $?
> > > > > > 2
> > > > > >
> > > > > > The first return code is the actual return from the check_ping
> > >plugin,
> > > > > > the second $? output is the negated output.  Since check_ping
> > >produces
> > > > > > multiple return codes depending on the result, it is
> > > > > > difficult to use a
> > > > > > generic negate plugin.  I have included our version of the 
>plugin
> > > > > > "new-negate.  Hope this helps..
> > > > > >
> > > > > > Good luck
> > > > > >
> > > > > >
> > > > > > John Cockerham
> > > > > > Sr. Network Administrator
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Hotmail now available on Australian mobile phones. Go to
> > > > http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by:Crypto Challenge is now open!
> > > > Get cracking and register here for some mind boggling fun and
> > > > the chance of winning an Apple iPod:
> > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > > > _______________________________________________
> > > > Nagiosplug-help mailing list
> > > > Nagiosplug-help at lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > > > ::: Please include plugins version (-v) and OS when reporting any 
>issue.
> > > > ::: Messages without supporting info will risk being sent to 
>/dev/null
> > > >
> > >
> > >--
> > >
> > >
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.net email is sponsored by:Crypto Challenge is now open!
> > >Get cracking and register here for some mind boggling fun and
> > >the chance of winning an Apple iPod:
> > >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > >_______________________________________________
> > >Nagiosplug-help mailing list
> > >Nagiosplug-help at lists.sourceforge.net
> > >https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > >::: Please include plugins version (-v) and OS when reporting any 
>issue.
> > >::: Messages without supporting info will risk being sent to /dev/null
> >
> >
> > _________________________________________________________________
> > Hotmail now available on Australian mobile phones. Go to
> > http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp
> >
>
>--
>
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:Crypto Challenge is now open!
>Get cracking and register here for some mind boggling fun and
>the chance of winning an Apple iPod:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>_______________________________________________
>Nagiosplug-help mailing list
>Nagiosplug-help at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>::: Please include plugins version (-v) and OS when reporting any issue.
>::: Messages without supporting info will risk being sent to /dev/null


_________________________________________________________________
MSN Instant Messenger now available on Australian mobile phones. Go to  
http://ninemsn.com.au/mobilecentral/hotmail_messenger.asp





More information about the Help mailing list