Coder Social home page Coder Social logo

puppet-monit's Introduction

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

This is a puppet module for monit.  It provides a simple way to install the
package, run the service, and handle the configuration.  It also provides a
separate directory for other packages to install monit snippets.

Usage
=====

How to use the module
---------------------

Add the following to your node manifest::

  $monit_secret="something secret, something safe"
  $monit_alert="[email protected]"
  $monit_mailserver="mail.example.org"
  include monit

This will add a host-only "/etc/monit/monitrc" configuration file, which in
turn will include any file ending with ".monitrc" in the "/etc/monit/conf.d/"
directory.

Making passwords
----------------

The $monit_secret variable is used to construct a password for your monit
instance.

If you do not set a monit secret, it will use a default "secret" to make
passwords.

How to provide monit configuration snippets?
--------------------------------------------

This module can be used by other modules and classes to monitor their services.

Example::

  monit::check::process{"openssh":
    pidfile     => "/var/run/sshd.pid",
    start       => "/etc/init.d/ssh start",
    stop        => "/etc/init.d/ssh stop",
    customlines => ["if failed port 22 then restart",
                    "if 2 restarts within 3 cycles then timeout"]
  }

For more information, see the inline documentation in manifests/init.pp

puppet-monit's People

Contributors

gravis avatar groulot avatar micah avatar ssm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.