Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created April 22, 2020 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eksiscloud/0ba522138f6f23ef3d7c6beffd37aecf to your computer and use it in GitHub Desktop.
Save eksiscloud/0ba522138f6f23ef3d7c6beffd37aecf to your computer and use it in GitHub Desktop.
Monit: Virtual host/domain
### 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
@eksiscloud
Copy link
Author

eksiscloud commented Apr 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment