Forge Home

icinga

Module for managing icinga infrastructure monitoring

9,704 downloads

9,704 latest version

2.1 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.0.0 (latest)
released Sep 19th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'datacentred-icinga', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add datacentred-icinga
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install datacentred-icinga --version 1.0.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

datacentred/icinga — version 1.0.0 Sep 19th 2014

datacentred-icinga

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Testing - Guide for contributing to the module

Overview

This module provides a basic frame work for rolling out Icinga monitoring for your network.

Module Description

This class as it stands creates a standalone monolithic install of the Icinga monitoring daemon, along with a MySQL backed IDO2DB and the Icinga Web front end. It also provides wrappers around the puppet nagios types which work around known deficiencies.

Usage

Server Installation

The base installation is simply done via

include icinga::server

It can be configured via puppet data bindings

icinga::server::allow_empty_hostgroup_assignment: 1
icinga::server::use_timezone: 'Europe/London'

Or explicitly

class { 'icinga::server':
  allow_empty_hostgroup_assignment => 1,
  use_timezone                     => 'Europe/London',
}

You can then define resources to populate the configuration files

icinga::timeperiod { 'timeperiod_24x7':
  description => '24 hours a day, 7 days a week',
  sunday      => '00:00-24:00',
  monday      => '00:00-24:00',
  tuesday     => '00:00-24:00',
  wednesday   => '00:00-24:00',
  thusday     => '00:00-24:00',
  friday      => '00:00-24:00',
  saturday    => '00:00-24:00',
}

Client Installation

The basic nagios plugins are installed via

include icinga::client

Hosts can then be defined as such, and will be collected on the server

@@icinga::host { $::hostname:
  ensure          => present,
  alias           => $::fqdn,
  address         => $::ipaddress,
  use             => 'dc_host_generic',
  hostgroups      => template('dc_icinga/hostgroups.erb'),
  icon_image      => 'base/ubuntu.png',
  icon_image_alt  => 'Ubuntu 14.04 LTS (trusty)',
  notes           => 'Ubuntu 14.04 LTS servers',
  statusmap_image => 'base/ubuntu.gd2',
  vrml_image      => 'ubuntu.png',
}

Please refer to my blog post on dynamically creating hostgroups if the above makes little sense

Limitations

This class has been tested on Ubuntu 14.04 LTS only.

Testing

No testing is provided.