24560f3
diff -up ./sample-config/nrpe.cfg.in.include_etc_npre_d ./sample-config/nrpe.cfg.in
24560f3
--- ./sample-config/nrpe.cfg.in.include_etc_npre_d	2017-07-14 17:44:04.511051885 -0400
24560f3
+++ ./sample-config/nrpe.cfg.in	2017-07-14 17:46:55.255275288 -0400
24560f3
@@ -47,7 +47,10 @@ pid_file=@piddir@/nrpe.pid
24560f3
 # PORT NUMBER
24560f3
 # Port number we should wait for connections on.
24560f3
 # NOTE: This must be a non-privileged port (i.e. > 1024).
24560f3
-# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
24560f3
+# NOTE: This option is ignored if NRPE is running under either inetd
24560f3
+# or xinetd or via systemd. [In systemd please use
24560f3
+# systemctl edit nrpe.service
24560f3
+# to set up the port.
24560f3
 
24560f3
 server_port=@nrpe_port@
24560f3
 
24560f3
@@ -57,6 +60,7 @@ server_port=@nrpe_port@
24560f3
 # Address that nrpe should bind to in case there are more than one interface
24560f3
 # and you do not want nrpe to bind on all interfaces.
24560f3
 # NOTE: This option is ignored if NRPE is running under either inetd or xinetd
24560f3
+#       or with systemd. Please start by hand.
24560f3
 
24560f3
 #server_address=127.0.0.1
24560f3
 
24560f3
@@ -74,7 +78,10 @@ server_port=@nrpe_port@
24560f3
 # This determines the effective user that the NRPE daemon should run as.
24560f3
 # You can either supply a username or a UID.
24560f3
 #
24560f3
-# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
24560f3
+# NOTE: This option is ignored if NRPE is running under either inetd
24560f3
+# or xinetd or via systemd. [In systemd please use
24560f3
+# systemctl edit nrpe.service
24560f3
+# to set up the group.
24560f3
 
24560f3
 nrpe_user=@nrpe_user@
24560f3
 
24560f3
@@ -84,7 +91,10 @@ nrpe_user=@nrpe_user@
24560f3
 # This determines the effective group that the NRPE daemon should run as.
24560f3
 # You can either supply a group name or a GID.
24560f3
 #
24560f3
-# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
24560f3
+# NOTE: This option is ignored if NRPE is running under either inetd
24560f3
+# or xinetd or via systemd. [In systemd please use
24560f3
+# systemctl edit nrpe.service
24560f3
+# to set up the user.
24560f3
 
24560f3
 nrpe_group=@nrpe_group@
24560f3
 
24560f3
@@ -101,7 +111,8 @@ nrpe_group=@nrpe_group@
24560f3
 # file to allow only the specified host to connect to the port
24560f3
 # you are running this daemon on.
24560f3
 #
24560f3
-# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
24560f3
+# NOTE: This option is ignored if NRPE is running under either inetd
24560f3
+# or xinetd or systemd
24560f3
 
24560f3
 allowed_hosts=127.0.0.1,::1
24560f3
 
24560f3
@@ -359,3 +370,7 @@ command[check_total_procs]=@pluginsdir@/
24560f3
 
24560f3
 #include_dir=<somedirectory>
24560f3
 #include_dir=<someotherdirectory>
24560f3
+
24560f3
+include_dir=/etc/nrpe.d/
24560f3
+
24560f3
+