Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 10d91c9d42

README

Puppet module for monit
=======================

Usage:

    include monit

    monit::config { "monit-instance-unique-name":
        start_delay => 15,
        mailserver  => "your.mx.server",
        alert_email_from => "some-address@your-domain.com",
        alert_email_to => "other-address@your-domain.com",
    }

    monit::check { "my-check-1":
        source => "puppet:///files/some/path/monit-check-1"
    }

or:

    monit::check { "my-check-2":
        content => "
    check process apache with pidfile /var/run/apache2.pid
      start program = "/etc/init.d/apache2 start" with timeout 60 seconds
      stop program  = "/etc/init.d/apache2 stop"
      if failed host my.host.name port 80 protocol http
         and request "/"
         then restart
    "
    }

Something went wrong with that request. Please try again.