nagios/nagios-3.3.1-change-update-check-default.patch
2012-02-02 00:41:45 +04:00

36 lines
2.1 KiB
Diff

diff -Naur -x '*~' -x '*.rej' -x '*.orig' nagios/html/includes/utils.inc.php nagios-change-update-check-default/html/includes/utils.inc.php
--- nagios/html/includes/utils.inc.php 2009-03-10 21:05:43.000000000 +0100
+++ nagios-change-update-check-default/html/includes/utils.inc.php 2011-07-27 19:45:46.560953681 +0200
@@ -9,7 +9,7 @@
// initialize array
$updateinfo=array(
"found_update_info" => false,
- "update_checks_enabled" => true,
+ "update_checks_enabled" => false,
"last_update_check" => "",
"update_available" => false,
"update_version" => "",
diff -Naur -x '*~' -x '*.rej' -x '*.orig' nagios/include/nagios.h nagios-change-update-check-default/include/nagios.h
--- nagios/include/nagios.h 2011-07-26 02:16:13.000000000 +0200
+++ nagios-change-update-check-default/include/nagios.h 2011-07-27 20:18:33.789359890 +0200
@@ -130,7 +130,7 @@
#define DEFAULT_ADDITIONAL_FRESHNESS_LATENCY 15 /* seconds to be added to freshness thresholds when automatically calculated by Nagios */
-#define DEFAULT_CHECK_FOR_UPDATES 1 /* should we check for new Nagios releases? */
+#define DEFAULT_CHECK_FOR_UPDATES 0 /* should we check for new Nagios releases? */
#define DEFAULT_BARE_UPDATE_CHECK 0 /* report current version and new installs */
#define MINIMUM_UPDATE_CHECK_INTERVAL 60*60*22 /* 22 hours minimum between checks - please be kind to our servers! */
#define BASE_UPDATE_CHECK_INTERVAL 60*60*22 /* 22 hours base interval */
diff -Naur -x '*~' -x '*.rej' -x '*.orig' nagios/sample-config/nagios.cfg.in nagios-change-update-check-default/sample-config/nagios.cfg.in
--- nagios/sample-config/nagios.cfg.in 2010-10-04 04:27:55.000000000 +0200
+++ nagios-change-update-check-default/sample-config/nagios.cfg.in 2011-07-27 19:45:46.562953657 +0200
@@ -728,7 +728,7 @@
# by Nagios Enterprises from the update check is processed in accordance
# with our privacy policy - see http://api.nagios.org for details.
-check_for_updates=1
+check_for_updates=0