lib/zabbix-ruby-client/plugins/postgres.rb in zabbix-ruby-client-0.1.2 vs lib/zabbix-ruby-client/plugins/postgres.rb in zabbix-ruby-client-0.1.3

- old
+ new

@@ -2,10 +2,11 @@ module ZabbixRubyClient module Plugins module Postgres extend self + extend ZabbixRubyClient::PluginBase def collect(*args) host = args[0] psqlargs = args[1] dbname = args[2] @@ -33,10 +34,9 @@ else Log.warn "The connection failed." return [] end - time = Time.now.to_i back = [] status.each do |e,v| back << "#{host} postgres.#{e}[#{dbname}] #{time} #{v}" end activity.each do |e,v|