diff --git a/lib/flapjack/checks/http_content b/lib/flapjack/checks/http_content new file mode 100644 index 000000000..468226893 --- /dev/null +++ b/lib/flapjack/checks/http_content @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby + +require 'open-uri' + +page = ARGV[0] +string = ARGV[1] + +exit 2 unless page && string + +body = open(page).read +if body =~ /#{string}/ + exit 0 +else + exit 2 +end