Hi, Prototype-X!
I have fresh install Ubuntu 18.04 + Python3.6 + Zabbix 4.0.5 and сonsistently followed your instruction.
I run command:
python3.6 weathermap.py -d -s core -z http://10.1.39.20/zabbix -l admin -p admin
Where -l admin -p admin - my current account in zabbix
and core - existing in zabbix map with a couple hosts and links.
Hi, Prototype-X! I have fresh install Ubuntu 18.04 + Python3.6 + Zabbix 4.0.5 and сonsistently followed your instruction. I run command: python3.6 weathermap.py -d -s core -z http://10.1.39.20/zabbix -l admin -p admin Where -l admin -p admin - my current account in zabbix and core - existing in zabbix map with a couple hosts and links.
and catch trace:
root@msk-zabbix-core:/opt/Zabbix-Network-Weathermap# ./weathermap.py -d -s core -z http://10.1.39.20/zabbix -l admin -p admin
main()
File "./weathermap.py", line 118, in main
WeathermapCLI()
File "./weathermap.py", line 55, in init
self._map_scan()
File "./weathermap.py", line 67, in _map_scan
map_data = zbx.scan_map(map_n)
File "/opt/Zabbix-Network-Weathermap/zabbix.py", line 92, in scan_map
raise ZbxException('map: {} not found'.format(map_name))
zabbix.ZbxException: map: core not found
[23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - ZabbixAPI.login(admin,admin) [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - Call user.login method [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - urllib2.Request(http://10.1.39.20/zabbix/api_jsonrpc.php, {"jsonrpc": "2.0", "method": "user.login", "params": {"user": "admin", "password": "admin"}, "id": "1"}) [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - Response Body: { "jsonrpc": "2.0", "result": "9eacfd8a7bc385b6e7b72ed6aced1b86", "id": "1" } [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - JSON-PRC Server: http://10.1.39.20/zabbix/api_jsonrpc.php [23/03/2019 14:11:49] [zabbix:DEBUG] - Object ZabbixAgent created [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - Call apiinfo.version method [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - urllib2.Request(http://10.1.39.20/zabbix/api_jsonrpc.php, {"jsonrpc": "2.0", "method": "apiinfo.version", "params": {}, "id": "1"}) [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - Response Body: { "jsonrpc": "2.0", "result": "4.0.5", "id": "1" } [23/03/2019 14:11:49] [zabbix:DEBUG] - API ver. 4.0.5 [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - Call map.get method [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - urllib2.Request(http://10.1.39.20/zabbix/api_jsonrpc.php, {"jsonrpc": "2.0", "method": "map.get", "params": {"filter": {"name": "core"}, "selectSelements": ["elements", "selementid", "elementtype", "iconid_off", "x", "y"], "selectLinks": ["selementid1", "selementid2", "linkid"]}, "id": "1", "auth": "9eacfd8a7bc385b6e7b72ed6aced1b86"}) [23/03/2019 14:11:49] [pyzabbix.api:DEBUG] - Response Body: { "jsonrpc": "2.0", "result": [], "id": "1" } Traceback (most recent call last): File "./weathermap.py", line 121, in