lib/zabbix-ruby-client/plugins/mysql.rb in zabbix-ruby-client-0.0.15 vs lib/zabbix-ruby-client/plugins/mysql.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 Mysql
extend self
def collect(*args)
@@ -8,10 +10,10 @@
mysqlargs = args[1]
mysqlstatus = `mysqladmin #{mysqlargs} extended-status`
if $?.to_i == 0
status = get_status(mysqlstatus)
else
- self.logger.warn "The connection failed."
+ Log.warn "The connection failed."
return []
end
time = Time.now.to_i
back = []