]>
Commit | Line | Data |
---|---|---|
fa4672ae AM |
1 | --- nrpe-3.2.1/sample-config/nrpe.cfg.in~ 2017-09-01 15:59:54.000000000 +0200 |
2 | +++ nrpe-3.2.1/sample-config/nrpe.cfg.in 2018-09-20 14:02:57.989524019 +0200 | |
3 | @@ -270,92 +270,10 @@ connection_timeout=300 | |
4 | ||
5 | # nasty_metachars="|`&><'\\[]{};\r\n" | |
6 | ||
16af75f0 | 7 | - |
ea740bab ER |
8 | - |
9 | -# COMMAND DEFINITIONS | |
10 | -# Command definitions that this daemon will run. Definitions | |
11 | -# are in the following format: | |
12 | -# | |
13 | -# command[<command_name>]=<command_line> | |
14 | -# | |
15 | -# When the daemon receives a request to return the results of <command_name> | |
16 | -# it will execute the command specified by the <command_line> argument. | |
17 | -# | |
18 | -# Unlike Nagios, the command line cannot contain macros - it must be | |
19 | -# typed exactly as it should be executed. | |
20 | -# | |
21 | -# Note: Any plugins that are used in the command lines must reside | |
22 | -# on the machine that this daemon is running on! The examples below | |
23 | -# assume that you have plugins installed in a /usr/local/nagios/libexec | |
24 | -# directory. Also note that you will have to modify the definitions below | |
25 | -# to match the argument format the plugins expect. Remember, these are | |
26 | -# examples only! | |
27 | - | |
28 | - | |
29 | -# The following examples use hardcoded command arguments... | |
16af75f0 | 30 | -# This is by far the most secure method of using NRPE |
ea740bab | 31 | - |
527f5069 | 32 | -command[check_users]=@pluginsdir@/check_users -w 5 -c 10 |
16af75f0 | 33 | -command[check_load]=@pluginsdir@/check_load -r -w .15,.10,.05 -c .30,.25,.20 |
527f5069 ER |
34 | -command[check_hda1]=@pluginsdir@/check_disk -w 20% -c 10% -p /dev/hda1 |
35 | -command[check_zombie_procs]=@pluginsdir@/check_procs -w 5 -c 10 -s Z | |
36 | -command[check_total_procs]=@pluginsdir@/check_procs -w 150 -c 200 | |
ea740bab ER |
37 | - |
38 | - | |
39 | -# The following examples allow user-supplied arguments and can | |
527f5069 | 40 | -# only be used if the NRPE daemon was compiled with support for |
ea740bab ER |
41 | -# command arguments *AND* the dont_blame_nrpe directive in this |
42 | -# config file is set to '1'. This poses a potential security risk, so | |
43 | -# make sure you read the SECURITY file before doing this. | |
44 | - | |
16af75f0 ER |
45 | -### MISC SYSTEM METRICS ### |
46 | -#command[check_users]=@pluginsdir@/check_users $ARG1$ | |
47 | -#command[check_load]=@pluginsdir@/check_load $ARG1$ | |
48 | -#command[check_disk]=@pluginsdir@/check_disk $ARG1$ | |
49 | -#command[check_swap]=@pluginsdir@/check_swap $ARG1$ | |
50 | -#command[check_cpu_stats]=@pluginsdir@/check_cpu_stats.sh $ARG1$ | |
51 | -#command[check_mem]=@pluginsdir@/custom_check_mem -n $ARG1$ | |
52 | - | |
53 | -### GENERIC SERVICES ### | |
54 | -#command[check_init_service]=sudo @pluginsdir@/check_init_service $ARG1$ | |
55 | -#command[check_services]=@pluginsdir@/check_services -p $ARG1$ | |
56 | - | |
57 | -### SYSTEM UPDATES ### | |
58 | -#command[check_yum]=@pluginsdir@/check_yum | |
59 | -#command[check_apt]=@pluginsdir@/check_apt | |
60 | - | |
61 | -### PROCESSES ### | |
62 | -#command[check_all_procs]=@pluginsdir@/custom_check_procs | |
63 | -#command[check_procs]=@pluginsdir@/check_procs $ARG1$ | |
64 | - | |
65 | -### OPEN FILES ### | |
66 | -#command[check_open_files]=@pluginsdir@/check_open_files.pl $ARG1$ | |
67 | - | |
68 | -### NETWORK CONNECTIONS ### | |
69 | -#command[check_netstat]=@pluginsdir@/check_netstat.pl -p $ARG1$ $ARG2$ | |
70 | - | |
71 | -### ASTERISK ### | |
72 | -#command[check_asterisk]=@pluginsdir@/check_asterisk.pl $ARG1$ | |
73 | -#command[check_sip]=@pluginsdir@/check_sip $ARG1$ | |
74 | -#command[check_asterisk_sip_peers]=sudo @pluginsdir@/check_asterisk_sip_peers.sh $ARG1$ | |
75 | -#command[check_asterisk_version]=@pluginsdir@/nagisk.pl -c version | |
76 | -#command[check_asterisk_peers]=@pluginsdir@/nagisk.pl -c peers | |
77 | -#command[check_asterisk_channels]=@pluginsdir@/nagisk.pl -c channels | |
78 | -#command[check_asterisk_zaptel]=@pluginsdir@/nagisk.pl -c zaptel | |
79 | -#command[check_asterisk_span]=@pluginsdir@/nagisk.pl -c span -s 1 | |
fa4672ae AM |
80 | - |
81 | - | |
82 | - | |
83 | -# INCLUDE CONFIG FILE | |
84 | -# This directive allows you to include definitions from an external config file. | |
85 | - | |
86 | -#include=<somefile.cfg> | |
87 | - | |
88 | - | |
89 | - | |
90 | # INCLUDE CONFIG DIRECTORY | |
91 | # This directive allows you to include definitions from config files (with a | |
92 | # .cfg extension) in one or more directories (with recursion). | |
93 | ||
94 | #include_dir=<somedirectory> | |
95 | #include_dir=<someotherdirectory> | |
16af75f0 | 96 | +include_dir=/etc/nagios/nrpe.d |