/monit_monitor

Unified dashboard for monit

Primary LanguageHTMLMIT LicenseMIT

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"