Module: check_mk
Branch: master
Commit: 4e4e1f6420b468409da8ea4d589c420eca63c3cc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4e4e1f6420b468…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Jan 30 15:14:34 2015 +0100
readded wato rule
---
web/plugins/wato/check_parameters.py | 75 ++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index be61077..fd5236e 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -6322,6 +6322,81 @@ register_check_parameters(
"jvm_memory",
_("JVM memory levels"),
Dictionary(
+ help = _("This rule allows to set the warn and crit levels of the heap /
"
+ "non-heap and total memory area usage on web application
servers. "
+ "Other keywords for this rule: Tomcat, Jolokia, JMX. "),
+ elements = [
+ ( "totalheap",
+ Alternative(
+ title = _("Total Memory Levels"),
+ elements = [
+ Tuple(
+ title = _("Percentage levels of used space"),
+ elements = [
+ Percentage(title = _("Warning if above"),
label = _("% usage")),
+ Percentage(title = _("Critical if above"),
label = _("% usage")),
+ ]
+ ),
+ Tuple(
+ title = _("Absolute free space in MB"),
+ elements = [
+ Integer(title = _("Warning if below"), unit
= _("MB")),
+ Integer(title = _("Critical if below"),
unit = _("MB")),
+ ]
+ )
+ ])),
+ ( "heap",
+ Alternative(
+ title = _("Heap Memory Levels"),
+ elements = [
+ Tuple(
+ title = _("Percentage levels of used space"),
+ elements = [
+ Percentage(title = _("Warning if above"),
label = _("% usage")),
+ Percentage(title = _("Critical if above"),
label = _("% usage")),
+ ]
+ ),
+ Tuple(
+ title = _("Absolute free space in MB"),
+ elements = [
+ Integer(title = _("Warning if below"), unit
= _("MB")),
+ Integer(title = _("Critical if below"),
unit = _("MB")),
+ ]
+ )
+ ])),
+ ( "nonheap",
+ Alternative(
+ title = _("Nonheap Memory Levels"),
+ elements = [
+ Tuple(
+ title = _("Percentage levels of used space"),
+ elements = [
+ Percentage(title = _("Warning if above"),
label = _("% usage")),
+ Percentage(title = _("Critical if above"),
label = _("% usage")),
+ ]
+ ),
+ Tuple(
+ title = _("Absolute free space in MB"),
+ elements = [
+ Integer(title = _("Warning if below"), unit
= _("MB")),
+ Integer(title = _("Critical if below"),
unit = _("MB")),
+ ]
+ )
+ ])),
+ ]),
+ TextAscii(
+ title = _("Name of the virtual machine"),
+ help = _("The name of the application server"),
+ allow_empty = False,
+ ),
+ "dict"
+ )
+
+register_check_parameters(
+ subgroup_applications,
+ "sym_brightmail_queues",
+ "Symantec Brightmail Queues",
+ Dictionary(
help = _("This check is used to monitor successful email delivery through
"
"Symantec Brightmail Scanner appliances."),
elements = [