Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
files
manifests
templates
README

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
    "
    }