{"id":21469986,"url":"https://github.com/sensu-plugins/sensu-plugins-monit","last_synced_at":"2025-07-15T06:32:41.154Z","repository":{"id":27165687,"uuid":"30635185","full_name":"sensu-plugins/sensu-plugins-monit","owner":"sensu-plugins","description":"Sensu Monit Plugins","archived":false,"fork":false,"pushed_at":"2021-04-29T19:17:36.000Z","size":41,"stargazers_count":2,"open_issues_count":8,"forks_count":5,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-08T21:05:06.733Z","etag":null,"topics":["monit","monitoring","sensu-plugins"],"latest_commit_sha":null,"homepage":"http://sensu-plugins.io","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sensu-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-11T07:04:40.000Z","updated_at":"2020-09-27T04:18:41.000Z","dependencies_parsed_at":"2022-07-18T03:16:54.999Z","dependency_job_id":null,"html_url":"https://github.com/sensu-plugins/sensu-plugins-monit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-monit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-monit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-monit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-monit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensu-plugins","download_url":"https://codeload.github.com/sensu-plugins/sensu-plugins-monit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226023755,"owners_count":17561527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["monit","monitoring","sensu-plugins"],"created_at":"2024-11-23T09:20:28.005Z","updated_at":"2024-11-23T09:20:28.652Z","avatar_url":"https://github.com/sensu-plugins.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sensu-Plugins-monit\n\n[ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-monit.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-monit)\n[![Gem Version](https://badge.fury.io/rb/sensu-plugins-monit.svg)](http://badge.fury.io/rb/sensu-plugins-monit)\n[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit)\n[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit)\n[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-monit.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-monit)\n\n## Functionality\n\n## Files\n * bin/check-monit-status.rb\n * bin/check-monit-email.rb\n\n## Usage\n\n## Installation\n\n[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)\n\n## Notes\n\nMonit plugin for sensu\n======================\n\nDo 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.\n\nNotes\n-----\n\nI 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](http://mmonit.com/monit/documentation/monit.html#alert_messages)\n\nAs with all open source projects this should be treated as alpha code and needs more TLC.\n\nRequirements\n-------------\nYou will need the mail gem to parse the monit email.  We dont send any email but do receive it.\n\n$ (sudo) gem install mail\n\nConfiguration\n-------------\n\nThe setup is very different from other sensu plugins so RTFM.\n\n* Place monit-email.rb in a location that postfix can access it and execute it.  Recommended location is \u003csensu instal director\u003e/plugins/\n* Configure postfix to pipe messages from monit email address to monit-email.rb plugin\n  * Create/Modify postfix transport at /etc/postfix/transport\n    ```\n    monit@domain.com       monit:\n    ```\n  * Create transport map db\n    $ postmap /etc/postfix/transport\n  * Add transport_map to main.cf\n    ```\n    transport_maps = hash:/etc/postfix/transport\n    ```\n  * Add the following to your master.cf\n    ```\n    #==========================================================================\n    # service type  private unpriv  chroot  wakeup  maxproc command + args\n    #               (yes)   (yes)   (yes)   (never) (100)\n    #==========================================================================\n\n    monit   unix    -       n       n       -       -       pipe\n    user=sensu argv=/etc/sensu/plugins/monit-email.rb\n    ```\n  * Reload postifx\n    $ sudo service postfix reload\n\nLicense\n-----------\nCopyright 2012 Atlassian, Inc. and contributors.\n\nReleased under the same terms as Sensu (the MIT license); see LICENSE for details.\n\n[1]:[https://travis-ci.org/sensu-plugins/sensu-plugins-monit]\n[2]:[http://badge.fury.io/rb/sensu-plugins-monit]\n[3]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit]\n[4]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-monit]\n[5]:[https://gemnasium.com/sensu-plugins/sensu-plugins-monit]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-monit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-monit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-monit/lists"}