albertsj1 / Nagdash

A full screen, clean interface for Nagios designed for A dashboard/NOC/monitoring screen.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nagdash

What is Nagdash?

Nagdash is the long awaited replacement of Naglite2.

Written in PHP, it uses the Nagois-api, PHP and a sprinkling of jQuery and Bootstrap to provide a full screen, clean Nagios experience which is suitable either for a Dashboard/NOC screen, or simply a simple view to replace the Nagios UI.

Features

Naglite2, the first iteration, was dependant on parsing the status.dat file that Nagios writes, so it had to live on your local machine. The code was also mostly borrowed from Naglite, and was poorly written and fairly unmaintainable. This project seeks to fix those two issues, primarily.

  • Simple configuration: 1 line to add a new Nagios instance to pull results from.
  • Instance tags: Every host and service is tagged with a small but effective icon that indicates which instance that host or service is pulled from.
  • Deployment flexibility: Because Nagdash uses the nagios-api REST-like JSON interface, you no longer have to situation it on the same machine as your Nagios instance(s). As long as it can hit the API, it's good to go.
  • Clear, simple UI: Designed to provide an at-a-glance overview of just how much is broken in you infrastructure. The more red, the more you need to panic. Services and hosts that are acknowledged, in downtime, or silenced are hidden away, but still available to avoid attracting the eye.
  • Know about problems before they happen: Soft alerts are shown clearly with their attempt number so you get a heads up before Nagios even tells you.
  • Automatic refresh: The screen refreshes via Ajax to provide a unobstrusive live update of the overall status aggregated from all your Nagios instances.
  • Two-way interface: Unlike Naglite2, some core operations are available directly from Nagdash. If using on your desktop/laptop, there are buttons that allow you to Acknowledge problems, Schedule Downtime or enable/disable notifications with a single click without leaving Nagdash

Screenshots

On a monitor

On a monitor

Easy to read tags

Easy to read tags

Service states

Service states

Easy to read duration/attempts

Easy to read duration/attempts

Reminder of all the 'known' issues

Reminder of all the 'known' issues

Hover over the row for one click service actions

Hover next to a service for one click service actions. Schedule downtime (choose length), enable/disable notifications, and acknowledge service problems directly from Nagdash.

Easy config

Easy configuration

Prerequisites

  • A webserver
  • PHP 4 (or higher)
  • Nagois-api running on one or more Nagios servers
  • A big screen to show Nagdash off

Installation/configuration

  1. Download/clone the repo into an appropriate folder either in your webservers directory or symlinked to it
  2. Move config.php.example to config.php, edit with your favourite editor and add your Nagios host(s) to the Nagios hosts array. (see screenshot above)
  3. Load index.php in your browser and if all goes well, you will see your Nagios installation come to life, and refresh every 20 seconds.
  4. Reward yourself with a refreshing beverage.

Advanced configuration

The configuration file is fairly simple at this point, but here's an explanation of all the parts.

  • Nagios hosts array

Nagios hosts array

* Hostname: The hostname or IP address of a server running the nagios-api
* Port: The port the nagios-api instance is running on
* Protocol: http or https
* Tag: The text that should be displayed against all hosts and services from this instance.
* Taccolour: The background colour of the tag that is displayed next to all hosts and services from this instance. 
  • Filter: This is a simple regex filter if you wish to only display certain hosts from all your instances. For example, if you were making a dedicated dashboard for a team that manages a certain set of servers.
  • Duration: This sets the default Downtime duration when the "Downtime" button is clicked from the Nagdash interface. Out of the box, it's 60 minutes.

Known issues

  • You will need a relatively up to date copy of the nagios-api, since some fields were not available in the older version. If you see "Reference time not set", you need to update your copy of the nagios-api.
  • The above also applies for acknowledging problems. If you receive an error that the command is not supported, please update your copy of nagios-api.
  • Your hosts MUST have unique names between instances. If there are non-unique names, the services from the FIRST Nagios instance will be used. Please let me know if this is a major issue for you, I can add an optional workaround.

About

A full screen, clean interface for Nagios designed for A dashboard/NOC/monitoring screen.