1 2 3 4 5 6 7 |
check host ftp.redhat.com with address ftp.redhat.com if failed icmp type echo with timeout 15 seconds then alert if failed port 21 protocol ftp then exec "/usr/X11R6/bin/xmessage -display :0 ftp connection failed" alert foo@bar.com |
Monthly Archives: March 2014
monit – URL, HTTP and Elasticsearch checks
1. Simple URL Check
2. URL with Basic Authentification
2. ... Read more
1 2 |
check host elastic_health_check with address 0.0.0.0 if failed url http://0.0.0.0:9200/_cluster/health for 2 cycles then alert |
1 2 3 4 5 6 7 8 9 10 |
# http://stackoverflow.com/questions/1115816/monit-and-apache-site-behind-http-basic-auth # It seems to be possible to include the credentials in the URL, have you tried this?: # (from http://mmonit.com/monit/documentation/monit.html#connection_testing ) # If a username and password is included in the URL Monit will attempt to login at the server using Basic Authentication. # http://user:password@www.foo.bar:8080/document/?querystring#ref check host hacker_news with address news.ycombinator.com if failed url http://username:password@www.myserver.com/search?q=123 and content = "successfully logged in" then alert |