X-Git-Url: http://git.pld-linux.org/?p=packages%2Fnagios-nrpe.git;a=blobdiff_plain;f=nagios-nrpe-config.patch;h=e94813ecb937363dcd83daee5e30b9f364c1d570;hp=86785ba1a8daecee44b26dfe272db67623866bf3;hb=a143a8fb1fb1b561b0570ae96d033d2a7a039d2f;hpb=56070b30a1403ebb893285c65ccbdfd553f4dad2 diff --git a/nagios-nrpe-config.patch b/nagios-nrpe-config.patch index 86785ba..e94813e 100644 --- a/nagios-nrpe-config.patch +++ b/nagios-nrpe-config.patch @@ -1,38 +1,84 @@ ---- nrpe-2.12.new/sample-config/nrpe.cfg.in 2008-03-27 09:47:26.682398787 +0100 -+++ nrpe-2.12/sample-config/nrpe.cfg.in 2012-01-04 17:57:22.907296034 +0200 -@@ -23,7 +23,7 @@ - # number. The file is only written if the NRPE daemon is started by the root - # user and is running in standalone mode. - --pid_file=/var/run/nrpe.pid -+pid_file=/var/run/nrpe/nrpe.pid - - - -@@ -169,8 +169,7 @@ +--- nrpe-3.2.0/sample-config/nrpe.cfg.in~ 2017-06-28 00:13:20.000000000 +0300 ++++ nrpe-3.2.0/sample-config/nrpe.cfg.in 2017-07-11 12:15:01.541380203 +0300 +@@ -281,80 +281,4 @@ + # 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= -#include_dir= +- +- +- +-# COMMAND DEFINITIONS +-# Command definitions that this daemon will run. Definitions +-# are in the following format: +-# +-# command[]= +-# +-# When the daemon receives a request to return the results of +-# it will execute the command specified by the argument. +-# +-# Unlike Nagios, the command line cannot 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... +-# This is by far the most secure method of using NRPE +- +-command[check_users]=@pluginsdir@/check_users -w 5 -c 10 +-command[check_load]=@pluginsdir@/check_load -r -w .15,.10,.05 -c .30,.25,.20 +-command[check_hda1]=@pluginsdir@/check_disk -w 20% -c 10% -p /dev/hda1 +-command[check_zombie_procs]=@pluginsdir@/check_procs -w 5 -c 10 -s Z +-command[check_total_procs]=@pluginsdir@/check_procs -w 150 -c 200 +- +- +-# 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'. This poses a potential security risk, so +-# make sure you read the SECURITY file before doing this. +- +-### MISC SYSTEM METRICS ### +-#command[check_users]=@pluginsdir@/check_users $ARG1$ +-#command[check_load]=@pluginsdir@/check_load $ARG1$ +-#command[check_disk]=@pluginsdir@/check_disk $ARG1$ +-#command[check_swap]=@pluginsdir@/check_swap $ARG1$ +-#command[check_cpu_stats]=@pluginsdir@/check_cpu_stats.sh $ARG1$ +-#command[check_mem]=@pluginsdir@/custom_check_mem -n $ARG1$ +- +-### GENERIC SERVICES ### +-#command[check_init_service]=sudo @pluginsdir@/check_init_service $ARG1$ +-#command[check_services]=@pluginsdir@/check_services -p $ARG1$ +- +-### SYSTEM UPDATES ### +-#command[check_yum]=@pluginsdir@/check_yum +-#command[check_apt]=@pluginsdir@/check_apt +- +-### PROCESSES ### +-#command[check_all_procs]=@pluginsdir@/custom_check_procs +-#command[check_procs]=@pluginsdir@/check_procs $ARG1$ +- +-### OPEN FILES ### +-#command[check_open_files]=@pluginsdir@/check_open_files.pl $ARG1$ +- +-### NETWORK CONNECTIONS ### +-#command[check_netstat]=@pluginsdir@/check_netstat.pl -p $ARG1$ $ARG2$ +- +-### ASTERISK ### +-#command[check_asterisk]=@pluginsdir@/check_asterisk.pl $ARG1$ +-#command[check_sip]=@pluginsdir@/check_sip $ARG1$ +-#command[check_asterisk_sip_peers]=sudo @pluginsdir@/check_asterisk_sip_peers.sh $ARG1$ +-#command[check_asterisk_version]=@pluginsdir@/nagisk.pl -c version +-#command[check_asterisk_peers]=@pluginsdir@/nagisk.pl -c peers +-#command[check_asterisk_channels]=@pluginsdir@/nagisk.pl -c channels +-#command[check_asterisk_zaptel]=@pluginsdir@/nagisk.pl -c zaptel +-#command[check_asterisk_span]=@pluginsdir@/nagisk.pl -c span -s 1 +include_dir=/etc/nagios/nrpe.d - - - -@@ -196,11 +195,11 @@ - - # The following examples use hardcoded command arguments... - --command[check_users]=@libexecdir@/check_users -w 5 -c 10 --command[check_load]=@libexecdir@/check_load -w 15,10,5 -c 30,25,20 --command[check_hda1]=@libexecdir@/check_disk -w 20% -c 10% -p /dev/hda1 --command[check_zombie_procs]=@libexecdir@/check_procs -w 5 -c 10 -s Z --command[check_total_procs]=@libexecdir@/check_procs -w 150 -c 200 -+#command[check_users]=@libexecdir@/check_users -w 5 -c 10 -+#command[check_load]=@libexecdir@/check_load -w 15,10,5 -c 30,25,20 -+#command[check_hda1]=@libexecdir@/check_disk -w 20% -c 10% -p /dev/hda1 -+#command[check_zombie_procs]=@libexecdir@/check_procs -w 5 -c 10 -s Z -+#command[check_total_procs]=@libexecdir@/check_procs -w 150 -c 200 - - - # The following examples allow user-supplied arguments and can