[icinga-checkins] icinga.org: icinga-core/test/core: config: tune icinga.cfg for performance, enable_environment_macros=0, enable_embedded_perl=0 by default #1635

git at icinga.org git at icinga.org
Thu Jun 16 18:16:15 CEST 2011


Module: icinga-core
Branch: test/core
Commit: 3f3414d691b590f43300da36ec17a6c11ed001bd
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=3f3414d691b590f43300da36ec17a6c11ed001bd

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Jun 15 18:33:42 2011 +0200

config: tune icinga.cfg for performance, enable_environment_macros=0, enable_embedded_perl=0 by default #1635

fixes #1635

---

 Changelog                   |    1 +
 sample-config/icinga.cfg.in |   37 ++++++++++++++++++++++++++++---------
 2 files changed, 29 insertions(+), 9 deletions(-)

diff --git a/Changelog b/Changelog
index fb94082..6e5d1c6 100644
--- a/Changelog
+++ b/Changelog
@@ -21,6 +21,7 @@ FIXES
 * install: fix event handlers cmd file location in contrib #1501
 
 * config: deprecate log_external_commands_user #1619
+* config: tune icinga.cfg for performance, enable_environment_macros=0, enable_embedded_perl=0 by default #1635
 
 
 1.4.0 - 11/05/2011
diff --git a/sample-config/icinga.cfg.in b/sample-config/icinga.cfg.in
index aeca7a3..62afca3 100644
--- a/sample-config/icinga.cfg.in
+++ b/sample-config/icinga.cfg.in
@@ -109,9 +109,11 @@ status_file=@localstatedir@/status.dat
 
 # STATUS FILE UPDATE INTERVAL
 # This option determines the frequency (in seconds) that
-# Icinga will periodically dump program, host, and 
+# Icinga will periodically dump program, host, and
 # service status data.
+# Increase the value, if you don't require it that often.
 
+#status_update_interval=30
 status_update_interval=10
 
 
@@ -176,10 +178,13 @@ command_file=@EXTCMDFILEDIR@/icinga.cmd
 
 # EXTERNAL COMMAND BUFFER SLOTS
 # This settings is used to tweak the number of items or "slots" that
-# the Icinga daemon should allocate to the buffer that holds incoming 
-# external commands before they are processed.  As external commands 
-# are processed by the daemon, they are removed from the buffer.  
+# the Icinga daemon should allocate to the buffer that holds incoming
+# external commands before they are processed.  As external commands
+# are processed by the daemon, they are removed from the buffer.
+# Increase the value, if you are using addons like check_mk supplying
+# more external commands (passive check results) than usual.
 
+#external_command_buffer_slots=32768
 external_command_buffer_slots=4096
 
 
@@ -500,7 +505,10 @@ max_concurrent_checks=0
 # HOST AND SERVICE CHECK REAPER FREQUENCY
 # This is the frequency (in seconds!) that Icinga will process
 # the results of host and service checks.
+# Lower this value in larger environments to allow faster
+# check result processing (requires more cpu power).
 
+#check_result_reaper_frequency=1
 check_result_reaper_frequency=10
 
 
@@ -667,7 +675,12 @@ sleep_time=0.25
 # service checks, host checks, event handlers, notifications, the
 # ocsp command, and performance data commands.  All values are in
 # seconds.
+# Increase the timeout values in case you are experiencing a lot
+# of check timeouts. Addons like e.g. check_mk will perform
+# one combined active servicecheck which could take longer than
+# the default of 60sec.
 
+#service_check_timeout=120
 service_check_timeout=60
 host_check_timeout=30
 event_handler_timeout=30
@@ -1224,9 +1237,13 @@ p1_file=@bindir@/p1.pl
 # This option determines whether or not the embedded Perl interpreter
 # will be enabled during runtime.  This option has no effect if Icinga
 # has not been compiled with support for embedded Perl.
+# This option is intentionally disabled by default, because embedded
+# perl can cause memory leaks and make Icinga unstable if not properly
+# used.
+# Only enable this setting when you really know what you are doing!
 # Values: 0 = disable interpreter, 1 = enable interpreter
 
-enable_embedded_perl=1
+enable_embedded_perl=0
 
 
 
@@ -1344,13 +1361,15 @@ use_large_installation_tweaks=0
 # This option determines whether or not Icinga will make all standard
 # macros available as environment variables when host/service checks
 # and system commands (event handlers, notifications, etc.) are
-# executed.  Enabling this option can cause performance issues in 
+# executed.  Enabling this option can cause performance issues in
 # large installations, as it will consume a bit more memory and (more
 # importantly) consume more CPU.
-# Values: 1 - Enable environment variable macros (default)
-#         0 - Disable environment variable macros
+# Keep in mind that various addons/plugins will require this setting
+# to be enabled (e.g. check_oracle_health) for special usage.
+# Values: 1 - Enable environment variable macros
+#         0 - Disable environment variable macros (default)
 
-enable_environment_macros=1
+enable_environment_macros=0
 
 
 





More information about the icinga-checkins mailing list