idiv-biodiversity.nrpe

Ansible Rolle: Nagios Remote Plugin Executor (NRPE)

Eine Ansible-Rolle, die NRPE installiert und konfiguriert.

Inhaltsverzeichnis

Anforderungen

  • Ansible 2+

Rollenvariablen

Dies sind alle Variablen und ihre Standardwerte:

nrpe_log_facility: 'daemon'

nrpe_pid_file: '/var/run/nrpe/nrpe.pid'

nrpe_server_port: '5666'

nrpe_user: 'nrpe'

nrpe_group: 'nrpe'

nrpe_allowed_hosts:
  - '127.0.0.1'
  - '::1'

nrpe_dont_blame: '0'

nrpe_allow_bash_command_substitution: '0'

nrpe_debug: '0'

nrpe_command_timeout: '60'

nrpe_connection_timeout: '300'

nrpe_commands:
  - name: 'check_users'
    line: '/usr/lib64/nagios/plugins/check_users -w 5 -c 10'

  - name: 'check_load'
    line: '/usr/lib64/nagios/plugins/check_load -r -w .15,.10,.05 -c .30,.25,.20'

  - name: 'check_hda1'
    line: '/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1'

  - name: 'check_zombie_procs'
    line: '/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z'

  - name: 'check_total_procs'
    line: '/usr/lib64/nagios/plugins/check_procs -w 150 -c 200'

Abhängigkeiten

Diese Rolle hängt bedingungslos von geerlingguy.repo-epel für RedHat-basierte Distributionen ab, um Laufzeit- und Build-Abhängigkeiten zu installieren. Nicht alle diese Abhängigkeiten sind in den Standard-Repositories enthalten.

Beispiel-Playbook

Fügen Sie zu requirements.yml hinzu:

---

# optional
# - src: geerlingguy.repo-epel

- src: idiv-biodiversity.nrpe

...

Download:

$ ansible-galaxy install -r requirements.yml

Haupt-Playbook

Schreiben Sie ein Haupt-Playbook:

---

- name: head server
  hosts: head

  roles:
    - role: idiv-biodiversity.nrpe
      tags:
        - icinga
        - nagios
        - nrpe

...

Rollenabhängigkeit

Definieren Sie die Rollenabhängigkeit in meta/main.yml:

---

dependencies:

  - role: idiv-biodiversity.nrpe
    tags:
      - icinga
      - nagios
      - nrpe

...

Lizenz

MIT

Autoreninformation

Diese Rolle wurde 2017 von Christian Krause, auch bekannt als wookietreiber auf GitHub, HPC-Cluster-Systemadministrator am Leibniz-Institut für Biodiversitätsforschung (iDiv), basierend auf einem Entwurf von Ben Langenberg, auch bekannt als sloan87 auf GitHub, erstellt.

Über das Projekt

install and set up nrpe

Installieren
ansible-galaxy install idiv-biodiversity.nrpe
GitHub Repository
Lizenz
mit
Downloads
7k