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