qk4l / zabbix-cachet

Python script which sync Zabbix IT Services with Cachet
MIT License
80 stars 32 forks source link

Error Connecting zabbix with cachet #61

Closed Mittin-Singh closed 3 years ago

Mittin-Singh commented 4 years ago

I have zabbix server hosted on AWS EC2 instance, same for cachet as well. I ran the docker container for zabbix-cachet, and configured the host. Can you help me integrate zabbix with cachet

2020-05-25 18:29:30 INFO: (MainThread) Zabbix Cachet v.1.3.6 started 2020-05-25 18:29:30 INFO: (MainThread) JSON-RPC Server Endpoint: http://10.197.14.232/zabbix/index.php/api_jsonrpc.php 2020-05-25 18:29:30 ERROR: (MainThread) Unable to parse json: <!DOCTYPE html>

Warning [refreshed every 30 sec.]
Access denied
  • You are logged in as "guest". You have no permissions to access this page.
  • If you think this message is wrong, please consult your administrators about getting the necessary permissions.
Mittin-Singh commented 4 years ago

Now i am getting this error

2020-05-25 18:54:53 INFO: (MainThread) Zabbix Cachet v.1.3.6 started 2020-05-25 18:54:53 INFO: (MainThread) JSON-RPC Server Endpoint: http://10.197.14.232/zabbix/api_jsonrpc.php 2020-05-25 18:54:53 ERROR: (MainThread) ClientHttpError[http://127.0.0.1:8001/api/v1/version, None: HTTPConnectionPool(host='127.0.0.1', port=8001): Max retries exceeded with url: /api/v1/version (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f5616afb780>: Failed to establish a new connection: [Errno 111] Connection refused',))] 2020-05-25 18:54:53 ERROR: (MainThread) exceptions must derive from BaseException

qk4l commented 4 years ago

Hi, did you managed a problem?

Failed to establish a new connection: [Errno 111] Connection refused',))]

This error means that zabbix-cachet could not reached Cached by follow address - http://127.0.0.1:8001/api/v1/version This is configured in follow config section

cachet:
  server: https://cachet.example.com