Forge Home

nagios

Allows you to create an instance of nagios and then monitor nodes which have exported resources in your puppetdb

8,531 downloads

8,531 latest version

4.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.2.0 (latest)
released Sep 11th 2015
This version is compatible with:
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'ceh-nagios', '1.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ceh-nagios
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ceh-nagios --version 1.2.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

ceh/nagios — version 1.2.0 Sep 11th 2015

Nagios

Overview

This is the nagios module, it allows you to create an instance of nagios and then monitor nodes which have exported resources in your puppetdb

Module Description

This nagios module is designed to do as little as possible in setting up a nagios node. It will set up an instance of nagios3 and then you are free to set up whatever nagios monitoring you like using the build in puppet resources for managing nagios configuration files. Specifically:

For details on how to set up nagios monitoring please view the nagios documentation.

This module is very lightweight and only has one dependency on puppetlabs/concat module

Usage

To create a nagios monitoring node which will gather exported resources from other nodes

include nagios::server

nagios::user { 'nagiosadmin' : cryptpasswd : '$apr1$rNDzDZKH$oVGEb0BU6QZ338EuB9Hob.', # Password in htpasswd format }

On another node in your puppet setup

@@nagios_host {'myhost':
   ...
}

If you do not which to use exported resources, you can manage your entire nagios infrastructure on a single node

include nagios::server

nagios::user { 'nagiosadmin' :
   cryptpasswd : '$apr1$rNDzDZKH$oVGEb0BU6QZ338EuB9Hob.', # Password in htpasswd format
}

nagios_host {'myhost':
   ...
}

To set up nrpe services on a client node declare the nagios::client class. This will install the nrpe_nagios plugins and allow access to any defined nrpe service from your nagios server

class {'nagios::client' :
    nagios_server => '192.168.0.1',
}

nagios::nrpe { 'check_users' :
    command             => '/usr/lib/nagios/plugins/check_users -w 5 -c 10',
    notification_period => '24x7',
    service_description => 'Current Users',
    host_name           => $fqdn,
    use                 => 'generic-service',
}

Limitations

This module has been tested with ubuntu 12.04 lts as a server and the following as nrpe clients:

  • Mac OS X 10.9
  • Ubuntu 12.04 LTS
  • Ubuntu 14.04 LTS
  • CentOS 6.5

Contributors

Christopher Johnson - cjohn@ceh.ac.uk