连接错误check_gunicorn.py

时间:2018-06-26 12:43:36

标签: python gunicorn

当我运行以下命令以检查gunicorn服务器状态时,它给了我连接错误:

/usr/local/bin/check_gunicorn.py -st 5 -w 2:3 -c 4:5

    UNKNOWN: NotFoundError: TransportError(404, u'index_not_found_exception', u'no such index')
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/nagiosplugin/runtime.py", line 43, in wrapper
    return func(*args, **kwds)
  File "/usr/local/bin/check_gunicorn.py", line 191, in main
    case_types.get(args.casetype, run_check.error_handler )(args.casetype, args.warning, args.critical)
  File "/usr/local/bin/check_gunicorn.py", line 115, in max_worker
    self.run_check(contextname, self.data_fetch.get_gunicorn_workers()['max'] , warning, critical)
  File "/usr/local/bin/check_gunicorn.py", line 57, in get_gunicorn_workers
    "size": 2500000
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 76, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/__init__.py", line 655, in search
    doc_type, '_search'), params=params, body=body)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/transport.py", line 318, in perform_request
    status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 185, in perform_request
    self._raise_error(response.status, raw_data)
  File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/base.py", line 125, in _raise_error
    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
NotFoundError: TransportError(404, u'index_not_found_exception', u'no such index')

如何摆脱这个问题。

0 个答案:

没有答案