######【環境】
・対象サーバ(AWS EC2)
Windows2019
・zabbixサーバ
CentOS7.4
導入済パッケージ
epel-release.noarch 7-11
python.x86_64 2.7.5-58.el7
python-boto3
######【主題】
下記のPythonスクリプトを実行するコマンドのエラーの原因を解決したい
参考にしていたサイト
https://aws.typepad.com/aws_partner_sa/2016/06/opsjaws-try-ops-with-zabbix-1.html
この質問の親の質問ページ
https://teratail.com/questions/252384
Python
1python cloudwatch_zabbix.py -r <リージョン名> -a <アクセスキー> -s <シークレットキー> -i IDENTITY -H <ホスト名> -t 1 -p <ポート番号> -z <zabbixサーバのIPアドレス> ec2 2 3Traceback (most recent call last): 4 File "cloudwatch_zabbix.py", line 257, in <module> 5 aws_zabbix.show_metriclist_lld() 6 File "cloudwatch_zabbix.py", line 218, in show_metriclist_lld 7 metric_list = self.__get_metric_list() 8 File "cloudwatch_zabbix.py", line 59, in __get_metric_list 9 'Value': ('USD' if self.service == "billing" else self.identity) 10 File "/usr/lib/fence-agents/bundled/botocore/client.py", line 317, in _api_call 11 return self._make_api_call(operation_name, kwargs) 12 File "/usr/lib/fence-agents/bundled/botocore/client.py", line 602, in _make_api_call 13 operation_model, request_dict) 14 File "/usr/lib/fence-agents/bundled/botocore/endpoint.py", line 143, in make_request 15 return self._send_request(request_dict, operation_model) 16 File "/usr/lib/fence-agents/bundled/botocore/endpoint.py", line 172, in _send_request 17 success_response, exception): 18 File "/usr/lib/fence-agents/bundled/botocore/endpoint.py", line 265, in _needs_retry 19 caught_exception=caught_exception, request_dict=request_dict) 20 File "/usr/lib/fence-agents/bundled/botocore/hooks.py", line 227, in emit 21 return self._emit(event_name, kwargs) 22 File "/usr/lib/fence-agents/bundled/botocore/hooks.py", line 210, in _emit 23 response = handler(**kwargs) 24 File "/usr/lib/fence-agents/bundled/botocore/retryhandler.py", line 183, in __call__ 25 if self._checker(attempts, response, caught_exception): 26 File "/usr/lib/fence-agents/bundled/botocore/retryhandler.py", line 251, in __call__ 27 caught_exception) 28 File "/usr/lib/fence-agents/bundled/botocore/retryhandler.py", line 277, in _should_retry 29 return self._checker(attempt_number, response, caught_exception) 30 File "/usr/lib/fence-agents/bundled/botocore/retryhandler.py", line 317, in __call__ 31 caught_exception) 32 File "/usr/lib/fence-agents/bundled/botocore/retryhandler.py", line 223, in __call__ 33 attempt_number, caught_exception) 34 File "/usr/lib/fence-agents/bundled/botocore/retryhandler.py", line 359, in _check_caught_exception 35 raise caught_exception 36botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://monitoring.<リージョン名>.amazonaws.com/"
不足情報がありましたら追記致しますので、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー