View previous topic :: View next topic |
Author |
Message |
Son_Of_Diablo
Joined: 01 Nov 2016 Posts: 5
|
Posted: Fri Nov 04, 2016 3:43 am Post subject: Agent does not support HTTP test |
|
|
Hello
I'm trying to setup a HTTP test so I can check the header of some sites (look for response codes).
But HM gives me the following message when I try to create the test:
Quote: | Warning: Agent AgentName does not support specified test.
Would you like to perform this test by HostMonitor? |
I need the agent to run the test as the site isn't available publicly.
HostMonitor version: 9.58
Agent version: 4.62
Thanks for reading |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
|
Back to top |
|
|
Son_Of_Diablo
Joined: 01 Nov 2016 Posts: 5
|
Posted: Fri Nov 04, 2016 5:07 am Post subject: |
|
|
I have looked at that as an option, but it doesn't look like it can check the header for response codes. |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Fri Nov 04, 2016 8:31 am Post subject: |
|
|
URL Request test may check HTTP header and HTTP code.
This can be done using variables %HttpCode% and %HttpHeader%.
E.g. If you need to set Warning status if HTTP code is 403, you may use "Use Warning status if" option with expression like the following:
'%HTTPCode%'=='403'
another example of "Use Warning status if" expression:
('%HTTPCode%'=='403') OR ('%HTTPCode%'=='302')
Please note, "Use Warning status if" option is located on Test properties dialog and can be hidden.
You may press "[+]" icon above "Help" button to show all "Optional status processing" options.
Please check for details at:
http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#specificmacros |
|
Back to top |
|
|
Son_Of_Diablo
Joined: 01 Nov 2016 Posts: 5
|
Posted: Wed Nov 09, 2016 1:45 am Post subject: |
|
|
KS-Soft Europe wrote: | URL Request test may check HTTP header and HTTP code.
This can be done using variables %HttpCode% and %HttpHeader%.
E.g. If you need to set Warning status if HTTP code is 403, you may use "Use Warning status if" option with expression like the following:
'%HTTPCode%'=='403'
another example of "Use Warning status if" expression:
('%HTTPCode%'=='403') OR ('%HTTPCode%'=='302')
Please note, "Use Warning status if" option is located on Test properties dialog and can be hidden.
You may press "[+]" icon above "Help" button to show all "Optional status processing" options.
Please check for details at:
http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#specificmacros |
Thank you very much! that just saved my behind |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Nov 09, 2016 7:04 am Post subject: |
|
|
You are welcome! |
|
Back to top |
|
|
|