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

raw_api function doesn't work with 2.0.4 or later #8

Closed
fripper1214 opened this issue Feb 13, 2013 · 4 comments
Closed

raw_api function doesn't work with 2.0.4 or later #8

fripper1214 opened this issue Feb 13, 2013 · 4 comments

Comments

@fripper1214
Copy link

zbxapi raw_api function doesn't work with 2.0.4.

I got following error message

raw_api requires API version 1.1 or higher

I suggest following patches for
/usr/lib/ruby/gems/1.8/gems/zbxapi-0.2.415/zbxapi.rb

raise ZbxAPI_ExceptionVersion, "#{caller_func} requires API version #{major}.#{minor} or higher" if major>@major
raise ZbxAPI_ExceptionVersion, "#{caller_func} requires API version #{major}.#{minor} or higher" if minor>@minor

to

raise ZbxAPI_ExceptionVersion, "#{caller_func} requires API version #{major}.#{minor} or higher" if major>@major
raise ZbxAPI_ExceptionVersion, "#{caller_func} requires API version #{major}.#{minor} or higher" if ((major==@major)&&(minor>@minor))

"minor version check" only to be needed for "current major version is less or equal to required major version" .

Best regards.

@jaganz
Copy link

jaganz commented Aug 22, 2013

Patch is added to the master but gem is not recreated ... please update gem

@fripper1214
Copy link
Author

hi jaganz.

thx for merge it,
I had check it correctly works with zabbix 2.0.6 frontends.

2.0.7/2.0.8, I had never checks works with it, but expected that it will works fine.

@red-tux
Copy link
Owner

red-tux commented Sep 6, 2013

I plan on releasing an updated gem during the course of the Zabbix conference.

@red-tux
Copy link
Owner

red-tux commented Sep 7, 2013

Gem version 0.3.0 released, closing.

@red-tux red-tux closed this as completed Sep 7, 2013
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