wilmardo.nrpe_client

wilmardo.nrpe-client

Build Status Galaxy

This role sets up the NRPE client on a monitoring server. You can use it along with the wilmardo/nagios role.

Requirements

None.

Role Variables

Default Usage

To use this role in the simplest way, just define the following:

# Specifies which hosts can connect to NRPE
nrpe_allowed_hosts:
  - 127.0.0.1

Advanced Usage

For more advanced features, you can use these variables:

# Directory for downloaded files.
download_dir: "{{ ansible_env.HOME }}/nrpe"

# Version of NRPE to install
nrpe_version: 3.2.1

# URL to download NRPE
nrpeurl: "https://github.com/NagiosEnterprises/nrpe/archive/nrpe-{{ nrpe_version }}.tar.gz"

# Name of the uncompressed NRPE directory
nrpesrc: "nrpe-nrpe-{{ nrpe_version }}"

# User under which NRPE runs
nrpe_user: nagios

# Group under which NRPE runs
nrpe_group: nagios

# Allows clients to pass arguments to commands. Change to 1 to enable
nrpe_dont_blame_nrpe: 0

Dependencies

This role has no strict dependencies but works well with wilmardo/nagios.

Example Playbook

This example installs NRPE and sets the allowed hosts. It is recommended to place nrpe_allowed_hosts in your project's host_vars, but the example below will work:

- hosts: monitoring-servers
  roles:
    - { role: wilmardo.nrpe-client, nrpe_allowed_hosts: [ 127.0.0.1, 192.168.1.100 ] }

License

BSD-3-Clause-Clear

Author Information

This role was initially created by Patrick Ogenstad and was forked in 2017 by Wilmar den Ouden.

Informazioni sul progetto

Role to install NRPE client

Installa
ansible-galaxy install wilmardo.nrpe_client
Licenza
bsd-3-clause-clear
Download
7.3k
Proprietario
❤️ Kubernetes