KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Agent does not support HTTP test

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Son_Of_Diablo



Joined: 01 Nov 2016
Posts: 5

PostPosted: Fri Nov 04, 2016 3:43 am    Post subject: Agent does not support HTTP test Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Nov 04, 2016 4:43 am    Post subject: Reply with quote

You may use URL Request test instead:
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#url
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Son_Of_Diablo



Joined: 01 Nov 2016
Posts: 5

PostPosted: Fri Nov 04, 2016 5:07 am    Post subject: Reply with quote

KS-Soft Europe wrote:
You may use URL Request test instead:
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#url



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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Fri Nov 04, 2016 8:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Son_Of_Diablo



Joined: 01 Nov 2016
Posts: 5

PostPosted: Wed Nov 09, 2016 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Wed Nov 09, 2016 7:04 am    Post subject: Reply with quote

You are welcome!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index