vbotka.nrpe
nrpe
Ansible role. Install and configure NRPE.
Nagios Remote Plugin Executor (NRPE)
Feel free to share your feedback and report issues.
Requirements
Roles
Collections
*community.general
Role Variables
Review the defaults and examples in vars.
Workflow
- Install roles
shell> ansible-galaxy role install vbotka.nrpe
shell> ansible-galaxy role install vbotka.ansible_lib
- Install the collection if necessary
shell> ansible-galaxy collection install community.general
- Create playbook and inventory
shell> cat nrpe.yml
- hosts: webserver
roles:
- vbotka.nrpe
shell> cat hosts
[webserver]
<webserver-ip-or-fqdn>
[webserver:vars]
ansible_connection=ssh
ansible_user=admin
ansible_become=true
ansible_become_method=sudo
ansible_python_interpreter=/usr/local/bin/python3.9
ansible_perl_interpreter=/usr/local/bin/perl
- Check syntax
shell> ansible-playbook nrpe.yml --syntax-check
- Display variables
shell> ansible-playbook nrpe.yml -e nrpe_debug=true -t nrpe_debug
- Install packages
shell> ansible-playbook nrpe.yml -e nrpe_install=true -t nrpe_packages
- Create /usr/local/etc/nrpe.cfg from sample if missing
shell> ansible-playbook nrpe.yml -t nrpe_conf_create
- Dry-run and show changes
shell> ansible-playbook nrpe.yml --check --diff
- Run the playbook if all seems to be right
shell> ansible-playbook nrpe.yml
- Plugins (TBD)
References
License
Author Information
Install
ansible-galaxy install vbotka.nrpeLicense
bsd-2-clause
Downloads
69
Owner
