Module: check_mk
Branch: master
Commit: 134d77284e9d11284d7aef6f99b8ef70ec76c46d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=134d77284e9d11…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 16 15:35:14 2014 +0200
Add new column painter "Host Notifications Enabled"
This new column has been added to the view <i>Host problems for NagStaMon</i>
and is used
for providing that information to NagStaMon. Note: You will need to update NagStaMon in
order
to use this new information.
---
.werks/887 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/views/builtin.py | 4 +++-
web/plugins/views/painters.py | 6 ++++++
4 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/.werks/887 b/.werks/887
new file mode 100644
index 0000000..bf22bee
--- /dev/null
+++ b/.werks/887
@@ -0,0 +1,10 @@
+Title: Add new column painter "Host Notifications Enabled"
+Level: 1
+Component: multisite
+Version: 1.2.5i3
+Date: 1397655243
+Class: feature
+
+This new column has been added to the view <i>Host problems for NagStaMon</i>
and is used
+for providing that information to NagStaMon. Note: You will need to update NagStaMon in
order
+to use this new information.
diff --git a/ChangeLog b/ChangeLog
index ac200e0..83cdd29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -46,6 +46,7 @@
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
+ * 0887 Add new column painter "Host Notifications Enabled"...
WATO:
* 0784 Improved security of WATO bulk inventory by using transaction ids
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 2103533..5f31c78 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -2110,7 +2110,9 @@ multisite_builtin_views.update({
('host_acknowledged', None, ''),
('sitename_plain', None, ''),
('host_flapping', None, ''),
- ('host_is_active', None, ''),],
+ ('host_is_active', None, ''),
+ ('host_notifications_enabled', None,
''),
+ ],
'play_sounds': False,
'public': True,
'show_filters': ['host_scheduled_downtime_depth',
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 65a5628..3d601df 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -1048,6 +1048,12 @@ multisite_painters["host_is_active"] = {
"columns" : [ "host_active_checks_enabled" ],
"paint" : lambda row: paint_nagiosflag(row,
"host_active_checks_enabled", None),
}
+multisite_painters["host_notifications_enabled"] = {
+ "title" : _("Host notifications enabled"),
+ "short" : _("Notif."),
+ "columns" : [ "host_notifications_enabled" ],
+ "paint" : lambda row: paint_nagiosflag(row,
"host_notifications_enabled", False),
+}
multisite_painters["host_pnpgraph" ] = {
"title" : _("PNP host graph"),