Просмотр исходного кода

nrpe.cfg: debug statement needs to be first in file

Fix for issue https://github.com/NagiosEnterprises/nrpe/issues/58

Moved up primarily to enable checking for "if (debug == TRUE)" in the
parse_allowed_hosts function.
John C. Frickson 9 лет назад
Родитель
Сommit
714a5ab6e7
2 измененных файлов с 10 добавлено и 9 удалено
  1. 1 0
      Changelog
  2. 9 9
      sample-config/nrpe.cfg.in

+ 1 - 0
Changelog

@@ -12,6 +12,7 @@ FIXES
 - debug output missing command name (Philippe Kueck)
 - /usr/lib/tmpfiles.d/ndo2db.conf should have 'd' type, not 'D' (John Frickson)
 - Fixes in parse_allowed_hosts() and called functions (Jobst Schmalenbach / John Frickson)
+- nrpe.cfg: 'debug' statement needs to be first in file (Jobst Schmalenbach / John Frickson)
 
 
 3.0 - 2016-08-01

+ 9 - 9
sample-config/nrpe.cfg.in

@@ -18,6 +18,15 @@ log_facility=@log_facility@
 
 
 
+# DEBUGGING OPTION
+# This option determines whether or not debugging messages are logged to the
+# syslog facility.
+# Values: 0=debugging off, 1=debugging on
+
+debug=0
+
+
+
 # PID FILE
 # The name of the file in which the NRPE daemon should write it's process ID
 # number.  The file is only written if the NRPE daemon is started by the root
@@ -145,15 +154,6 @@ allow_bash_command_substitution=0
 
 
 
-# DEBUGGING OPTION
-# This option determines whether or not debugging messages are logged to the
-# syslog facility.
-# Values: 0=debugging off, 1=debugging on
-
-debug=0
-
-
-
 # COMMAND TIMEOUT
 # This specifies the maximum number of seconds that the NRPE daemon will
 # allow plugins to finish executing before killing them off.