Module: check_mk
Branch: master
Commit: 04eaaa97ddc98bc7e2c095033158ec74affe977d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=04eaaa97ddc98b…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Sep 24 12:02:53 2012 +0200
Fixed reged handling in check_http
---
checks/check_http | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/checks/check_http b/checks/check_http
index 46bfbb5..9a3f31c 100644
--- a/checks/check_http
+++ b/checks/check_http
@@ -84,9 +84,11 @@ def check_http_arguments(params):
args += ' -s %s' %
quote_shell_string(settings["expect_string"])
if "expect_regex" in settings:
- args += ' -r %s' %
quote_shell_string(settings['expect_regex'][0])
if settings['expect_regex'][1]:
args += ' -R'
+ else:
+ args += ' -r'
+ args += ' %s' % quote_shell_string(settings['expect_regex'][0])
if settings['expect_regex'][2]:
args += ' --invert-regex'