Xymon Mailing List Archive search

http test bug?

5 messages in this thread

list Vernon Everett · Mon, 9 May 2005 11:59:00 +0800 ·
 Hi Henrik
 Might have a bug here.
 In my bb-hosts, I have the following line
192.168.0.8     afgweb01   # http://afgweb01.afgonline.com.au/test
 However, the http test returns green all the time, even when the service
was down.
When I clicked on the green diamond, I got this  ---snip---
  http://afgweb01.afgonline.com.au/test - OK
 HTTP/1.1 401 Access Denied
Server: Microsoft-IIS/5.0
Date: Mon, 09 May 2005 03:19:15 GMT
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
Connection: close
Content-Length: 24
Content-Type: text/html
 Seconds:     0.00
---snip---
 Should this not have been displaying as red?
 Cheers
    Vernon
   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

NOTICE: This message and any attachments are confidential and may contain copyright material of Australian Finance Group Limited or a third party. It is intended solely for the purpose of the addressee and any other named recipient. If you are not the intended recipient, any use, distribution, disclosure or copying of this message is strictly prohibited. The confidentiality attached to this message is not waived or lost by reason of the mistaken transmission or delivery to any unintended party. If you have received this message in error, please notify the author immediately or contact Australian Finance Group on +61 8 9420 7888.
list Henrik Størner · Mon, 9 May 2005 07:40:09 +0200 ·
On Mon, May 09, 2005 at 11:59:00AM +0800, Vernon Everett wrote:

[http response 401 (Unauthorized) gives a green http status]

This is deliberate. The purpose of the test is to determine if the web
server is working, and sending back a 401 status (which in a browser 
would trigger a pop-up to enter a username+password) is sufficient
indication that the server is indeed working.


Henrik
list Vernon Everett · Mon, 9 May 2005 14:44:10 +0800 ·
Makes sense.

Is there any way (besides a custom script) to check content of a web
page?
http://www.mywebpage.com/users/special.html must contain the string
"XXXXX" or must return output matching file /dir/samples/sample_match.

In the particular case below, although the web server was up, the web
application was classified as down. (An error caused it to prompt for
username and password)

Cheers
  Vernon

P.S. The offer of those cold ones still stands. :-)
Hobbit is an amazing tool.
You have no idea how much kudos I have received for it. We can predict
issues, pre-empt problems, and monitor almost anything automatically.
I wonder how I ever managed without it.
quoted from Vernon Everett


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Monday, 9 May 2005 1:40 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] http test bug?

On Mon, May 09, 2005 at 11:59:00AM +0800, Vernon Everett wrote:

[http response 401 (Unauthorized) gives a green http status]

This is deliberate. The purpose of the test is to determine if the web
server is working, and sending back a 401 status (which in a browser would trigger a pop-up to enter a username+password) is sufficient
indication that the server is indeed working.


Henrik


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

NOTICE: This message and any attachments are confidential and may contain copyright material of Australian Finance Group Limited or a third party. It is intended solely for the purpose of the addressee and any other named recipient. If you are not the intended recipient, any use, distribution, disclosure or copying of this message is strictly prohibited. The confidentiality attached to this message is not waived or lost by reason of the mistaken transmission or delivery to any unintended party. If you have received this message in error, please notify the author immediately or contact Australian Finance Group on +61 8 9420 7888.
list Henrik Størner · Mon, 9 May 2005 12:31:14 +0200 ·
quoted from Vernon Everett
On Mon, May 09, 2005 at 02:44:10PM +0800, Vernon Everett wrote:
Is there any way (besides a custom script) to check content of a web
page?
http://www.mywebpage.com/users/special.html must contain the string
"XXXXX"
This is called a "content check". See the bb-hosts man page, but it
looks like this:

10.0.0.1   www.foo.com  # cont;http://mywebpage.com/users/special.html;XXXXX
quoted from Vernon Everett
P.S. The offer of those cold ones still stands. :-)
Hobbit is an amazing tool.
You have no idea how much kudos I have received for it. We can predict
issues, pre-empt problems, and monitor almost anything automatically.
I wonder how I ever managed without it.
I hear that from lots of people, so I guess I must be doing something 
right!


Regards,
Henrik
list Vernon Everett · Tue, 10 May 2005 08:29:38 +0800 ·
D'oh!
Could it be any simpler :-)

Thanks.

Cheers
    Vernon
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Monday, 9 May 2005 6:31 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] http test bug?

On Mon, May 09, 2005 at 02:44:10PM +0800, Vernon Everett wrote:
Is there any way (besides a custom script) to check content of a web
page?
http://www.mywebpage.com/users/special.html must contain the string
"XXXXX"
This is called a "content check". See the bb-hosts man page, but it
looks like this:

10.0.0.1   www.foo.com  #
cont;http://mywebpage.com/users/special.html;XXXXX
P.S. The offer of those cold ones still stands. :-)
Hobbit is an amazing tool.
You have no idea how much kudos I have received for it. We can predict
issues, pre-empt problems, and monitor almost anything automatically.
I wonder how I ever managed without it.
I hear that from lots of people, so I guess I must be doing something right!


Regards,
Henrik


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

NOTICE: This message and any attachments are confidential and may contain copyright material of Australian Finance Group Limited or a third party. It is intended sole_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

NOTICE: This message and any attachments are confidential and may contain copyright material of Australian Finance Group Limited or a third party. It is intended sole_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

NOTICE: This message and any attachments are confidential and may contain copyright material of Australian Finance Group Limited or a third party. It is intended sole_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

NOTICE: This message and any attachments are confidential and may contain copyright material of Australian Finance Group Limited or a third party. It is intended solely for the purpose of the addressee and any other named recipient. If you are not the intended recipient, any use, distribution, disclosure or copying of this message is strictly prohibited. The confidentiality attached to this message is noly for the purpose of the addressee and any other named recipient. If you are not the intended recipient, any use, distribution, disclosure or copying of this message is strictly prohibited. The confidentiality attached to this message is noly for the purpose of the addressee and any other named recipient. If you are not the intended recipient, any use, distribution, disclosure or copying of this message is strictly prohibited. The confidentiality attached to this message is noly for the purpose of the addressee and any other named recipient. If you are not the intended recipient, any use, distribution, disclosure or copying of this message is strictly prohibited. The confidentiality attached to this message is not waived or lost by reason of the mistaken transmission or delivery to any unintended party. If you have received this message in error, please notify the author immediately or contact Australian Finance Group on +61 8 9420 7888.t waived or lost by reason of the mistaken transmission or delivery to any unintended party. If you have received this message in error, please notify the author immediately or contact Australian Finance Group on +61 8 9420 7888.t waived or lost by reason of the mistaken transmission or delivery to any unintended party. If you have received this message in error, please notify the author immediately or contact Australian Finance Group on +61 8 9420 7888.t waived or lost by reason of the mistaken transmission or delivery to any unintended party. If you have received this message in error, please notify the author immediately or contact Australian Finance Group on +61 8 9420 7888.