Module: check_mk
Branch: master
Commit: 02512f65828c0419b7f8f8229b3bdd91f3df93f0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02512f65828c04…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 12 13:42:26 2011 +0200
FIX: Added host_is_active and host_is_flapping columns for NagStaMon views
Conflicts:
ChangeLog
---
ChangeLog | 1 +
web/plugins/views/builtin.py | 4 +++-
web/plugins/views/painters.py | 14 ++++++++++++++
3 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bf08f7d..b45dceb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -36,6 +36,7 @@
* FIX: Fixed handling of embedded graphs to support the changes made to
* FIX: avoid duplicate import of plugins in OMD local installation
the PNP webservice
+ * FIX: Added host_is_active and host_is_flapping columns for NagStaMon views
* Added snmp_uptime, uptime and printer_supply perfometers
* Allow for displaying service data in host tables
* View editor foldable states are now permament per user
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 9fff76e..57cb3ea 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -1845,7 +1845,9 @@ multisite_builtin_views = {
('host_address', None, ''),
('host_in_downtime', None, ''),
('host_acknowledged', None, ''),
- ('sitename_plain', None, '')],
+ ('sitename_plain', None, ''),
+ ('host_flapping', None, ''),
+ ('host_is_active', 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 60ad7f6..ca21054 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -834,6 +834,20 @@ multisite_painters["host_notifper"] = {
"paint" : lambda row: (None, row["host_notification_period"])
}
+multisite_painters["host_flapping"] = {
+ "title" : "Host is flapping",
+ "short" : "Flap",
+ "columns" : [ "host_is_flapping" ],
+ "paint" : lambda row: paint_nagiosflag(row, "host_is_flapping",
True)
+}
+
+multisite_painters["host_is_active"] = {
+ "title" : "Host is active",
+ "short" : "Active",
+ "columns" : [ "host_active_checks_enabled" ],
+ "paint" : lambda row: paint_nagiosflag(row,
"host_active_checks_enabled", None)
+}
+
multisite_painters["host_pnpgraph" ] = {
"title" : "PNP host graph",
"short" : "PNP graph",