]> git.pld-linux.org Git - packages/nagios-nrpe.git/blob - nagios-nrpe-config.patch
trigger: ensure include_dir directive is enabled
[packages/nagios-nrpe.git] / nagios-nrpe-config.patch
1 --- nrpe-2.12/sample-config/nrpe.cfg.in 2012-01-04 17:57:22.907296034 +0200
2 +++ nrpe-2.15/sample-config/nrpe.cfg.in 2015-05-25 15:40:07.747598382 +0300
3 @@ -23,7 +23,7 @@
4  # number.  The file is only written if the NRPE daemon is started by the root
5  # user and is running in standalone mode.
6  
7 -pid_file=/var/run/nrpe.pid
8 +pid_file=/var/run/nrpe/nrpe.pid
9  
10  
11  
12 @@ -169,8 +169,7 @@
13  # This directive allows you to include definitions from config files (with a
14  # .cfg extension) in one or more directories (with recursion).
15  
16 -#include_dir=<somedirectory>
17 -#include_dir=<someotherdirectory>
18 +include_dir=/etc/nagios/nrpe.d
19  
20  
21  
22 @@ -195,41 +194,2 @@
23 -
24 -
25 -# COMMAND DEFINITIONS
26 -# Command definitions that this daemon will run.  Definitions
27 -# are in the following format:
28 -#
29 -# command[<command_name>]=<command_line>
30 -#
31 -# When the daemon receives a request to return the results of <command_name>
32 -# it will execute the command specified by the <command_line> argument.
33 -#
34 -# Unlike Nagios, the command line cannot contain macros - it must be
35 -# typed exactly as it should be executed.
36 -#
37 -# Note: Any plugins that are used in the command lines must reside
38 -# on the machine that this daemon is running on!  The examples below
39 -# assume that you have plugins installed in a /usr/local/nagios/libexec
40 -# directory.  Also note that you will have to modify the definitions below
41 -# to match the argument format the plugins expect.  Remember, these are
42 -# examples only!
43 -
44 -
45 -# The following examples use hardcoded command arguments...
46 -
47 -command[check_users]=@libexecdir@/check_users -w 5 -c 10
48 -command[check_load]=@libexecdir@/check_load -w 15,10,5 -c 30,25,20
49 -command[check_hda1]=@libexecdir@/check_disk -w 20% -c 10% -p /dev/hda1
50 -command[check_zombie_procs]=@libexecdir@/check_procs -w 5 -c 10 -s Z
51 -command[check_total_procs]=@libexecdir@/check_procs -w 150 -c 200 
52 -
53 -
54 -# The following examples allow user-supplied arguments and can
55 -# only be used if the NRPE daemon was compiled with support for 
56 -# command arguments *AND* the dont_blame_nrpe directive in this
57 -# config file is set to '1'.  This poses a potential security risk, so
58 -# make sure you read the SECURITY file before doing this.
59 -
60 -#command[check_users]=@libexecdir@/check_users -w $ARG1$ -c $ARG2$
61 -#command[check_load]=@libexecdir@/check_load -w $ARG1$ -c $ARG2$
62 -#command[check_disk]=@libexecdir@/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
63 -#command[check_procs]=@libexecdir@/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
64 +# NOTE:
65 +# In PLD Linux, command definitions are in file /etc/nagios/nrpe.d/commands.cfg
This page took 0.038711 seconds and 3 git commands to generate.