Module: check_mk
Branch: master
Commit: 040c66e91d7fd69821620101681a853f6a68acaa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=040c66e91d7fd6…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Oct 18 11:21:50 2016 +0200
fixed error handling
---
agents/plugins/apache_status | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/plugins/apache_status b/agents/plugins/apache_status
index 1d5e390..ce44405 100755
--- a/agents/plugins/apache_status
+++ b/agents/plugins/apache_status
@@ -137,7 +137,7 @@ for server in servers:
request = urllib2.Request(url, headers={"Accept" :
"text/plain"})
fd = urllib2.urlopen(request)
except urllib2.URLError, e:
- if 'SSL23_GET_SERVER_HELLO:unknown protocol' in str(e):
+ if 'unknown protocol' in str(e):
# HACK: workaround misconfigurations where port 443 is used for
# serving non ssl secured http
url = 'http://%s%s/server-status?auto' % (address, portspec)