Created
October 21, 2019 07:32
-
-
Save eksiscloud/28a30a65c569b31598e691141a9d6275 to your computer and use it in GitHub Desktop.
Monit conf for a host/domain/site with Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### example.tld | |
check host example.tld with address www.example.tld | |
# ICMP check | |
if failed icmp type echo | |
for 2 times within 2 cycles | |
then alert | |
# HTTP check | |
if failed port 80 protocol http | |
with http headers [Host: www.example.tld, Cache-Control: no-cache] | |
and request /pong/ with content = "www.example.tld" | |
then alert | |
# HTTPS check | |
if failed port 443 type tcpSSL protocol http | |
with http headers [Host: www.example.tld, Cache-Control: no-cache] | |
and request /pong/ with content = "www.example.tld" | |
then alert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At Wordpress:
If you have Varnish:
if (req.url ~ "/pong") {
return (pass);
}