Xymon Mailing List Archive search

Web Page Check

list Gary Baluha
Wed, 10 Jan 2007 16:34:20 -0500
Message-Id: <user-7d32bfa376ec@xymon.invalid>

Hobbit also supports some basic (though fairly complete) options of doing
this itself.
Look at the Hobbit man page for the bb-hosts file, and look for a section
titled "HTTP Tests".
I believe the "post" test will work.

If the options Hobbit has doesn't do enough, then you'll probably need to
use a script as below (which should also be easy enough to do).

On 1/10/07, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid> wrote:
On 1/10/07, James Wade <user-659655b2ea05@xymon.invalid> wrote:
Does anyone know how I can integrate hobbit with

a test that would check web page logins?


For example, We have a Web Server which connects

to an App. Server which connects to a Database Server.


To test functionality, we login to the Web Server, then enter

data into a form, which stores the information into the database.

This is just a test user account.


I'd like to setup a test that does the same thing and have hobbit

alert us. For example, you can an error logging in, or an error
submitting

your data in the form.

I'm doing exactly that with a bunch of scripts I wrote for Big Bother,
before switching to Hobbit.  I'm using curl to fetch web pages, then
grep, awk, or whatever to pick out interesting stuff to make sure the
page is correct.  Lather, rinse, repeat.  Curl handles cookies
properly, proxies, authenticating via Basic Auth, etc.

I'm about to go to bed right now, but if you're interested I'll try to
get some sample stuff written up when I get to work tonight.

Ralph Mitchell