red-tux/zbxapi — pull request #30 by sakazuki (2014-12-05 22:46:44+00:00)
Title: fix login failure with zabbxi 2.2.* becase of maybe typo

I cannot login to zabbix, beacase login success but checkapi is fail.
debug log is below
````
irb(main):005:0> z.login(ZABBIX_USER, ZABBIX_PASSWORD)
"{\"jsonrpc\":\"2.0\",\"method\":\"user.login\",\"params\":{\"user\":\"AAAAA\",\"password\":\"BBBBB\"},\"id\":0}"
"c9aac1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#-32602, "message"=>"Invalid params.", "data"=>"Not authorized"}>
"{\"jsonrpc\":\"2.0\",\"method\":\"user.authenticate\",\"params\":{\"user\":\"AAAAA\",\"password\":\"BBBBB\"},\"auth\":\"c9aac1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\"id\":2}"
"0debeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
#-32602, "message"=>"Invalid params.", "data"=>"Not authorized"}>
ZbxAPI_ExceptionBadAuth: Invalid User or Password
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/zbxapi-0.3.10/zbxapi.rb:264:in `rescue in login'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/zbxapi-0.3.10/zbxapi.rb:249:in `login'
from (irb):5
from /opt/chef/embedded/bin/irb:12:in `

'
irb(main):006:0>
````