Module: check_mk
Branch: master
Commit: b4c84c7edceca7101e24032f3b4e1f7701a68e68
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b4c84c7edceca7…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Mar 17 14:35:25 2015 +0100
mssql_counters: Fixed error in case of missing params
---
checks/mssql_counters | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/mssql_counters b/checks/mssql_counters
index c3e561e..f846b95 100644
--- a/checks/mssql_counters
+++ b/checks/mssql_counters
@@ -235,6 +235,8 @@ def check_mssql_file_sizes(item, params, info):
levels = " (Warn/ Crit at %s/ %s)" % \
(get_bytes_human_readable(warn),
get_bytes_human_readable(crit))
+ else:
+ warn, crit = None, None
perfdata = [ (what, values[what], warn, crit ) ]
yield state, "%s: %s%s" % ( name, levels,
get_bytes_human_readable(values[what]) ), perfdata