Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed import items and triggers with the template zabbix4.4.1 #2

Open
kohan2392 opened this issue Jan 7, 2020 · 4 comments
Open

Comments

@kohan2392
Copy link

Hi,
I exported template from zabbix1 and imported to zabbix2.
The template was created but without items and triggers.

@kohan2392 kohan2392 changed the title Failed import items and triggers with the template Failed import items and triggers with the template zabbix4.4.1 Jan 7, 2020
@evgkrsk
Copy link
Contributor

evgkrsk commented Jan 7, 2020

Yep, there is such problem in current code.

PR are welcome.

@evgkrsk evgkrsk self-assigned this Jan 14, 2020
@evgkrsk evgkrsk removed their assignment Nov 4, 2020
@ivanmirandaf
Copy link

ivanmirandaf commented Apr 30, 2021

Olá, ao importar um host obtive o seguinte erro.

2021-04-30 17:12:46,649 INFO JSON-RPC Server Endpoint: http://localhost/zabbix/api_jsonrpc.php
2021-04-30 17:12:52,061 INFO Trying to load Zabbix object (type: host) from: /home/zabbix-review/hosts/PAINEL-CYB-C.Q-5.8.yaml
2021-04-30 17:12:52,111 ERROR KeyError('default',)
Traceback (most recent call last):
File "zabbix-import.py", line 1518, in main
host_cache,
File "zabbix-import.py", line 406, in import_host
for i in host["interfaces"]["interface"]
File "zabbix-import.py", line 406, in
for i in host["interfaces"]["interface"]
KeyError: 'default'
2021-04-30 17:12:52,113 ERROR Operation failed
2021-04-30 17:12:52,113 ERROR Some operations failed

@gjaekel
Copy link

gjaekel commented May 1, 2021

May you also add the failing yaml file, please? If possible, cut down to the problematic part.

@evgkrsk
Copy link
Contributor

evgkrsk commented May 5, 2021

Please don't mess up different issues. Open new issue and attach failing yaml file and full --debug output, plus zabbix, python3 and OS versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants