Module: check_mk
Branch: master
Commit: 70bde3d8a37081bc80bf459be0fa3c637900a2cf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=70bde3d8a37081…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Sat May 28 11:52:30 2016 +0200
fixed network_fs.include if no params are set
---
checks/network_fs.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/network_fs.include b/checks/network_fs.include
index 28858b6..730267e 100644
--- a/checks/network_fs.include
+++ b/checks/network_fs.include
@@ -58,7 +58,7 @@ def check_network_fs_mounts(item, params, info):
used_bytes = size_bytes - free_bytes
used_perc = 100.0 * used_bytes / size_bytes
perfdata = None
- if params.get("has_perfdata"):
+ if params is not None and params.get("has_perfdata"):
perfdata = [("fs_size", size_bytes), ("fs_used",
used_bytes)]
if line[-5] == 'ok':