Giter Club home page Giter Club logo

sensu-plugins-monit's Introduction

Sensu-Plugins-monit

Build Status Gem Version Code Climate Test Coverage Dependency Status

Functionality

Files

  • bin/check-monit-status.rb
  • bin/check-monit-email.rb

Usage

Installation

Installation and Setup

Notes

Monit plugin for sensu

Do you already have Monit running for your process monitoring and restarting but want to add sensu to your monitoring tool belt? Now you can have the best of both worlds and pipe in your Monit notifications in to sensu.

Notes

I currently use an array of "Events" that monit produce to figure out if the alert should be critical or resolved. Also monit does not seem to have a warning level so I left that out. You can learn more about monit events here

As with all open source projects this should be treated as alpha code and needs more TLC.

Requirements

You will need the mail gem to parse the monit email. We dont send any email but do receive it.

$ (sudo) gem install mail

Configuration

The setup is very different from other sensu plugins so RTFM.

  • Place monit-email.rb in a location that postfix can access it and execute it. Recommended location is /plugins/
  • Configure postfix to pipe messages from monit email address to monit-email.rb plugin
    • Create/Modify postfix transport at /etc/postfix/transport
    • Create transport map db $ postmap /etc/postfix/transport
    • Add transport_map to main.cf
      transport_maps = hash:/etc/postfix/transport
      
    • Add the following to your master.cf
      #==========================================================================
      # service type  private unpriv  chroot  wakeup  maxproc command + args
      #               (yes)   (yes)   (yes)   (never) (100)
      #==========================================================================
      
      monit   unix    -       n       n       -       -       pipe
      user=sensu argv=/etc/sensu/plugins/monit-email.rb
      
    • Reload postifx $ sudo service postfix reload

License

Copyright 2012 Atlassian, Inc. and contributors.

Released under the same terms as Sensu (the MIT license); see LICENSE for details.

sensu-plugins-monit's People

Contributors

tas50 avatar eheydrick avatar sensu-plugin avatar

Watchers

 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.