Forum Discussion
Website monitoring - not just homepage
We are currently monitoring each website's homepage using a Monitor that looks like so:
GET / HTTP/1.1\r\nHost: domainname.com\r\nConnection: Close\r\n
The monitor checks for a string "Object Moved" because the homepages are redirecting to Home.aspx.
We have set up this health check to check for the string "Object Moved" because when that string is not found on the page, a blank, untitled page is found and we didn't want users browsing the websites to see blank pages.
We have eliminated blank pages on the website homepages using this check, however we have been finding that we're seeing blank untitled pages beneath the homepages, such as on an article page:
http://domainname.com/some-url/somepage.aspx - this sometimes displays as a blank untitled white page.
Is there some sort of an iRule or another health monitor that we can put into place that would check each and every request, and if a blank white untitled page is found, or a certain string isn't found, the health check would fail, and / or the iRule would re-select another node that is serving up legit content?
Our sites have thousands of articles on them, so writing thousands of health monitors wouldn't be the best solution. I've been tasked with creating some sort of check or iRule script.
I am thinking that this should be possible by:
1) Scan each request
2) Make a connection to the server
3) Verify that a string is or is not found
4) Send traffic to the server
5) If blank page / string is /is not found, reselect another node
Does anyone know if this is possible?
- hooleylistCirrostratusHi Joe,
- Joe_PipitoneNimbostratusThe HTTP response that I get for the entire page is very lengthy.
What I can tell you from seeing these blank, untitled pages in the past is that it displays a basic page with Untitled Page inside the title tags - something very similar to that.
So if we see Untitled Page, or something similar, this health check would have to fail - this goes for article pages as well as the home pages.
I'm not sure what else I can provide at this point until I can capture the source of the entire untitled page.
- hooleylistCirrostratusHi Joe,
- Joe_PipitoneNimbostratusOK.....I am keeping my eyes open for another bad response - I'd definitely be interested in seeing an example of your stream filter based iRule.
- hooleylistCirrostratusActually, using LB::down seems to trigger an immediate monitor probe regardless of the monitor interval settings. If the default monitor succeeds, the pool member will be marked back up. So what I was thinking of won't work as I'd thought. I'll try testing another option with pool reselection and see what I can do.
- Joe_PipitoneNimbostratusSo far no blank untitled pages this morning, still can't give you any info regarding the content length and the response payload.
- hooleylistCirrostratusHi Joe,
- Joe_PipitoneNimbostratusRight....it's a 302 server response. Basically, the page redirects to Home.aspx. But, on some article pages, I believe it is handled differently than the homepage.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com