Module: check_mk
Branch: master
Commit: 8b5b53142abbc57aeefb7ea7813faa54e81f5b3a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b5b53142abbc5…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Mar 31 13:27:49 2016 +0200
3109 dotnet_clrmemory: levels are now configurable
---
.werks/3109 | 10 ++++++++++
ChangeLog | 2 +-
checks/dotnet_clrmemory | 3 ++-
web/plugins/wato/check_parameters.py | 26 ++++++++++++++++++++++++++
4 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/.werks/3109 b/.werks/3109
new file mode 100644
index 0000000..a63c67f
--- /dev/null
+++ b/.werks/3109
@@ -0,0 +1,10 @@
+Title: dotnet_clrmemory: levels are now configurable
+Level: 1
+Component: checks
+Class: feature
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1459423404
+
+
diff --git a/ChangeLog b/ChangeLog
index 2c0f089..7d9085c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,7 +13,6 @@
* 3343 FIX: MKP: Verifying minimal version of packages during installation...
* 3349 FIX: Added rule to disable Inline-SNMP per host...
-
Checks & Agents:
* 3183 aruba_wlc_aps: new check which monitors the provisioned accesspoints of an
Aruba Network WLAN Controller
* 3184 varnish, varnish.backend, varnish.backend_success_ratio, varnish.cache,
varnish.cache_hit_ratio, varnish.client, varnish.esi, varnish.fetch, varnish.objects,
varnish.worker, varnish.worker_thread_ratio: new checks which monitor HTTP Accelerator
Statistics via varnishstat on Linux
@@ -44,6 +43,7 @@
* 3308 pvecm_status, pvecm_nodes: new checks which monitor a Proxmox Virtual
Environment cluster setup
* 3108 network interface and switch port discovery rules can now be combined to
dicover multiple sets of interfaces...
NOTE: Please refer to the migration notes!
+ * 3109 dotnet_clrmemory: levels are now configurable
* 3073 FIX: windows agent: relative paths to mrpe scripts are now treated as relative
to the agent installation directory...
* 3061 FIX: mk_jolokia: Fixed debugging of the agent plugin
* 3074 FIX: windows agent: fixed incorrect values for 32-bit performance counters
diff --git a/checks/dotnet_clrmemory b/checks/dotnet_clrmemory
index 32ccc29..26f9d13 100644
--- a/checks/dotnet_clrmemory
+++ b/checks/dotnet_clrmemory
@@ -47,5 +47,6 @@ check_info['dotnet_clrmemory'] = {
'parse_function' : parse_wmi_table,
'has_perfdata' : True,
'service_description' : "DotNet Memory Management",
- 'includes' : ['wmi.include']
+ 'includes' : ['wmi.include'],
+ 'group' : "clr_memory"
}
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 1246083..09fe92e 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -1108,6 +1108,32 @@ register_check_parameters(
"dict"
)
+register_check_parameters(
+ subgroup_applications,
+ "clr_memory",
+
_(".Net runtime memory levels"),
+ Dictionary(
+ help = _("This rule allows to set the warn and crit levels of the memory
"
+ "metrics of the .Net Runtime"),
+ elements = [
+ ( "upper",
+ Tuple(
+ title = _("Percent time spent in garbage collection"),
+ elements = [
+ Percentage(title = _("Warning at"), label = _("%
time"), default_value = 10.0),
+ Percentage(title = _("Critical at"), label = _("%
time"), default_value = 15.0),
+ ]
+ )),
+ ],
+ ),
+ TextAscii(
+ title = _("Name of the Application"),
+ help = _("The name of the .net application or _Global_"),
+ allow_empty = False,
+ ),
+ "dict"
+)
+
#.
# .--Environment---------------------------------------------------------.
# | _____ _ _ |