summaryrefslogtreecommitdiffstats
path: root/debian/patches/02_nrpe.cfg_local-include_support_nrpe.d.patch
blob: 198954be64cb56d1a8a7d64cf444bf3ea9e03f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Support nrpe_local.cfg & nrpe.d directory.
Author: Sean Finney <seanius@debian.org>
Author: Alexander Wirt <formorer@debian.org>
Forwarded: not-needed

--- a/sample-config/nrpe.cfg.in
+++ b/sample-config/nrpe.cfg.in
@@ -362,6 +362,19 @@ command[check_total_procs]=@pluginsdir@/
 #include_dir=<somedirectory>
 #include_dir=<someotherdirectory>
 
+
+
+# local configuration:
+# if you'd prefer, you can instead place directives here
+
+include=/etc/nagios/nrpe_local.cfg
+
+# you can place your config snipplets into nrpe.d/
+# only snipplets ending in .cfg will get included
+
+include_dir=/etc/nagios/nrpe.d/
+
+
 # KEEP ENVIRONMENT VARIABLES
 # This directive allows you to retain specific variables from the environment
 # when starting the NRPE daemon.