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