]> git.pld-linux.org Git - packages/nagios-nrpe.git/blame - nagios-nrpe-config.patch
fix plugins path, and do not enable them by default (as before)
[packages/nagios-nrpe.git] / nagios-nrpe-config.patch
CommitLineData
527f5069
ER
1--- nrpe-3.0.orig/sample-config/nrpe.cfg.in 2016-07-12 23:24:40.000000000 +0300
2+++ nrpe-3.0/sample-config/nrpe.cfg.in 2016-09-07 15:46:35.913180521 +0300
0cca6c71 3@@ -23,7 +23,7 @@
3c30292c
ER
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
527f5069 7-pid_file=@piddir@/nrpe.pid
3c30292c
ER
8+pid_file=/var/run/nrpe/nrpe.pid
9
10
11
527f5069 12@@ -257,47 +257,8 @@
56070b30
ER
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
ea740bab
ER
21-
22-# COMMAND DEFINITIONS
23-# Command definitions that this daemon will run. Definitions
24-# are in the following format:
25-#
26-# command[<command_name>]=<command_line>
27-#
28-# When the daemon receives a request to return the results of <command_name>
29-# it will execute the command specified by the <command_line> argument.
30-#
31-# Unlike Nagios, the command line cannot contain macros - it must be
32-# typed exactly as it should be executed.
33-#
34-# Note: Any plugins that are used in the command lines must reside
35-# on the machine that this daemon is running on! The examples below
36-# assume that you have plugins installed in a /usr/local/nagios/libexec
37-# directory. Also note that you will have to modify the definitions below
38-# to match the argument format the plugins expect. Remember, these are
39-# examples only!
40-
41-
42-# The following examples use hardcoded command arguments...
43-
527f5069
ER
44-command[check_users]=@pluginsdir@/check_users -w 5 -c 10
45-command[check_load]=@pluginsdir@/check_load -w 15,10,5 -c 30,25,20
46-command[check_hda1]=@pluginsdir@/check_disk -w 20% -c 10% -p /dev/hda1
47-command[check_zombie_procs]=@pluginsdir@/check_procs -w 5 -c 10 -s Z
48-command[check_total_procs]=@pluginsdir@/check_procs -w 150 -c 200
ea740bab
ER
49-
50-
51-# The following examples allow user-supplied arguments and can
527f5069 52-# only be used if the NRPE daemon was compiled with support for
ea740bab
ER
53-# command arguments *AND* the dont_blame_nrpe directive in this
54-# config file is set to '1'. This poses a potential security risk, so
55-# make sure you read the SECURITY file before doing this.
56-
527f5069
ER
57-#command[check_users]=@pluginsdir@/check_users -w $ARG1$ -c $ARG2$
58-#command[check_load]=@pluginsdir@/check_load -w $ARG1$ -c $ARG2$
59-#command[check_disk]=@pluginsdir@/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
60-#command[check_procs]=@pluginsdir@/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
ea740bab 61+# NOTE:
24e11a49 62+# In PLD Linux, command definitions are in file /etc/nagios/nrpe.d/commands.cfg
This page took 0.040944 seconds and 4 git commands to generate.