Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Nagios dashboard using Ruby EventMachine & HTML5 WebSockets.
branch: master

This branch is 58 commits behind portertech:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
views
.gitignore
Gemfile
Gemfile.lock
README.org
dashboard.rb

README.org

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
Something went wrong with that request. Please try again.