User Tools

Site Tools


pages:howtos:monit:hosts

monitoring a host

this is checking:

  • ping via IPv4 and IPv6
  • http connection to various FQDNs
  • expiration of SSL certificates

check host host.domain.tld with address host.domain.tld 
        if failed ping4 then alert
        if failed ping6 then alert
        
        # ISPConfig
        if failed
                  port 8080
                  protocol https
                  and certificate valid > 3 days
        then alert
        
        # generic domain
        if failed url https://host.domain.tld/
                  with timeout 15 seconds
                  and certificate valid > 3 days
        then alert
        
        # Roundcube
        if failed 
                  port 443
                  protocol https
                  request /webmail/
                  with timeout 15 seconds
                  and certificate valid > 3 days
                  content = "The Roundcube Dev Team"
        then alert
        group connectivity


~~DISCUSSION~~

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
pages/howtos/monit/hosts.txt · Last modified: 2021/12/09 23:24 by The Thing That Should Not Be