Module: check_mk
Branch: master
Commit: a8bc79f5fa9576357ba1934764f2c8a76ce40f32
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a8bc79f5fa9576…
Author: Sven Rueß <sr(a)mathias-kettner.de>
Date: Mon Apr 13 08:06:23 2015 +0200
#1955 FIX Fixed status message to show the correct values of limits
Fixed status message to show the correct values of hard and file limits if
the user exceeded it.
---
.werks/1955 | 11 +++++++++++
ChangeLog | 1 +
checks/lnx_quota | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/1955 b/.werks/1955
new file mode 100644
index 0000000..8722f0a
--- /dev/null
+++ b/.werks/1955
@@ -0,0 +1,11 @@
+Title: Fixed status message to show the correct values of limits
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1428904937
+
+Fixed status message to show the correct values of hard and file limits if
+the user exceeded it.
diff --git a/ChangeLog b/ChangeLog
index bcef5c2..5091e76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -317,6 +317,7 @@
* 2172 FIX: Allowing OIDs in checks not starting with a dot again...
* 2173 FIX: mk-job: Fixed quoting of command line arguments
* 2198 FIX: windows_updates: Fix missing warning if reboot required in case forced
reboot is in the past...
+ * 1955 FIX: Fixed status message to show the correct values of limits...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/lnx_quota b/checks/lnx_quota
index 8250412..751df78 100644
--- a/checks/lnx_quota
+++ b/checks/lnx_quota
@@ -52,7 +52,7 @@ def check_lnx_quota(item, params, info):
output = []
perfdata = []
- fmt = lambda v, w: w == 'files' and '%d files' % v or
get_bytes_human_readable(used*1000, 1000)
+ fmt = lambda v, w: w == 'files' and '%d files' % v or
get_bytes_human_readable(v*1000, 1000)
for user, values in parsed[item].items():
for what, (used, soft, hard, grace) in [