Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jloh/nagios-nrpe-server
- Owner: jloh
- License: mit
- Created: 2014-08-31T11:26:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-02-04T17:45:05.000Z (11 months ago)
- Last Synced: 2024-10-04T19:31:52.115Z (3 months ago)
- Topics: ansible, ansible-playbook, ansible-role, nagios, nagios-nrpe
- Language: Jinja
- Homepage: https://blog.jloh.co/nagios-nrpe-ansible-role/
- Size: 62.5 KB
- Stars: 29
- Watchers: 7
- Forks: 38
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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.1Requirements
------------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 sectionThese 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/nagiosRedHat:
* *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/nagiosArhc 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/nrpeSolaris:
* *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*: nagiosDependencies
------------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).