-
-
Save eksiscloud/0ba522138f6f23ef3d7c6beffd37aecf to your computer and use it in GitHub Desktop.
Monit: Virtual host/domain
This file contains hidden or 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
### eksis.one | |
check host eksis.one with address www.eksis.one | |
# ICMP check | |
if failed icmp type echo | |
for 2 times within 2 cycles | |
then alert | |
# HTTPS check | |
if failed port 443 type tcpSSL protocol http | |
with http headers [Host: www.eksis.one, Cache-Control: no-cache] | |
and request /pong/ with content = "www.eksis.one" | |
then alert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change eksis.one more suitable for you.
touch /var/www/example.tld/public_html/pong
Add the content in file pong
or
If you use Wordpress, Drupal or other CMS, do the pong-page there. Then you are monitoring if the CMS is up, If your backend will fall, like Apache2, then all of your sites will give an error.