Nagios - MagicMirror² module
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Nagios - MagicMirror² module

Build Status

This is a module for MagicMirror². Shows informantion from nagios.

Example Visualization

Installing the module

The module uses the JSON formatted Nagios status as formattted by php-nagios-json.

To install the module, just clone this repository to your modules folder: git clone nagios. The run cd nagios and npm install to install the dependencies.

Updating the module

Pull the git updates: git pull. The update dependencies in the module folder: cd nagios followed by npm install.

Using the module

To use this module, add it to the modules array in the config/config.js file:

modules: [
    module: 'nagios',
    position: 'top_right',
    header: 'Nagios',
    config: {
      statusUrl: 'https://<YOUR URL>/',
      username:'Basic auth username',
      password: 'Basic auth password'

Configuration options

The following properties can be configured:

Option Description
statusUrl The URL to get the status from. Must be a php-nagios-json page.
username HTTP Basic Auth username, if need to access the page.
password HTTP Basic Auth password, should be specified if the username is.
reloadInterval Number of milliseconds between refresh.
Default value: 5 * 60 * 1000 (5 minutes)
labels Defines the labels for each type of status.
Default value: See Default labels

Default labels

labels: {
  'ok': 'Ok',
  'warning': 'Warning',
  'critical': 'Critical',
  'unknown': 'Unknown'