idiv-biodiversity.nrpe

Ansibleロール: Nagiosリモートプラグインエグゼキュータ (NRPE)

NRPEをインストールして設定するAnsibleロールです。

目次

要件

  • Ansible 2+

ロール変数

以下はすべての変数とそのデフォルト値です:

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'

依存関係

このロールは、RedHatベースのディストリビューション用に、ランタイムとビルドの依存関係をインストールするためにgeerlingguy.repo-epel条件付きで依存しています。これらの依存関係はすべてデフォルトのリポジトリには含まれていません。

サンプルプレイブック

requirements.ymlに追加します:

---

# 任意
# - src: geerlingguy.repo-epel

- src: idiv-biodiversity.nrpe

...

ダウンロード:

$ ansible-galaxy install -r requirements.yml

トップレベルプレイブック

トップレベルのプレイブックを作成します:

---

- name: ヘッドサーバー
  hosts: head

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

...

ロールの依存関係

meta/main.ymlにロールの依存関係を定義します:

---

dependencies:

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

...

ライセンス

MIT

著者情報

このロールは2017年にChristian Krauseによって作成されました。彼はGitHubのwookietreiberで知られています。また、German Centre for Integrative Biodiversity Research (iDiv)でHPCクラスターシステム管理者を務めています。このロールはBen Langenbergのドラフトに基づいています。

プロジェクトについて

install and set up nrpe

インストール
ansible-galaxy install idiv-biodiversity.nrpe
ライセンス
mit
ダウンロード
7k