Module: check_mk
Branch: master
Commit: dbde7d2c98fda2d5de974d9a78365b0c265239f0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dbde7d2c98fda2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Mar 14 10:07:29 2011 +0100
FIX: df: fix status in case of critical trend and warning used
---
ChangeLog | 1 +
checks/df.include | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 16de0ca..33e215e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,7 @@
with index 1
* FIX: df: fix layout problems in PNP template
* FIX: df: fix trend computation (thanks to Sebastian Talmon)
+ * FIX: df: fix status in case of critical trend and warning used
1.1.10:
diff --git a/checks/df.include b/checks/df.include
index 5314c3c..34356e0 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -229,7 +229,7 @@ def df_check_filesystem(hostname, mountpoint, size_mb, avail_mb,
params):
if used_mb >= crit_mb:
status = 2
elif used_mb >= warn_mb:
- status = 1
+ status = max(1, status)
if len(problems) > 0:
infotext += " - " + ", ".join(problems)