Answer the question
In order to leave comments, you need to log in
Why can't connect to zabbix api?
Hello.
Installed Zabbix 3.4 a few days ago
Decided to use Zabbix API via python
installed python module
C:\Windows\system32>pip install zabbix_api
Collecting zabbix_api
Downloading zabbix-api-0.4.tar.gz
Installing collected packages: zabbix-api
Running setup.py install for zabbix-api ... done
Successfully installed zabbix-api-0.4
C:\Windows\system32>pip install py-zabbix
Collecting py-zabbix
Downloading py_zabbix-1.1.3-py2.py3-none-any.whl
Installing collected packages: py-zabbix
Successfully installed py-zabbix-1.1.3
C:\Windows\system32>pip install zabbix-api
Requirement already satisfied: zabbix-api in c:\python36\lib\site-packages
from zabbix_api import ZabbixAPI
zapi = ZabbixAPI(server="http://192.168.0.50/zabbix")
zapi.login("Admin", "zabbix")
zapi.trigger.get({"expandExpression": "extend", "triggerids": range(0, 100)})
File "C:\Python36\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
http://192.168.0.50
http://192.168.0.50/zabbix/api_jsonrpc.php
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question