Module: check_mk
Branch: master
Commit: dff8bcea6932a24ee384f0ad7649482f2f16d98d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dff8bcea6932a2…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Oct 10 13:00:45 2017 +0200
Adapted states
Change-Id: I13aff37e2acd474b140b0ed40de708699417da16
---
checkman/informix_status | 6 +++---
checks/informix_status | 12 ++++++------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/checkman/informix_status b/checkman/informix_status
index 06279b1..142deda 100644
--- a/checkman/informix_status
+++ b/checkman/informix_status
@@ -8,9 +8,9 @@ description:
Informix Database application.
The check is OK if the instance status is in state
- initialization, quiescent, recovery, backup, shutdown,
- online, abort, single user.
- It goes CRIT if the state is offline.
+ initialization or online. It is WARN if the state is
+ quiescent, recovery, backup, abort or single user and
+ it goes CRIT if the state is shutdown or offline.
item:
Instance name.
diff --git a/checks/informix_status b/checks/informix_status
index 547a930..7c4eb46 100644
--- a/checks/informix_status
+++ b/checks/informix_status
@@ -48,13 +48,13 @@ def inventory_informix_status(parsed):
def check_informix_status(item, params, parsed):
map_states = {
"0": (0, "initialization"),
- "1": (0, "quiescent"),
- "2": (0, "recovery"),
- "3": (0, "backup"),
- "4": (0, "shutdown"),
+ "1": (1, "quiescent"),
+ "2": (1, "recovery"),
+ "3": (1, "backup"),
+ "4": (2, "shutdown"),
"5": (0, "online"),
- "6": (0, "abort"),
- "7": (0, "single user"),
+ "6": (1, "abort"),
+ "7": (1, "single user"),
"-1": (2, "offline"),
"255": (2, "offline"),
}