]>
Commit | Line | Data |
---|---|---|
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 | |
527f5069 | 3 | @@ -257,47 +257,8 @@ |
56070b30 ER |
4 | # This directive allows you to include definitions from config files (with a |
5 | # .cfg extension) in one or more directories (with recursion). | |
6 | ||
7 | -#include_dir=<somedirectory> | |
8 | -#include_dir=<someotherdirectory> | |
9 | +include_dir=/etc/nagios/nrpe.d | |
10 | ||
11 | ||
ea740bab ER |
12 | - |
13 | -# COMMAND DEFINITIONS | |
14 | -# Command definitions that this daemon will run. Definitions | |
15 | -# are in the following format: | |
16 | -# | |
17 | -# command[<command_name>]=<command_line> | |
18 | -# | |
19 | -# When the daemon receives a request to return the results of <command_name> | |
20 | -# it will execute the command specified by the <command_line> argument. | |
21 | -# | |
22 | -# Unlike Nagios, the command line cannot contain macros - it must be | |
23 | -# typed exactly as it should be executed. | |
24 | -# | |
25 | -# Note: Any plugins that are used in the command lines must reside | |
26 | -# on the machine that this daemon is running on! The examples below | |
27 | -# assume that you have plugins installed in a /usr/local/nagios/libexec | |
28 | -# directory. Also note that you will have to modify the definitions below | |
29 | -# to match the argument format the plugins expect. Remember, these are | |
30 | -# examples only! | |
31 | - | |
32 | - | |
33 | -# The following examples use hardcoded command arguments... | |
34 | - | |
527f5069 ER |
35 | -command[check_users]=@pluginsdir@/check_users -w 5 -c 10 |
36 | -command[check_load]=@pluginsdir@/check_load -w 15,10,5 -c 30,25,20 | |
37 | -command[check_hda1]=@pluginsdir@/check_disk -w 20% -c 10% -p /dev/hda1 | |
38 | -command[check_zombie_procs]=@pluginsdir@/check_procs -w 5 -c 10 -s Z | |
39 | -command[check_total_procs]=@pluginsdir@/check_procs -w 150 -c 200 | |
ea740bab ER |
40 | - |
41 | - | |
42 | -# The following examples allow user-supplied arguments and can | |
527f5069 | 43 | -# only be used if the NRPE daemon was compiled with support for |
ea740bab ER |
44 | -# command arguments *AND* the dont_blame_nrpe directive in this |
45 | -# config file is set to '1'. This poses a potential security risk, so | |
46 | -# make sure you read the SECURITY file before doing this. | |
47 | - | |
527f5069 ER |
48 | -#command[check_users]=@pluginsdir@/check_users -w $ARG1$ -c $ARG2$ |
49 | -#command[check_load]=@pluginsdir@/check_load -w $ARG1$ -c $ARG2$ | |
50 | -#command[check_disk]=@pluginsdir@/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ | |
51 | -#command[check_procs]=@pluginsdir@/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ | |
ea740bab | 52 | +# NOTE: |
24e11a49 | 53 | +# In PLD Linux, command definitions are in file /etc/nagios/nrpe.d/commands.cfg |