How do I check if a web page contains the text "Error connecting to database" and if the text exists in the page restart the database?
Here's what I have so far but it isn't working:
check host website.com with address website.com
group database
start program = "/usr/bin/service mysql start"
stop program = "/usr/bin/service mysql stop"
if url http://website.com content == "Error connecting to database" then restart