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

- old
+ new

@@ -1,8 +1,9 @@ # this is a simple version for standalone redis server +require "zabbix-ruby-client/logger" -class ZabbixRubyClient +module ZabbixRubyClient module Plugins module Redis extend self def collect(*args) @@ -11,10 +12,10 @@ opts = args[2] || "" redisinfo = `#{redis} #{opts} info` if $?.to_i == 0 info = get_info(redisinfo) else - logger.warn "Redis connection failed." + Log.warn "Redis connection failed." return [] end info[:keyspace_total] = info[:keyspace_hits].to_i + info[:keyspace_misses].to_i