Sha256: f625005c92d2f0bb1599530df43e1ffb7849e2a3a45a76034b043c56b8071f9d
Contents?: true
Size: 541 Bytes
Versions: 3
Compression:
Stored size: 541 Bytes
Contents
#!/usr/bin/env ruby require 'zabbix/api' require 'optimist' require 'amazing_print' require 'pry' opts = Optimist::options do opt :url, "URL up to but no including api_jsonrpc.php",type: :string,default:'http://localhost' opt :user, "User name to authenticate", type: :string, required: true opt :pass, "Pass to auth user with", type: :string, required: true end print "user.login: " api = Zabbix::Api::Client.new(url: opts[:url]) ap api.login(user: opts[:user],pass:opts[:pass]) binding.pry print "user.logout: " ap api.logout
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zabbix-api-simple-0.1.4 | exe/zapishell.rb |
zabbix-api-simple-0.1.3 | exe/zapishell.rb |
zabbix-api-simple-0.1.2 | exe/zapishell.rb |