[Nagiosplug-devel] [ nagiosplug-Bugs-769398 ] Urlize and search strings in check_http

SourceForge.net noreply at sourceforge.net
Fri Jul 11 00:17:14 CEST 2003


Bugs item #769398, was opened at 2003-07-10 19:59
Message generated for change (Comment added) made by kdebisschop
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=769398&group_id=29880

Category: Argument proccessing
Group: Release (specify)
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Jeff Rodriguez (bigtangringo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Urlize and search strings in check_http

Initial Comment:
Create a check_http command which does a search that 
has multiple words. Make the first word actually exist on 
the page and the following words bogus.

The check will fail (as expected)

Then URLIZE the check you just made, it succeeds 
which it should not do. You never changed the actual 
check itself!

COMMAND: ./check_http  -H 'www.google.com' -
I 'www.google.com' -u '/' -s 'Google this does not exist'

OUTPUT: HTTP CRITICAL: string not found|time=  0.177


COMMAND: ./urlize 'http://www.google.com' ./check_http
  -H 'www.google.com' -I 'www.google.com' -u '/' -
s 'Google this does not exist'

OUTPUT: <A href="http://www.google.com">HTTP ok: 
HTTP/1.0 200 OK -   0.377 second response time 
|time=  0.377</A>

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

>Comment By: Karl DeBisschop (kdebisschop)
Date: 2003-07-11 03:16

Message:
Logged In: YES 
user_id=1671

This is not a flaw in urlize - the shell strips away your
quotes before urlize ever has a chance to see them. You want
something like:

./urlize 'http://www.google.com' "./check_http -H
'www.google.com' -I 'www.google.com' -u '/' -s 'Google this
does not exist'"


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

Comment By: Jeff Rodriguez (bigtangringo)
Date: 2003-07-10 20:00

Message:
Logged In: YES 
user_id=744211

check_http (nagios-plugins 1.3.0) 1.24
urlize (nagios-plugins 1.3.0) 1.5

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

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




More information about the Devel mailing list