Module: check_mk
Branch: master
Commit: 3bc6fa223f0b9e0ea0b4ec5c12a661f2bcd643e9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3bc6fa223f0b9e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 17 11:07:42 2011 +0100
Fix hr_fs (was broken due to df.include)
---
checkman/hr_fs | 8 ++++++++
checks/hr_fs | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/checkman/hr_fs b/checkman/hr_fs
index 4396e10..dc0d54a 100644
--- a/checkman/hr_fs
+++ b/checkman/hr_fs
@@ -11,6 +11,14 @@ description:
For configuration parameters and examples please refer to the man page
of {df}.
+ Please note, that due to the fact that Linux usually reserves 5% of
+ the filesystem for root, the amount of used space output by this
+ check and the native {df} check of Linux differs by up to 5%. The
+ {df} check accounts the reserved space as used, as this is a safer
+ assumption. Whereas the SNMP agent accounts it as free. There is no
+ way to get the information about the reserved space via SNMP, so
+ there is no way to fix this, unfortunately.
+
item:
The description of the filesystem as in {hrStorageDescr}. For
Linux SNMP agents this is the mount point.
diff --git a/checks/hr_fs b/checks/hr_fs
index 5f11d47..86601aa 100644
--- a/checks/hr_fs
+++ b/checks/hr_fs
@@ -47,7 +47,7 @@ def check_hr_fs(item, params, info):
used_mb = used / 1048576.0
avail_mb = size_mb - used_mb
- return df_check_filesystem(g_hostname, item, size_mb, avail_mb, params)
+ return df_check_filesystem(g_hostname, item, size_mb, avail_mb, params)
return (3, "UNKNOWN - Filesystem not found")