[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: advanced HTTP query (cookies)

From: Martin Pala
Subject: Re: advanced HTTP query (cookies)
Date: Fri, 26 Aug 2005 18:25:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050802 Debian/1.7.10-1


i think you can use monit's SEND/EXPECT statements - example usage:

 if failed host port 4040
    send "Open, Sesame!\r\n"
    expect "Please enter the cave\r\n"
    send "Shut, Sesame!\r\n"
    expect "See you later [A-Za-z ]+\r\n"
 then restart

It should be possible to write the send/expect sequence as http requests with the cookie in the http header where needed ...


Ben Hartshorne wrote:
Hi all,

I am interested in monitoring a web site in a little bit more depth.
By testing certain funcitonality through the front end, I can infer that
a service suporting the front end is running successfully.  I'm also
monitoring the back end directly, but I like to get it 'as the customer
sees it.'
In order to complete this HTTP query, I must include cookies in my
request.  The following wget line will successfully get as deep as I
would like to go:

wget --cookies=off --header "Cookie: 

I must then parse the returned page for "Jobs 1 - 1" to verify success.

I don't see any documentation on how to specify a more complex query
using the 'url' option, which would be best.
I was suprised not to see an external program as a test for monit - i.e.
run an external program (such as the wget line above, or a shell script
that runs wget and then parses the output on its own), which then
returns success or failure.
Do any of you have any suggestions on how to implement the test I need?




To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]