Sensu Monit Plugins


Build Status Gem Version Code Climate Test Coverage Dependency Status



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



Installation and Setup


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.


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.


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

$ (sudo) gem install mail


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       monit:
    • Create transport map db $ postmap /etc/postfix/transport
    • Add transport_map to
      transport_maps = hash:/etc/postfix/transport
    • Add the following to your
      # 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


Copyright 2012 Atlassian, Inc. and contributors.

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

Get Integration


2 stars on GitHub
7 open issues on GitHub
3 open forks on GitHub

Sensu Integrations

Sensu integrations and extensions are available for dozens of modern applications and services.