diff --git a/heartbeat/apache b/heartbeat/apache
index d9adc62..7ab51bd 100755
--- a/heartbeat/apache
+++ b/heartbeat/apache
@@ -272,7 +272,7 @@ monitor_apache_basic() {
     ocf_log err "could not find a http client; make sure that either wget or curl is available"
 	return $OCF_ERR_CONFIGURED
   fi
-  ${ourhttpclient}_func "$STATUSURL" | grep -Ei "$TESTREGEX" > /dev/null
+  ${ourhttpclient}_func "$STATUSURL" | tr '\012' ' ' | grep -Ei "$TESTREGEX" > /dev/null
 }
 monitor_apache() {
   silent_status
