Module: check_mk
Branch: master
Commit: c6758c0c197b190d927761d54e7896086e62fea0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c6758c0c197b19…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Dec 18 09:36:03 2014 +0100
#1208 FIX netwroks_fs: Detects now not reachable cifs mounts
---
.werks/1208 | 10 ++++++++++
ChangeLog | 1 +
checks/network_fs.include | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1208 b/.werks/1208
new file mode 100644
index 0000000..19004db
--- /dev/null
+++ b/.werks/1208
@@ -0,0 +1,10 @@
+Title: netwroks_fs: Detects now not reachable cifs mounts
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418891703
+
+
diff --git a/ChangeLog b/ChangeLog
index 5f5e4df..54855cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,7 @@
* 1769 FIX: megaraid_bbu: Fixed exception for some controllers reporting "full
charge capacity"
* 1770 FIX: megaraid_pdisks: Now handling unconfigured good/bad states...
* 1771 FIX: domino_mailqueues: Fixed exception during inventory when no data usable
data available
+ * 1208 FIX: netwroks_fs: Detects now not reachable cifs mounts
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/network_fs.include b/checks/network_fs.include
index a5408c1..b2bb698 100644
--- a/checks/network_fs.include
+++ b/checks/network_fs.include
@@ -49,7 +49,7 @@ def check_network_fs_mounts(item, _no_params, info):
free_blocks = int(line[-2]) # for non-root user
blocksize = int(line[-1])
- if size_blocks < 0 or free_blocks < 0 or blocksize > 1024*1024:
+ if size_blocks <= 0 or free_blocks < 0 or blocksize > 1024*1024:
return (2, "Stale fs handle")
if line[-5] == 'ok':