]>
Commit | Line | Data |
---|---|---|
16af75f0 ER |
1 | --- nrpe-3.2.0/sample-config/nrpe.cfg.in~ 2017-06-28 00:13:20.000000000 +0300 |
2 | +++ nrpe-3.2.0/sample-config/nrpe.cfg.in 2017-07-11 12:15:01.541380203 +0300 | |
3 | @@ -281,80 +281,4 @@ | |
4 | # INCLUDE CONFIG DIRECTORY | |
56070b30 ER |
5 | # This directive allows you to include definitions from config files (with a |
6 | # .cfg extension) in one or more directories (with recursion). | |
16af75f0 | 7 | - |
56070b30 ER |
8 | -#include_dir=<somedirectory> |
9 | -#include_dir=<someotherdirectory> | |
16af75f0 ER |
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... | |
16af75f0 | 34 | -# This is by far the most secure method of using NRPE |
ea740bab | 35 | - |
527f5069 | 36 | -command[check_users]=@pluginsdir@/check_users -w 5 -c 10 |
16af75f0 | 37 | -command[check_load]=@pluginsdir@/check_load -r -w .15,.10,.05 -c .30,.25,.20 |
527f5069 ER |
38 | -command[check_hda1]=@pluginsdir@/check_disk -w 20% -c 10% -p /dev/hda1 |
39 | -command[check_zombie_procs]=@pluginsdir@/check_procs -w 5 -c 10 -s Z | |
40 | -command[check_total_procs]=@pluginsdir@/check_procs -w 150 -c 200 | |
ea740bab ER |
41 | - |
42 | - | |
43 | -# The following examples allow user-supplied arguments and can | |
527f5069 | 44 | -# only be used if the NRPE daemon was compiled with support for |
ea740bab ER |
45 | -# command arguments *AND* the dont_blame_nrpe directive in this |
46 | -# config file is set to '1'. This poses a potential security risk, so | |
47 | -# make sure you read the SECURITY file before doing this. | |
48 | - | |
16af75f0 ER |
49 | -### MISC SYSTEM METRICS ### |
50 | -#command[check_users]=@pluginsdir@/check_users $ARG1$ | |
51 | -#command[check_load]=@pluginsdir@/check_load $ARG1$ | |
52 | -#command[check_disk]=@pluginsdir@/check_disk $ARG1$ | |
53 | -#command[check_swap]=@pluginsdir@/check_swap $ARG1$ | |
54 | -#command[check_cpu_stats]=@pluginsdir@/check_cpu_stats.sh $ARG1$ | |
55 | -#command[check_mem]=@pluginsdir@/custom_check_mem -n $ARG1$ | |
56 | - | |
57 | -### GENERIC SERVICES ### | |
58 | -#command[check_init_service]=sudo @pluginsdir@/check_init_service $ARG1$ | |
59 | -#command[check_services]=@pluginsdir@/check_services -p $ARG1$ | |
60 | - | |
61 | -### SYSTEM UPDATES ### | |
62 | -#command[check_yum]=@pluginsdir@/check_yum | |
63 | -#command[check_apt]=@pluginsdir@/check_apt | |
64 | - | |
65 | -### PROCESSES ### | |
66 | -#command[check_all_procs]=@pluginsdir@/custom_check_procs | |
67 | -#command[check_procs]=@pluginsdir@/check_procs $ARG1$ | |
68 | - | |
69 | -### OPEN FILES ### | |
70 | -#command[check_open_files]=@pluginsdir@/check_open_files.pl $ARG1$ | |
71 | - | |
72 | -### NETWORK CONNECTIONS ### | |
73 | -#command[check_netstat]=@pluginsdir@/check_netstat.pl -p $ARG1$ $ARG2$ | |
74 | - | |
75 | -### ASTERISK ### | |
76 | -#command[check_asterisk]=@pluginsdir@/check_asterisk.pl $ARG1$ | |
77 | -#command[check_sip]=@pluginsdir@/check_sip $ARG1$ | |
78 | -#command[check_asterisk_sip_peers]=sudo @pluginsdir@/check_asterisk_sip_peers.sh $ARG1$ | |
79 | -#command[check_asterisk_version]=@pluginsdir@/nagisk.pl -c version | |
80 | -#command[check_asterisk_peers]=@pluginsdir@/nagisk.pl -c peers | |
81 | -#command[check_asterisk_channels]=@pluginsdir@/nagisk.pl -c channels | |
82 | -#command[check_asterisk_zaptel]=@pluginsdir@/nagisk.pl -c zaptel | |
83 | -#command[check_asterisk_span]=@pluginsdir@/nagisk.pl -c span -s 1 | |
84 | +include_dir=/etc/nagios/nrpe.d |