Module: check_mk
Branch: master
Commit: cd9b0fd06c357be03cf505e231f8de48548ed258
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cd9b0fd06c357b…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Tue Jun 6 20:32:27 2017 +0200
4796 FIX Fixed standard setting for rule based notification in new sites
Rule based notifications is new standard setting for new created sites.
Change-Id: If0a2eedd2e021403e7b9a365ce7987a41634841e
---
.werks/4796 | 11 +++++++++++
modules/notify.py | 2 +-
web/htdocs/wato.py | 1 -
web/plugins/wato/globals_notification.py | 2 +-
4 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/4796 b/.werks/4796
new file mode 100644
index 0000000..e2bcebf
--- /dev/null
+++ b/.werks/4796
@@ -0,0 +1,11 @@
+Title: Fixed standard setting for rule based notification in new sites
+Level: 1
+Component: notifications
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1496773819
+
+Rule based notifications is new standard setting for new created sites.
diff --git a/modules/notify.py b/modules/notify.py
index 2b8d67d..37cfa40 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -61,7 +61,7 @@ notification_logging = 1
notification_backlog = 10 # keep the last 10 notification contexts for reference
# Settings for new rule based notifications
-enable_rulebased_notifications = False
+enable_rulebased_notifications = True
notification_fallback_email = ""
notification_rules = []
notification_bulk_interval = 10 # Check every 10 seconds for ripe bulks
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index af70a51..ba358d6 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -14387,7 +14387,6 @@ def create_sample_config():
"qmail_stats",
],
"inventory_check_interval": 120,
- "enable_rulebased_notifications": True,
}
)
diff --git a/web/plugins/wato/globals_notification.py
b/web/plugins/wato/globals_notification.py
index aab54b4..900dcf3 100644
--- a/web/plugins/wato/globals_notification.py
+++ b/web/plugins/wato/globals_notification.py
@@ -42,7 +42,7 @@ register_configvar(group,
help = _("If you enable the new rule based notifications then the current
plain text email and "
""flexible notifications" will become inactive.
Instead notificatios will "
"be configured with the WATO module
<i>Notifications</i> on a global base."),
- default_value = False,
+ default_value = True,
),
domain = "check_mk",
need_restart = True)