Skip to content
Snippets Groups Projects
Commit b9718404 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Changed Nginx stats url.

parent 31d685ff
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,9 @@ import sys ...@@ -11,9 +11,9 @@ import sys
if not os.path.exists('/etc/nginx'): if not os.path.exists('/etc/nginx'):
print('Nginx dir does not exists, test skipped.') print('Nginx dir does not exists, test skipped.')
else: else:
print('Checking http://localhost/nginx_status response.') print('Checking http://127.0.0.1:1080/nginx_status response.')
try: try:
req = requests.get('http://localhost/nginx_status', timeout=5) req = requests.get('http://127.0.0.1:1080/nginx_status', timeout=5)
if req.status_code != 200: if req.status_code != 200:
raise Exception('Request failed with status code %s.' % req.status_code) raise Exception('Request failed with status code %s.' % req.status_code)
if 'Active connections' not in req.text: if 'Active connections' not in req.text:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment