qk4l / zabbix-cachet

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

ClientHttpError when exec docker #44

Closed AlexLeoRQ closed 5 years ago

AlexLeoRQ commented 5 years ago

Hi, I'm trying to launch the docker image for the first time with

docker run --name zabbix-cachet -v /etc/zabbix-cachet.yml:/config.yml qk4l/zabbix-cachet

but this error appear:

2019-01-16 08:21:43  ERROR: (MainThread) ClientHttpError[http://domain:8000/api/v1/components/groups, 401: {"errors":[{"id":"6f919f7d-263d-464a-a5c9-6875ac3b820d","status":401,"title":"Unauthorized","detail":"Authentication is required and has failed or has not yet been provided."}]}]
2019-01-16 08:21:43  ERROR: (MainThread) argument of type 'NoneType' is not iterable

How can I solve that? There is no user and password for cachet in the .yml file

qk4l commented 5 years ago

Hi,

You should set valid cachet token in zabbix-cachet.yml file to make it works.

cachet:
    token: api token 

Here is info where you can find it.