Module: check_mk
Branch: master
Commit: 45863226f4a76d618baa5ffb7ae59f5da1337db9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=45863226f4a76d…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Apr 2 10:36:07 2014 +0200
new global parameter state_markers
---
modules/check_mk_base.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index f33cc0a..cc3dffc 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1520,6 +1520,9 @@ def get_regex(pattern):
# Names of texts usually output by checks
nagios_state_names = ["OK", "WARN", "CRIT",
"UNKNOWN"]
+# Symbolic representations of states
+state_markers = ["(.)", "(!)", "(!!)", "(?)"]
+
# int() function that return 0 for strings the
# cannot be converted to a number
def saveint(i):