Module: check_mk
Branch: master
Commit: 2204481095c117017c07aa8feca09ce984cf5a9c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2204481095c117…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Thu Dec 7 14:06:48 2017 +0100
df.include: Stop df_check_filesystem_list from returning perfvalues as strings with
attached units
This does not appear to be used anymore by the PNP templates in question. The microcore
and metric system
do not care at any rate.
Change-Id: Ifff1b539d88647143c52df65f4f5eedcbeb56134
---
checks/df.include | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/df.include b/checks/df.include
index d61ce4d..093b867 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -346,8 +346,8 @@ def df_check_filesystem_single(mountpoint, size_mb, avail_mb,
reserved_mb, inode
# TODO: In some future version use a fixed name as perf variable
perf_var = mountpoint.replace(" ", "_")
- perfdata = [(perf_var, str(used_mb) + 'MB', warn_mb, crit_mb, 0, size_mb),
- ('fs_size', str(size_mb) + 'MB')]
+ perfdata = [(perf_var, used_mb, warn_mb, crit_mb, 0, size_mb),
+ ('fs_size', size_mb)]
if type(params) == dict:
show_levels = params.get("show_levels")