Add quotes to the rabbitmq thresholds to allow wildcards

This commit is contained in:
Jacek Nykis 2014-05-19 16:40:45 +01:00
parent 21bc24944e
commit 1bf2e52d39
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ def update_nrpe_checks():
cmd = ""
# If value of queue_thresholds is incorrect we want the hook to fail
for item in yaml.safe_load(config('queue_thresholds')):
cmd += ' -c {} {} {} {}'.format(*item)
cmd += ' -c "{}" "{}" {} {}'.format(*item)
nrpe_compat.add_check(
shortname=rabbit.RABBIT_USER + '_queue',
description='Check RabbitMQ Queues',