Sha256: 241e1a7d62cd166401c7a9080c701cbea1fbd6320f010693fa2d12565aac6c3b
Contents?: true
Size: 416 Bytes
Versions: 11
Compression:
Stored size: 416 Bytes
Contents
require 'zabbixapi' def zbx # settings @api_url = ENV['ZABBIX_HOST_URL'] || 'http://10.211.55.6/api_jsonrpc.php' @api_login = 'Admin' @api_password = 'zabbix' @zbx ||= ZabbixApi.connect( :url => @api_url, :user => @api_login, :password => @api_password, :debug => ENV['ZABBIX_DEBUG']? true : false ) end def gen_name(prefix) suffix = rand(1_000_000_000) "#{prefix}_#{suffix}" end
Version data entries
11 entries across 11 versions & 1 rubygems