Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jloh/nagios-nrpe-server

Nagios NRPE Server Role for Ansible
https://github.com/jloh/nagios-nrpe-server

ansible ansible-playbook ansible-role nagios nagios-nrpe

Last synced: 2 months ago
JSON representation

Nagios NRPE Server Role for Ansible

Awesome Lists containing this project

README

        

Nagios NRPE Server Config
=========

[![GitHub version](https://badge.fury.io/gh/jloh%2Fnagios-nrpe-server.svg)](http://badge.fury.io/gh/jloh%2Fnagios-nrpe-server) [![CircleCI](https://circleci.com/gh/jloh/nagios-nrpe-server.svg?style=svg)](https://circleci.com/gh/jloh/nagios-nrpe-server)

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`](files/plugins/global) or by creating a folder in `files/plugins/` that is the servers [FQDN](http://en.wikipedia.org/wiki/Fully_qualified_domain_name).

You can find out your servers FQDN by running the [Ansible Setup](http://docs.ansible.com/setup_module.html) 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
----------------

```yaml
- hosts: servers
roles:
- jloh.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](http://blog.jloh.co).