[checkmk-commits] Check_MK Git: check_mk: check_uniserv: Changed Service description

Bastian Kuhn bk at mathias-kettner.de
Wed Aug 6 09:24:47 CEST 2014


Module: check_mk
Branch: master
Commit: 5c5d63ca954ea3c01908f0e50fe78d66bf2d799e
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5c5d63ca954ea3c01908f0e50fe78d66bf2d799e

Author: Bastian Kuhn <bk at mathias-kettner.de>
Date:   Wed Aug  6 09:24:40 2014 +0200

check_uniserv: Changed Service description

---

 checks/check_uniserv |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/checks/check_uniserv b/checks/check_uniserv
index 013dc33..e6ebc58 100644
--- a/checks/check_uniserv
+++ b/checks/check_uniserv
@@ -45,14 +45,14 @@ def check_uniserv_arguments(params):
     return args
 
 def check_uniserv_desc(params):
-    if type(params['job']) == tuple:
-        job = params['job'][0]
-    else:
-        job = params['job']
+    job = params['job']
+    if type(job) == tuple:
+        job = job[0]
+
     if job == "version":
-        return "Version"
+        return "Uniserv %s Version" % params['service']
     else:
-        return "Address " + params['job'][1]['city']
+        return "Uniserv %s Address %s " % (params['service'], params['job'][1]['city'])
 
 
 active_check_info['uniserv'] = {



More information about the checkmk-commits mailing list