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 resource doesn't work with Zabbix 4.0 #556

Closed
gdubicki opened this issue Oct 29, 2018 · 4 comments
Closed

zabbix_template resource doesn't work with Zabbix 4.0 #556

gdubicki opened this issue Oct 29, 2018 · 4 comments
Labels
bug Something isn't working

Comments

@gdubicki
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.2
  • Ruby: incuded in ^ puppet
  • Distribution: Centos 7
  • Module version: 6.5.0

How to reproduce (e.g Puppet code you use)

zabbix_template { $name:
      template_source => "${template_dir}/${name}.xml",
      zabbix_url      => $zabbix_wrapper::server::config['zabbix_url'],
      zabbix_user     => $zabbix_wrapper::server::api_user,
      zabbix_pass     => $zabbix_wrapper::server::api_pass,
      apache_use_ssl  => true,
}

..with appropriate values to access my Zabbix instance API.

What are you seeing

Error: /Stage[main]/Zabbix_wrapper::Server::Templates/Zabbix_template[MY_TEMPLATE]: Could not evaluate: Zabbix API version: 4.0.0 is not support by this version of zabbixapi

What behaviour did you expect instead

It should work as 6.5.0 adds Zabbix 4.0 compatibility.

Any additional information you'd like to impart

I assume that this is a problem with zabbixapi gem, so I have already created express42/zabbixapi#91 , but that project seems to have a problem with maintenance (express42/zabbixapi#88), so it would be great if you guys do something about it (I would love to help but Ruby is my weak spot...).

@bastelfreak
Copy link
Member

Sorry, but I'm not really sure how we can help out here :(.

@gdubicki
Copy link
Author

Maybe we should switch puppet-zabbix to a fork of zabbixapi with removed hard-coded list of supported Zabbix versions until zabbixapi starts to be maintained again, @bastelfreak ?

PS We should mark this issue as a bug as https://github.com/voxpupuli/puppet-zabbix/blob/master/CHANGELOG.md states that this module is Zabbix 4.0-compatible since v6.5.0.

@bastelfreak bastelfreak added the bug Something isn't working label Nov 26, 2018
@bastelfreak
Copy link
Member

as long as a fork is available on rubygems and we can properly depend on and, that would be fine.

@gdubicki
Copy link
Author

I have become maintainer of zabbixapi gem and released v4.0.0 with Zabbix 3.4 and 4.0 support. Please see the PR linked above.

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