lib/zabbix-ruby-client/plugins/nginx.rb in zabbix-ruby-client-0.1.2 vs lib/zabbix-ruby-client/plugins/nginx.rb in zabbix-ruby-client-0.1.3
- old
+ new
@@ -9,10 +9,9 @@
def collect(*args)
host = args[0]
info = get_status
- time = Time.now.to_i
back = []
back << "#{host} nginx[total] #{time} #{info[:total]}"
back << "#{host} nginx[reading] #{time} #{info[:reading]}"
back << "#{host} nginx[writing] #{time} #{info[:writing]}"
back << "#{host} nginx[waiting] #{time} #{info[:waiting]}"