Set Http Test to get web server status
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
Set Http Test to get web server status
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!
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!
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
Re: Set Http Test to get web server status
Actually, what I need is to be able to set an alert depending on an http server status
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]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.)
Last edited by Robert_in_MTL on Tue Jan 09, 2007 6:47 am, edited 1 time in total.
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
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Regards
Alex
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
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
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
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
Any Estimate ?
Hi Alex,
Glad we are at 6.70!
Do you have any idea for the release of a "HTTP Status" test?
Thanks
Glad we are at 6.70!
Do you have any idea for the release of a "HTTP Status" test?
Thanks
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
There are 2 new macro variables that provide information about result of HTTP test:
%HttpCode%
%HttpHeader%
Regards
Alex
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
-
- Posts: 229
- Joined: Tue Jun 20, 2006 1:20 pm
- Location: Montreal, Quebec
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'
)
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.
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:](./images/smilies/icon_wink.gif)
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.
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)I would expect to have either a value or an empty column right
Probably, but not in version 7.00.Will URL tests give me the %HttpCode% number in the future?
Regards
Alex