Module: check_mk
Branch: master
Commit: 187f536cf292a5c29c47dc1d5f834d27f8feada9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=187f536cf292a5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Feb 7 21:04:29 2016 +0100
check_bi_aggr: Add quote to host name, better error message
---
checks/check_bi_aggr | 2 +-
doc/treasures/active_checks/check_bi_aggr | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/check_bi_aggr b/checks/check_bi_aggr
index 88ba907..4db4681 100644
--- a/checks/check_bi_aggr
+++ b/checks/check_bi_aggr
@@ -46,7 +46,7 @@ def check_bi_aggr_arguments(params):
args += ' --acknowledged %s' % opt_params['acknowledged']
if opt_params.get("track_downtimes"):
- args += ' -r -n $HOSTNAME$'
+ args += " -r -n '$HOSTNAME$'"
return args
diff --git a/doc/treasures/active_checks/check_bi_aggr
b/doc/treasures/active_checks/check_bi_aggr
index 0d38bd4..aae84a8 100755
--- a/doc/treasures/active_checks/check_bi_aggr
+++ b/doc/treasures/active_checks/check_bi_aggr
@@ -178,7 +178,7 @@ except Exception, e:
sys.exit(3)
if len(obj) == 1:
- sys.stdout.write('ERROR: Aggregation does not exist or user is not
permitted\n')
+ sys.stdout.write('ERROR: Aggregation "%s" does not exist or user is not
permitted\n' % aggr_name)
sys.exit(3)
if type(obj) != list or len(obj) != 2: