Module: check_mk
Branch: master
Commit: 0ef5b728353f4c1c6269da48a9788295f20d577a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ef5b728353f4c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 26 08:50:56 2014 +0200
check_form_submit: Fixed correct handling of HTTPErrors
---
doc/treasures/active_checks/check_form_submit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/treasures/active_checks/check_form_submit
b/doc/treasures/active_checks/check_form_submit
index cb69f80..134c469 100755
--- a/doc/treasures/active_checks/check_form_submit
+++ b/doc/treasures/active_checks/check_form_submit
@@ -197,7 +197,7 @@ def open_url(url, method = 'GET', data = None):
debug('GET %s' % url)
fd = g_opener.open(url, timeout = timeout) # GET
except urllib2.HTTPError, e:
- new_state(2, 'Unable to open %s: [%d] %s' % (url, e.code, e.reason))
+ new_state(2, 'Unable to open %s: [%d] %s' % (url, e.code, e))
except urllib2.URLError, e:
new_state(2, 'Unable to open %s: %s' % (url, e.reason))
except socket.timeout, e: