Linux NRPE Agent
Description
This Ansible playbook automates the deployment and configuration of the Nagios NRPE agent on Linux hosts. It updates the Nagios configuration repository, and checks the current NRPE agent version.
If an update is needed, it downloads, deploys, and installs the latest NRPE agent, scheduling downtime for services during the process. The playbook configures NRPE settings based on the system's init system (xinetd or systemd) and restarts services if configuration changes occur. It also ensures proper cleanup of temporary files and directories after installation.
Credentials
- sys_ansible_local
Input
| Variable | Description |
|---|---|
target |
Target Linux server for NRPE agent installation |
nrpe_agent_version |
Version of the NRPE agent to be installed |
nagios_server |
Hostname or IP address of the Nagios server |
nagios_minutes |
Interval in minutes for Nagios checks |
nrpe_allow_from |
List of IP addresses or subnets allowed to connect to the NRPE agent |
Output
None