lib/zabbix-ruby-client/runner.rb in zabbix-ruby-client-0.1.1 vs lib/zabbix-ruby-client/runner.rb in zabbix-ruby-client-0.1.2
- old
+ new
@@ -21,10 +21,10 @@
@data = ZabbixRubyClient::Data.new(@config['host'])
@logsdir = makedir(@config['logsdir'], 'logs')
ZabbixRubyClient::Plugins.scan_dirs([ PLUGINDIR ] + @config['plugindirs'])
ZabbixRubyClient::Log.set_logger(File.join(@logsdir, 'zrc.log'), @config['loglevel'])
ZabbixRubyClient::Log.debug @config.inspect
- @is_22 = /v2\.2\./.match zabbix_sender_version
+ @is_22 = /v2\.[24]\./.match zabbix_sender_version
ZabbixRubyClient::Log.debug "zabbix sender version #{zabbix_sender_version}"
end
def collect
@tasks.each do |plugin|