g messages are logged to the
# syslog facility.
# Values: 0=debugging off, 1=debugging on
=0
# COMMAND TIMEOUT
# This specifies the maximum number of seconds that the NRPE daemon will
# allow plugins to finish executing before killing them off.
_ timeout=60
# WEEK RANDOM SEED OPTION
# This directive allows you to use SSL even if your system does not have
# a/dev/random or/dev/urandom (on purpose or because the necessary patches
# were not applied). The random number generator will be seeded from a file
# which is either a file pointed to by the environment valiable $ RANDFILE
# or $ HOME/.rnd. If neither exists, the pseudo random number generator will
# be initialized and a warning will be issued.
# Values: 0=only seed from/dev/[u] random, 1=also seed from weak randomness
# allow_weak_random_seed=1
# INCLUDE CONFIG FILE
# This directive allows you to include definitions from an external config file.
# include= lt; somefile.cfg gt;
# INCLUDE CONFIG DIRECTORY
# This directive allows you to include definitions from config files (with a
# .cfg extension) in one or more directories (with recursion).
# include_dir= lt; somedirectory gt;
# include_dir= lt; someotherdirectory gt;
# COMMAND DEFINITIONS
# Command definitions that this daemon will run. Definitions
# are in the following format:
#
# command [ lt; command_name gt;]= lt; command_line gt;
#
# When the daemon receives a request to return the results of lt; command_name gt;
# it will execute the command specified by the lt; command_line gt; argument.
#
# Unlike Nagios, the command line can not contain macros - it must be
# typed exactly as it should be executed.
#
# Note: Any plugins that are used in the command lines must reside
# on the machine that this daemon is running on! The examples below
# assume that you have plugins installed in a/usr/local/nagios/libexec
# directory. Also note that you will have to modify the definitions below
# to match the argument format the plugins expect. Remember, these are
# examples only!
# The following examples use hardcoded command arguments ...
[check_users]=/ usr/lib/nagios/plugins/check_users -w 5 -c 10 [check_load]=/ usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [check_disk1]=/ usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p/dev/md1 [check_disk2]=/ usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p/dev/md3 [check_zombie_procs]=/ usr/lib/nagios/plugins/check_procs -w 17000 -c 18000 -s Z [check_total_procs]=/ usr/lib/nagios/plugins/check_procs -w 17000 -c 20000 [check_swap]=/ usr/lib/nagios/plugins/check_swap -w 20 -c 10 [check_raid]=/ usr/lib/nagios/plugins/check_linux_raid md1
# The following examples allow user-supplied arguments and can
# only be used if the NRPE daemon was compiled with support for
# command arguments * AND * the dont_blame_nrpe directive in this
# config file is set to 1 ...
# command [check_users]=/ usr/lib/nagios/plugins/check_users -w $ ARG1 $ -c $ ARG2 $
# command [check_load]=/ usr/lib/nagios/plugins/check_load -w $ ARG1 $ -c $ ARG2 $
# command [check_disk]=/ usr/lib/nagios/plugins/check_disk -w $ ARG1 $ -c $ ARG2 $ -p $ ARG3 $
# command [check_procs]=/ usr/lib/nagios/plugins/check_procs -w $ ARG1 $ -c $ ARG2 $ -s $ ARG3 $
#
# local configuration:
# if you'd prefer, you can instead place directives here=/ etc/nagios/nrpe_local.cfg
Додаток І
Вихідні тексти плагінів, що не йдуть в поставці з пакетом ядра системи.