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

JSON dependency error in 2.4.9 #70

Closed
robertstinnett opened this issue Feb 16, 2017 · 3 comments
Closed

JSON dependency error in 2.4.9 #70

robertstinnett opened this issue Feb 16, 2017 · 3 comments

Comments

@robertstinnett
Copy link

We are getting an error when we attempt to go to any version of chef-client above 12.15.9 when using the 2.4.9 branch. It appears there is a JSON change in chef-client that is conflicting with the JSON here. We are seeing the following:

Gem::ConflictError: carfax_zabbix_api_host[ip-172-26-210-38.w.cdc.cfx] (carfax_zabbix_api::default line 47) had an error: Gem::ConflictError: Unable to activate zabbixapi-2.4.9, because json-2.0.2 conflicts with json (>= 1.6.0, ~> 1.6)

I see talk about JSON2 support, but it appears that is only for the 3.0.x branches - is that correct?

@jrbeilke
Copy link
Collaborator

Yep, support for json 2.0 was added in zabbixapi 3.x along with dropping support for older versions of Ruby (ie. 1.9) - #65

@robertstinnett
Copy link
Author

The 3.0 gem doesn't work with Zabbix 2.4.x systems, correct? Sorry, the README is a bit confusing.

@jrbeilke
Copy link
Collaborator

Hmm, if you need json 2.0 support then you'll need to use the 3.0 gem. Technically the 3.0 gem should work with the Zabbix 2.4 API, but we no longer run the unit tests against it.

The only issue that I'm aware of would be the change to support Zabbix 3.2 which uses the new maintenance mode flag on actions - #55

Instead of using :maintenance_mode => '1' with your actions you would need to use the older syntax of checking Maintenance status = not in “maintenance” with an action filter condition (conditiontype # 16 for maintenance status).

@aladmit aladmit closed this as completed Feb 24, 2017
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

3 participants