Module: check_mk
Branch: master
Commit: 4c041ff3ce29f3fea1e66e537aedbd49c84f4745
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4c041ff3ce29f3…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jul 31 09:27:26 2018 +0200
Minor cleanup
Change-Id: I99079da34cf95217752237b30bc48060a033f412
---
checks/mssql_instance | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/checks/mssql_instance b/checks/mssql_instance
index ad9a6fc..78ae2a4 100644
--- a/checks/mssql_instance
+++ b/checks/mssql_instance
@@ -120,14 +120,7 @@ def check_mssql_instance(item, params, parsed):
if instance["state"] == "0":
yield state, "Failed to connect to database (%s)" %
instance["error_msg"]
- if "prod_version_info" in instance:
- # Newer output of version info
- version_info = instance["prod_version_info"]
- else:
- # Fallback, is always reported by agent plugin
- version_info = instance["version_info"]
- yield 0, "Version: %s" % version_info
-
+ yield 0, "Version: %s" % instance.get("prod_version_info",
instance["version_info"])
if instance["cluster_name"] != "":
yield 0, "Clustered as %s" % instance["cluster_name"]