Zabbix-Network-Weathermap
Zabbix-Network-Weathermap copied to clipboard
Does it work with Zabbix 3.2?
When i try to install with Zabbix 3.2 i get an error:
Traceback (most recent call last):
File "./weathermap.py", line 121, in
Yes it work. HTTP Error 403. Check login, password.
The credentials are correct. Was my first thought. Thought its related to the api maybe?
show me output:
pip3 show py-zabbix
pip3 show urllib3
python3 -V
pip3 show py-zabbix Name: py-zabbix Version: 1.1.3 Location: /usr/local/lib/python3.4/dist-packages Requires:
pip3 show urllib3 Name: urllib3 Version: 1.9.1 Location: /usr/lib/python3/dist-packages Requires:
python3 -V Python 3.4.2
Update urllib3 and try again.
sudo pip3 install urllib3==1.21.1
Done but same behaivor
Name: urllib3 Version: 1.21.1 Location: /usr/local/lib/python3.4/dist-packages Requires:
Can you login into web interface of zabbix with login and password for weathermap?
Yes, i tried with my normal user. Thats working fine.
Do you use auth_basic or .htpasswd to access the web interface?
No, nothing like that.
Can you have access to this page http://your-zabbix-server/api_jsonrpc.php? https://www.zabbix.com/documentation/3.2/manual/api
Tested via curl:
HTTP/1.1 200 OK Date: Sun, 18 Jun 2017 19:49:23 GMT Content-Type: application/json Content-Length: 68 Connection: keep-alive Set-Cookie: __cfduid=d83774017b1cbceec47f1041fd8a1b1497815363; expires=Mon, 18-Jun-18 19:49:23 GMT; path=/; domain=.itstall.de; HttpOnly Access-Control-Allow-Origin: * Access-Control-Allow-Headers: Content-Type Access-Control-Allow-Methods: POST Access-Control-Max-Age: 1000 Server: cloudflare-nginx CF-RAY: 3710c587aa876367-FRA
{"jsonrpc":"2.0","result":"6bff60845e59114b1fa0a552e93ea","id":1}
Zabbix server hosted on cloudfare? https://stackoverflow.com/questions/28396036/python-3-4-urllib-request-error-http-403
Youre right, that depends on Cloudflare. The server is not hosted there but the ip is rewriten there and ssl terminated.
i cant find the urllib.request in your'e Project, where i have to change it?
I use py-zabbix library.
- You can write author about your trouble.
- Fix library and install it:
python3 setup.py install
https://github.com/blacked/py-zabbix - project https://github.com/blacked/py-zabbix/blob/master/pyzabbix/api.py - file where urllib.request at line: 119, 239