Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Latest commit

 

History

History
46 lines (30 loc) · 770 Bytes

Readme.md

File metadata and controls

46 lines (30 loc) · 770 Bytes

A small Rails engine that procudes a centralized dashboard of all monit instances. This gem is an extension of monittr to make it trivial to use in a Rails application

Example

Alt text

Install

Rails

Add to Gemfile

gem 'monit_monitor'

Instal gems


bundle install

###Configure monit dashboard URLS

Create a new initializer file eg config/initializers/monit.rb

MonitMonitor.configure do |c|
  c.cluster_urls =
    [
      'http://user:pass@dashboard1.monit.one:2812' ,
      'http://user:pass@dashboard1.monit.two:2812'
  ]
end

Add a route

In config/routes.rb

mount MonitMonitor::Server.new => "/monit"