Set Http Test to get web server status

Need new test, action, option? Post request here.
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Set Http Test to get web server status

Post by Robert_in_MTL »

Hi Alex, (posting my 2006-10-19 10:15 mail request to keep it alive)

I went through the help pages and I could not precisely find how to make an HTTP or URL test to get the webserver status in the reply or to get that status in an email alert somehow.

200 or 2xx == OK
In group 300 = accept or refuse (already in the http test)
Alert if status is in group 400 or 500 and display the precise status number (ex 400, 401.3, 500.13, 500.100, 403.9, etc.)

Thanks again,
Bonne journée. Keep up your awesome work!
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I don't think its a good idea to display HTTP code in Reply field.. HostMonitor uses Reply field to show response time and Log Analyzer uses this data to generate response-time charts.
Macro variable? Yes, we can implement it. Medium priority

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Re: Set Http Test to get web server status

Post by Robert_in_MTL »

Actually, what I need is to be able to set an alert depending on an http server status
Robert_in_MTL wrote: to get the webserver status in the reply or to get that status in an email alert somehow.
example: 200 or 2xx == OK
In group 300 = accept or refuse (already in the http test)
Alert if status is in group 400 or 500 and display the precise status number (ex 400, 401.3, 500.13, 500.100, 403.9, etc.)
It doesn't need to be in the reply but HM must be able to fire an alert depending on the tested server status, maybe in an advanced tab like some tests[/quote]
Last edited by Robert_in_MTL on Tue Jan 09, 2007 6:47 am, edited 1 time in total.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may use variables to trigger "advanced mode" action, so its not a problem.
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

I understand...

When you implement it, I will need the resulting status code in the mail though via a macro(ex: 500.13).

Also, I need to log the test result in the odbc log to create an history for us and SLA summary for customer quotes.

If youd think putting the server status in the reply is not a good Idea (I agree with you not to change a test behavior), maybe creating a new kind of test for this, allowing us to have a reply as "Server Status" would be the simplest and would permit a thighter http service monitoring. ... Or maybe a drop down menu to allow us to select the value that will appear in the reply field.

We are aiming at monitoring all our sites with this test from Host Monitor.

Hope this clarifies the need.

Thanks
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, may be we will create some new test methods in version 6.70. Right now we want to implement some new options...

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Hi !
Any news on this?
(Sorry, I know we are not at 6.70 but I need it)

Do you have a test beta that I could try and give you feed back?
I could help you on beta testing for this one if it helps.

I really need this test.

Sorry for rushing, I know your'e busy.

- Robert
.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, we are working on other tasks

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Any Estimate ?

Post by Robert_in_MTL »

Hi Alex,

Glad we are at 6.70!

Do you have any idea for the release of a "HTTP Status" test?

Thanks
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We are working on test improvements but we will improve some other tests first. E.g. people requested DNS test improvement a year ago

Regards
Alex
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, version 6.74 Beta available at http://www.ks-soft.net/hostmon.eng/downpage.htm
There are 2 new macro variables that provide information about result of HTTP test:
%HttpCode%
%HttpHeader%

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Thank you!

I thought that you wanted to create a whole new test for that... (So that the reply could be the value returned by the server... )

I will begin testing this.

Again, thanks very much for not forgetting!
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I thought that you wanted to create a whole new test for that... (So that the reply could be the value returned by the server... )
This would take more time to implement. Additional variables should work just fine...
Again, thanks very much for not forgetting!
You are welcome :)

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

My guess is that you will say it is but...

Is it normal that %HttpCode% logs example: 200 in the datsbase for HTTP tests, but it logs '%HttpCode%' for URL tests?
(I know that the request was for 'http tests' :wink: )

I would expect to have either a value or an empty column right?

Will URL tests give me the %HttpCode% number in the future?

(Because URL is the only way to go with agents... Can you make that happen?)

Thank you.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I would expect to have either a value or an empty column right
In version 7.00, it does return a value for HTTP tests or an empty string for other tests (version 6.xx returns %HttpCode% string)
Will URL tests give me the %HttpCode% number in the future?
Probably, but not in version 7.00.

Regards
Alex
Post Reply