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

zabbix_template fails with "unexpected parameter "name"." #53

Open
rkarpuzov opened this issue Nov 4, 2022 · 2 comments
Open

zabbix_template fails with "unexpected parameter "name"." #53

rkarpuzov opened this issue Nov 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@rkarpuzov
Copy link

When I try to create template fails with

│ Error: -32602 (Invalid params.): Invalid parameter "/1/groups/1": unexpected parameter "name".

│ with zabbix_template.log_template,
│ on main.tf line 24, in resource "zabbix_template" "log_template":
│ 24: resource "zabbix_template" "log_template" {

My code:

resource "zabbix_host_group" "log_group" {
  name = "Log Monitoring group"
}

resource "zabbix_template" "log_template" {
  host        = "Template Logs"
  description = "Template log Log monitoring. Local Log files."
  groups      = [zabbix_host_group.log_group.name]
}

Terraform v1.3.4
on linux_amd64

  • provider registry.terraform.io/claranet/zabbix v0.4.0

tested aso with 0.3.0 and TF 1.0.x - there is no difference
Reference documentation:
https://www.zabbix.com/documentation/6.0/en/manual/config/items/itemtypes/log_items

@pdecat pdecat added the bug Something isn't working label Nov 4, 2022
@pdecat
Copy link
Member

pdecat commented Nov 4, 2022

Another case of API breaking changes from 5.4 to 6.0:

ZBXNEXT-6867 template.create, template.update, template.delete, template.massadd, template.massupdate, template.massremove: added strict validation of the methods parameters.
https://www.zabbix.com/documentation/6.0/en/manual/api/changes_5.4_-_6.0#template

@rkarpuzov
Copy link
Author

Thank you for your update!
I see few answers in the provided link - issue with host_group, but I found workaround for my case, and issue with import of supported item in 5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants