lib/zabbix-ruby-client/plugins/sysinfo.rb in zabbix-ruby-client-0.0.15 vs lib/zabbix-ruby-client/plugins/sysinfo.rb in zabbix-ruby-client-0.0.16
- old
+ new
@@ -1,6 +1,8 @@
-class ZabbixRubyClient
+require "zabbix-ruby-client/logger"
+
+module ZabbixRubyClient
module Plugins
module Sysinfo
extend self
def collect(*args)
@@ -8,10 +10,10 @@
uname = `uname -a`
if $?.to_i == 0
arch, hostname, kernel, kernel_version, machine, proc,
_, _, _, _, _, _, _, platform, os = uname.split(/ /)
else
- logger.warn "Are you running on ubuntu ?"
+ Log.warn "Are you running on ubuntu ?"
return []
end
time = Time.now.to_i
back = []
back << "#{host} sysinfo[name] #{time} #{host}"