Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.27 KB

README.org

File metadata and controls

35 lines (29 loc) · 1.27 KB

A Nagios dashboard using Ruby EventMachine & HTML5 WebSockets

How It Works

Nagios-Dashboard parses the nagios status.dat file & sends the current status to clients via an HTML5 WebSocket

The dashboard monitors the status.dat file for changes, any modifications trigger a client update (push)

Requirements

Server

  • A Linux distribution running Nagios
  • Ruby 1.8 or 1.9 (MRI) & RubyGems
  • Bundler Gem

Interface

  • A browser with WebSocket support

Install

cd opt
wget nagios-dashboard.tar
tar -xvf nagios-dashboard.tar
cd nagios-dashboard && bundle install
ln -s /opt/nagios-dashboard/dashboard.rb /usr/local/bin/nagios-dashboard
rehash

Run

-> % nagios-dashboard -h
Usage: dashboard.rb [options]
    -v, --verbose                    Output debug messages to screen
    -d, --datfile FILE               Location of Nagios status.dat FILE (default: /var/cache/nagios3/status.dat)
    -p, --port PORT                  Listen on a different PORT (default: 80)
    -l, --logfile FILE               Write log messages to FILE (default: ./debug.log)
    -h, --help                       Display this screen