lib/zabbix-ruby-client/plugins/ovpn.rb in zabbix-ruby-client-0.1.2 vs lib/zabbix-ruby-client/plugins/ovpn.rb in zabbix-ruby-client-0.1.3
- old
+ new
@@ -12,10 +12,9 @@
host = args[0]
ovpnfile = args[1]
info = get_info(ovpnfile)
back = []
if info
- time = Time.now.to_i
back << "#{host} ovpn[received] #{time} #{info['received']}"
back << "#{host} ovpn[sent] #{time} #{info['sent']}"
back << "#{host} ovpn[count] #{time} #{info['count']}"
end
back