lib/zabbix-ruby-client/plugins/who.rb in zabbix-ruby-client-0.0.15 vs lib/zabbix-ruby-client/plugins/who.rb in zabbix-ruby-client-0.0.16

- old
+ new

@@ -1,14 +1,16 @@ -class ZabbixRubyClient +require "zabbix-ruby-client/logger" + +module ZabbixRubyClient module Plugins module Who extend self def collect(*args) host = args[0] who = get_who if $?.to_i != 0 - logger.warn "Are you running on ubuntu ?" + Log.warn "Are you running on ubuntu ?" return [] end time = Time.now.to_i back = [] back << "#{host} who[total] #{time} #{who}"