Checks a set of URLs for conditions and puts up whatever page you want
Version: 0.01Apache::HealthCheck is a Perl module that checks a set of URLs for conditions and puts up whatever page you want.
License: Perl Artistic License
Operating System: Linux
< Location /health-check/ >
PerlAddVar CheckURL "http://appserver1.example.com/ 404"
PerlAddVar CheckURL "http://appserver1.example.com:8085/ 302"
PerlAddVar CheckURL "http://component1.example.com:4424/ 403"
PerlSetVar ReturnCodeSuccess 403
PerlSetVar ReturnCodeFail 500
< /Location >
Checks a list of urls for specific return codes and then returns a code / header / page of it's own. This is useful for web server clusters where you might have a switch or a web server performing periodic health checks on an application. This module allows you to harness the checks of all the urls (web services) a specific node might have in one easy to "check" URL.
If any of the URLs specified in the CheckURL directives fails to return the specified return code, the attempt is treated as failed, otherwise its treated as a success.