Giter Site home page Giter Site logo

puppet-nagios's Introduction

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 - [email protected]

puppet-nagios's People

Contributors

lardymike avatar chrisjohnson1988 avatar

Watchers

James Cloos avatar Jonathan Cooper avatar Rod Scott avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.