Module: check_mk
Branch: master
Commit: 8551bd841338a862a38975fe6374f010f9d87eb6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8551bd841338a8…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Sep 1 15:17:16 2014 +0200
#1176 winperf_msx_queues: The list of counters for inventory can now be configured host based using wato
---
.werks/1176 | 9 +++++++++
ChangeLog | 1 +
checks/winperf_msx_queues | 10 ++++++++++
web/plugins/wato/check_parameters.py | 24 ++++++++++++++++++++++++
4 files changed, 44 insertions(+)
diff --git a/.werks/1176 b/.werks/1176
new file mode 100644
index 0000000..9bf1175
--- /dev/null
+++ b/.werks/1176
@@ -0,0 +1,9 @@
+Title: winperf_msx_queues: The list of counters for inventory can now be configured host based using wato
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i6
+Date: 1409577386
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 529707a..02982da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@
* 1103 windows agent: now able to omit context text of logfiles...
* 1150 netstat: new check for monitoring TCP/UDP connections and Linux and AIX...
* 0654 oracle_instance: now also monitors the log mode
+ * 1176 winperf_msx_queues: The list of counters for inventory can now be configured host based using wato
* 1051 FIX: tcp_conn_stats: fix missing performance data...
* 1142 FIX: winperf_ts_sessions: fix computation, check has never really worked
* 1090 FIX: zfsget: fixed exception which happened on incomplete zfs entries
diff --git a/checks/winperf_msx_queues b/checks/winperf_msx_queues
index fabe7cd..c7a8f18 100644
--- a/checks/winperf_msx_queues
+++ b/checks/winperf_msx_queues
@@ -64,9 +64,19 @@ winperf_msx_queues = {
"Poison Queue Length" : "44",
}
+winperf_msx_queues_inventory = []
+
def inventory_winperf_msx_queues(info):
num_instances = int(info[1][0])
if num_instances > 0:
+ # Its possible to set the wanted queues via wato
+ inventory_rules = {}
+ for rulset in host_extra_conf(g_hostname, winperf_msx_queues_inventory):
+ inventory_rules.update(dict(rulset))
+ # In case that rules for this host are set,
+ # only use this rules
+ if inventory_rules:
+ winperf_msx_queues = inventory_rules
return [ (name, "msx_queues_default_levels") for name in winperf_msx_queues ]
def check_winperf_msx_queues(item, params, info):
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index db81a77..dee31e8 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -3955,6 +3955,30 @@ register_rule(group + '/' + subgroup_networking,
match = 'all',
)
+register_rule(group + '/' + subgroup_inventory,
+ varname = "winperf_msx_queues_inventory",
+ title = _('Microsoft Exchange Queues Inventory'),
+ help = _('Per default all Counters a preconfigured in the check. '
+ 'It needed it is possible to overwrite that with this rule. '
+ 'To do that, knowledge about the Agent Output is needed. '),
+ valuespec = ListOf(
+ Tuple(
+ elements = [
+ TextAscii(
+ title = _("Name of Counter"),
+ help = _("Name of the Counter to be monitored."),
+ allow_empty = False,
+ ),
+ Integer(
+ title = _("Offset"),
+ help = _("The Offset of the information relative to counter base"),
+ allow_empty = False,
+ ),
+ ]),
+ add_label = _("Add Counter")),
+ match = 'all',
+)
+
register_check_parameters(
subgroup_applications,
"mailqueue_length",
Module: check_mk
Branch: master
Commit: 68ac7458efabf8dc4ab9d1d0ca4187751bbdfd94
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=68ac7458efabf8…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Sep 1 10:25:54 2014 +0200
mkeventd views. fixed missing i18n
---
mkeventd/web/plugins/views/mkeventd.py | 35 ++++++++++++++++----------------
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git a/mkeventd/web/plugins/views/mkeventd.py b/mkeventd/web/plugins/views/mkeventd.py
index ac2b4b1..0b79fb9 100644
--- a/mkeventd/web/plugins/views/mkeventd.py
+++ b/mkeventd/web/plugins/views/mkeventd.py
@@ -894,7 +894,7 @@ if mkeventd_enabled:
def mkeventd_view(d):
x = {
- 'topic': u'Event Console',
+ 'topic': _('Event Console'),
'browser_reload': 60,
'column_headers': 'pergroup',
'icon': 'mkeventd',
@@ -918,8 +918,8 @@ if mkeventd_enabled:
# Table of all open events
multisite_builtin_views['ec_events'] = mkeventd_view({
- 'title': u'Events',
- 'description': u'Table of all currently open events (handled and unhandled)',
+ 'title': _('Events'),
+ 'description': _('Table of all currently open events (handled and unhandled)'),
'datasource': 'mkeventd_events',
'layout': 'table',
'painters': [
@@ -962,8 +962,8 @@ if mkeventd_enabled:
})
multisite_builtin_views['ec_events_of_monhost'] = mkeventd_view({
- 'title': u'Events of Monitored Host',
- 'description': u'Currently open events of a host that is monitored',
+ 'title': _('Events of Monitored Host'),
+ 'description': _('Currently open events of a host that is monitored'),
'datasource': 'mkeventd_events',
'layout': 'table',
'hidden': True,
@@ -1001,8 +1001,8 @@ if mkeventd_enabled:
],
})
multisite_builtin_views['ec_events_of_host'] = mkeventd_view({
- 'title': u'Events of Host',
- 'description': u'Currently open events of one specific host',
+ 'title': _('Events of Host'),
+ 'description': _('Currently open events of one specific host'),
'datasource': 'mkeventd_events',
'layout': 'table',
'hidden': True,
@@ -1041,8 +1041,8 @@ if mkeventd_enabled:
})
multisite_builtin_views['ec_event'] = mkeventd_view({
- 'title': u'Event Details',
- 'description': u'Details about one event',
+ 'title': _('Event Details'),
+ 'description': _('Details about one event'),
'linktitle': 'Event Details',
'datasource': 'mkeventd_events',
'layout': 'dataset',
@@ -1080,9 +1080,8 @@ if mkeventd_enabled:
})
multisite_builtin_views['ec_history_recent'] = mkeventd_view({
- 'title': u'Recent Event History',
- 'description': u'Information about events and actions on events during the '
- u'recent 24 hours.',
+ 'title': _('Recent Event History'),
+ 'description': _('Information about events and actions on events during the recent 24 hours.'),
'datasource': 'mkeventd_history',
'layout': 'table',
@@ -1134,8 +1133,8 @@ if mkeventd_enabled:
})
multisite_builtin_views['ec_historyentry'] = mkeventd_view({
- 'title': u'Event History Entry',
- 'description': u'Details about a historical event history entry',
+ 'title': _('Event History Entry'),
+ 'description': _('Details about a historical event history entry'),
'datasource': 'mkeventd_history',
'layout': 'dataset',
@@ -1175,8 +1174,8 @@ if mkeventd_enabled:
})
multisite_builtin_views['ec_history_of_event'] = mkeventd_view({
- 'title': u'History of Event',
- 'description': u'History entries of one specific event',
+ 'title': _('History of Event'),
+ 'description': _('History entries of one specific event'),
'datasource': 'mkeventd_history',
'layout': 'table',
'columns': 1,
@@ -1209,8 +1208,8 @@ if mkeventd_enabled:
})
multisite_builtin_views['ec_history_of_host'] = mkeventd_view({
- 'title': u'Event History of Host',
- 'description': u'History entries of one specific host',
+ 'title': _('Event History of Host'),
+ 'description': _('History entries of one specific host'),
'datasource': 'mkeventd_history',
'layout': 'table',
'columns': 1,