Giter Club home page Giter Club logo

nagios-nrpe-server's Introduction

Nagios NRPE Server Config

GitHub version Build Status

An Ansible role to handle the installation and rollout of the Nagios NRPE Daemon.

I've only selected certain platforms that I know this 100% works on, but it should work on any platform that NRPE can be installed on.

Currently supports:

  • Debian
    • Squeeze
    • Wheezy
  • Ubuntu
    • Raring
    • Saucy
    • Trusty
  • RedHat
    • At least 6 onwards
  • Arch Linux
    • All
  • Solaris
    • At least 11.1

Requirements

RedHat based OS's must have the EPEL repo.

Role Information

This role gives you the ability to deploy plugins on a global and per-server basis. This can be done by putting plugins into files/plugins/global or by creating a folder in files/plugins/ that is the servers FQDN.

You can find out your servers FQDN by running the Ansible Setup module.

Role Variables

  • nagios_nrpe_server_bind_address: 127.0.0.1
  • nagios_nrpe_server_port: 5666
  • nagios_nrpe_server_allowed_hosts: 127.0.0.1
  • nagios_nrpe_command: see example playbook section

These are OS specific and likely wont want to be changed

Debian:

  • nagios_nrpe_server_pid: /var/run/nagios/nrpe.pid
  • nagios_nrpe_server_user: nagios
  • nagios_nrpe_server_group: nagios
  • nagios_nrpe_server_service: nagios-nrpe-server
  • nagios_nrpe_server_plugins_dir: /usr/lib/nagios/plugins
  • nagios_nrpe_server_dir: /etc/nagios

RedHat:

  • nagios_nrpe_server_pid: /var/run/nrpe/nrpe.pid
  • nagios_nrpe_server_user: nrpe
  • nagios_nrpe_server_group: nrpe
  • nagios_nrpe_server_repo_redhat: epel
  • nagios_nrpe_server_service: nrpe
  • nagios_nrpe_server_dir: /etc/nagios

Arhc Linux:

  • nagios_nrpe_server_pid: /var/run/nrpe/nrpe.pid
  • nagios_nrpe_server_user: 31
  • nagios_nrpe_server_group: 31
  • nagios_nrpe_server_service: nrpe
  • nagios_nrpe_server_plugins_dir: /usr/lib/monitoring-plugins
  • nagios_nrpe_server_dir: /etc/nrpe

Solaris:

  • nagios_nrpe_server_dir: /etc/opt/csw
  • nagios_nrpe_server_group: nagios
  • nagios_nrpe_server_pid: /var/run/nrpe.pid
  • nagios_nrpe_server_plugins_dir: /opt/csw/libexec/nagios-plugins
  • nagios_nrpe_server_service: svc:/network/cswnrpe:default
  • nagios_nrpe_server_user: nagios

Dependencies

N/A

Example Playbook

- hosts: servers
  roles:
     - mooash.nagios-nrpe-server
   vars:
     nagios_nrpe_server_allowed_hosts:
       - 192.168.0.1
       - 127.0.0.1
     nagios_nrpe_command:
       oracle_tnsping:
         script: check_oracle_health
         option: --mode tnsping
       oracle_connection-time:
         script: check_oracle_health
         option: --mode connection-time

License

MIT

Author Information

Checkout my blog here.

nagios-nrpe-server's People

Contributors

jloh avatar jaymell avatar mrtango avatar gitter-badger avatar

Watchers

James Cloos 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.