From 517a76fea9258173390c20b2eea5dcbc308f6210 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 24 Jul 2017 16:40:38 -0400 Subject: [PATCH] common: Change path to nrpe pid_file on RedHat/CentOS I can't find the exact commit in nrpe that caused this to change but the path has changed and the nrpe service fails to start on CentOS/RHEL now. Signed-off-by: David Galloway --- roles/common/templates/nagios/nrpe.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/common/templates/nagios/nrpe.cfg b/roles/common/templates/nagios/nrpe.cfg index b59c3a8..d866f6d 100644 --- a/roles/common/templates/nagios/nrpe.cfg +++ b/roles/common/templates/nagios/nrpe.cfg @@ -1,6 +1,10 @@ # {{ ansible_managed }} log_facility=daemon +{% if ansible_os_family == "Debian" %} pid_file=/var/run/nagios/nrpe.pid +{% else %} +pid_file=/var/run/nrpe/nrpe.pid +{% endif %} server_port=5666 nrpe_user={{ nrpe_user }} nrpe_group={{ nrpe_group }} -- 2.39.5