Module: check_mk
Branch: master
Commit: eb82b6e7688243e716b9505d78bc4c7e7d23c9be
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eb82b6e7688243…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Wed Mar 6 17:16:28 2019 +0100
add check_levels parameter docs
Change-Id: Id99733ad057dbc542eed00d55ab100d48edd59b2
---
cmk_base/check_api.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/cmk_base/check_api.py b/cmk_base/check_api.py
index a926fcc..43cf88a 100644
--- a/cmk_base/check_api.py
+++ b/cmk_base/check_api.py
@@ -370,6 +370,15 @@ def check_levels(value,
value: currently measured value
dsname: name of the datasource in the RRD that corresponds to this value
+ params: None or Tuple(None, None) -> no level checking.
+ Tuple variants with non-None values:
+ Tuple[warn_upper, crit_upper] -> upper level checking only.
+ Tuple[warn_upper, crit_upper, warn_lower, crit_lower]
+ -> upper and lower level checking.
+ Dict containing "lower" as key -> lower level checking.
+ Dict containing "upper" or "levels_upper_min" as key
-> upper level checking.
+ Dict containing "lower" and
"upper"/"levels_upper_min" as key ->
+ lower and upper level checking.
unit: unit to be displayed in the plugin output.
Be aware: if a (builtin) human_readable_func is stated which already
provides a unit info, then this unit is not necessary. An additional