source: trunk/lvs/debian/config/etc/nagios/nrpe.cfg @ 2048

Last change on this file since 2048 was 2048, checked in by achernya, 13 years ago
Upgrade from lenny to squeeze
File size: 7.3 KB
Line 
1#############################################################################
2# Sample NRPE Config File
3# Written by: Ethan Galstad (nagios@nagios.org)
4#
5# Last Modified: 11-23-2007
6#
7# NOTES:
8# This is a sample configuration file for the NRPE daemon.  It needs to be
9# located on the remote host that is running the NRPE daemon, not the host
10# from which the check_nrpe client is being executed.
11#############################################################################
12
13
14# LOG FACILITY
15# The syslog facility that should be used for logging purposes.
16
17log_facility=daemon
18
19
20
21# PID FILE
22# The name of the file in which the NRPE daemon should write it's process ID
23# number.  The file is only written if the NRPE daemon is started by the root
24# user and is running in standalone mode.
25
26pid_file=/var/run/nagios/nrpe.pid
27
28
29
30# PORT NUMBER
31# Port number we should wait for connections on.
32# NOTE: This must be a non-priviledged port (i.e. > 1024).
33# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
34
35server_port=5666
36
37
38
39# SERVER ADDRESS
40# Address that nrpe should bind to in case there are more than one interface
41# and you do not want nrpe to bind on all interfaces.
42# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
43
44#server_address=192.168.1.1
45
46
47
48# ALLOWED HOST ADDRESSES
49# This is a comma-delimited list of IP address of hosts that are allowed
50# to talk to the NRPE daemon.
51#
52# NOTE: The daemon only does rudimentary checking of the client's IP
53#       address.  I would highly recommend adding entries in your
54#       /etc/hosts.allow file to allow only the specified host to connect
55#       to the port you are running this daemon on.
56#
57# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
58
59allowed_hosts=18.187.1.128,18.181.0.65
60
61
62
63# NRPE USER
64# This determines the effective user that the NRPE daemon should run as. 
65# You can either supply a username or a UID.
66#
67# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
68
69nrpe_user=nagios
70
71
72
73# NRPE GROUP
74# This determines the effective group that the NRPE daemon should run as. 
75# You can either supply a group name or a GID.
76#
77# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
78
79nrpe_group=nagios
80
81
82
83# COMMAND ARGUMENT PROCESSING
84# This option determines whether or not the NRPE daemon will allow clients
85# to specify arguments to commands that are executed.  This option only works
86# if the daemon was configured with the --enable-command-args configure script
87# option. 
88#
89# *** ENABLING THIS OPTION IS A SECURITY RISK! ***
90# Read the SECURITY file for information on some of the security implications
91# of enabling this variable.
92#
93# Values: 0=do not allow arguments, 1=allow command arguments
94
95dont_blame_nrpe=0
96
97
98
99# DEBUGGING OPTION
100# This option determines whether or not debugging messages are logged to the
101# syslog facility.
102# Values: 0=debugging off, 1=debugging on
103
104debug=0
105
106
107
108# COMMAND TIMEOUT
109# This specifies the maximum number of seconds that the NRPE daemon will
110# allow plugins to finish executing before killing them off.
111
112command_timeout=60
113
114
115
116# CONNECTION TIMEOUT
117# This specifies the maximum number of seconds that the NRPE daemon will
118# wait for a connection to be established before exiting. This is sometimes
119# seen where a network problem stops the SSL being established even though
120# all network sessions are connected. This causes the nrpe daemons to
121# accumulate, eating system resources. Do not set this too low.
122
123connection_timeout=300
124
125
126
127# WEEK RANDOM SEED OPTION
128# This directive allows you to use SSL even if your system does not have
129# a /dev/random or /dev/urandom (on purpose or because the necessary patches
130# were not applied). The random number generator will be seeded from a file
131# which is either a file pointed to by the environment valiable $RANDFILE
132# or $HOME/.rnd. If neither exists, the pseudo random number generator will
133# be initialized and a warning will be issued.
134# Values: 0=only seed from /dev/[u]random, 1=also seed from weak randomness
135
136#allow_weak_random_seed=1
137
138
139
140# INCLUDE CONFIG FILE
141# This directive allows you to include definitions from an external config file.
142
143#include=<somefile.cfg>
144
145
146
147# INCLUDE CONFIG DIRECTORY
148# This directive allows you to include definitions from config files (with a
149# .cfg extension) in one or more directories (with recursion).
150
151#include_dir=<somedirectory>
152#include_dir=<someotherdirectory>
153
154
155
156# COMMAND DEFINITIONS
157# Command definitions that this daemon will run.  Definitions
158# are in the following format:
159#
160# command[<command_name>]=<command_line>
161#
162# When the daemon receives a request to return the results of <command_name>
163# it will execute the command specified by the <command_line> argument.
164#
165# Unlike Nagios, the command line cannot contain macros - it must be
166# typed exactly as it should be executed.
167#
168# Note: Any plugins that are used in the command lines must reside
169# on the machine that this daemon is running on!  The examples below
170# assume that you have plugins installed in a /usr/local/nagios/libexec
171# directory.  Also note that you will have to modify the definitions below
172# to match the argument format the plugins expect.  Remember, these are
173# examples only!
174
175# The following examples use hardcoded command arguments...
176
177#command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
178#command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
179command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/hda1
180command[check_disk2]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/hdb1
181command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
182command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
183
184# The following examples allow user-supplied arguments and can
185# only be used if the NRPE daemon was compiled with support for
186# command arguments *AND* the dont_blame_nrpe directive in this
187# config file is set to '1'...
188
189#command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
190#command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
191command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 10% -c 5%
192#command[check_disk_p]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
193#command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$
194#command[check_procs_C]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -C $ARG3$
195#command[check_procs_P]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -P $ARG3$
196#command[check_procs_m]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -m $ARG3$
197#command[check_procs_s]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
198#command[check_procs_u]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -u $ARG3$
199#command[check_procs_z]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -z $ARG3$
200
201#command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
202#command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
203#command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
204#command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
205
206#
207# local configuration:
208#       if you'd prefer, you can instead place directives here
209include=/etc/nagios/nrpe_local.cfg
210
211#
212# you can place your config snipplets into nrpe.d/
213include_dir=/etc/nagios/nrpe.d/
214
215
Note: See TracBrowser for help on using the repository browser.