Module: check_mk
Branch: master
Commit: d7ca7f54d3ea3d0488d014c578891eed83e4714f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d7ca7f54d3ea3d…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Jul 6 11:29:55 2017 +0200
4913 FIX oracle_tablespaces: A service will now go indeed to warn only if left space is
below the warn level
Before the state already changed if the left space has been equal to a threshold level.
Change-Id: I60af03f489f72522fbbb7657605a34a371ca41eb
---
.werks/4913 | 10 ++++++++++
checks/oracle_tablespaces | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/4913 b/.werks/4913
new file mode 100644
index 0000000..7882374
--- /dev/null
+++ b/.werks/4913
@@ -0,0 +1,10 @@
+Title: oracle_tablespaces: A service will now go indeed to warn only if left space is
below the warn level
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1499333114
+Class: fix
+
+Before the state already changed if the left space has been equal to a threshold level.
diff --git a/checks/oracle_tablespaces b/checks/oracle_tablespaces
index a2a9a5b..581b09e 100644
--- a/checks/oracle_tablespaces
+++ b/checks/oracle_tablespaces
@@ -345,9 +345,9 @@ def check_oracle_tablespaces(item, params, parsed):
if ts_status != "READONLY" and ts_type == 'PERMANENT':
status = 0
- if crit is not None and free_space <= crit:
+ if crit is not None and free_space < crit:
status = 2
- elif warn is not None and free_space <= warn:
+ elif warn is not None and free_space < warn:
status = 1
if status: