Manoj Rana Posted December 17, 2020 Share Posted December 17, 2020 Hi, Im trying to setup HTTP-ECV Health Monitor tomcat based application. Please see my Monitor details below. I am basically looking for response code 200. The monitor getting error message "Pattern not found in response" Any one please suggest what i am doing wrong ? Thanks Manoj Link to comment Share on other sites More sharing options...
Salim Hurjuk Posted December 17, 2020 Share Posted December 17, 2020 Check out this CTX Article: NetScaler HTTP-ECV Monitors https://support.citrix.com/article/CTX209292NetScaler HTTP-ECV Monitor Probe Fails and Returns "404 Not Found" Response Codehttps://support.citrix.com/article/CTX209292 Link to comment Share on other sites More sharing options...
Manoj Rana Posted December 17, 2020 Author Share Posted December 17, 2020 @Salim Hurjuk Thanks for your reply I already looked both KB and not working for me. Only time it worked if i am not defining any receiving string. Which mean it is not real monitoring and not looking for string, response code etc. Thanks Thanks Manoj Link to comment Share on other sites More sharing options...
ArnaudP1 Posted December 17, 2020 Share Posted December 17, 2020 Hello In a simple way, you can create a directory like health inside webapps and create an index file named index.html inside webapps/health/ with the following contents. <HTML> <HEAD> <TITLE>Tomcat status</TITLE> </HEAD> <BODY> <H1>Tomcat Running</H1> </BODY> </HTML> And test with the following URL http://localhost:8080/health Link to comment Share on other sites More sharing options...
CarlStalhood Posted December 17, 2020 Share Posted December 17, 2020 Instead of HTTP-ECV, create a regular HTTP monitor. Regular HTTP monitors look for status codes instead of patterns. 2 Link to comment Share on other sites More sharing options...
Manoj Rana Posted December 17, 2020 Author Share Posted December 17, 2020 13 minutes ago, Carl Stalhood1709151912 said: Instead of HTTP-ECV, create a regular HTTP monitor. Regular HTTP monitors look for status codes instead of patterns. Thanks @carl I will try HTTP and let you know. Thanks Manoj Link to comment Share on other sites More sharing options...
Manoj Rana Posted December 17, 2020 Author Share Posted December 17, 2020 21 minutes ago, Arnaud Pain said: Hello In a simple way, you can create a directory like health inside webapps and create an index file named index.html inside webapps/health/ with the following contents. <HTML> <HEAD> <TITLE>Tomcat status</TITLE> </HEAD> <BODY> <H1>Tomcat Running</H1> </BODY> </HTML> And test with the following URL http://localhost:8080/health @Arnaud Pain Are saying with this i can use HTTP-ECV and receiving sting i can use "Tomcat Running"? Thanks Manoj Link to comment Share on other sites More sharing options...
ArnaudP1 Posted December 17, 2020 Share Posted December 17, 2020 Manoj, As Carl wrote, you can make a mix. 1. Create a html file in a folder (or use an already existing one) 2. Create a HTTP Type monitor and check for the file Example: Thanks Arnaud 3 Link to comment Share on other sites More sharing options...
Manoj Rana Posted December 17, 2020 Author Share Posted December 17, 2020 11 minutes ago, Arnaud Pain said: Manoj, As Carl wrote, you can make a mix. 1. Create a html file in a folder (or use an already existing one) 2. Create a HTTP Type monitor and check for the file Example: Thanks Arnaud Thanks Arnaud and Carl. It is working with HTTP. Manoj Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now