Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created February 19, 2019 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marzdgzmn/f3172fc544b5d9158250b764ecef8699 to your computer and use it in GitHub Desktop.
Save marzdgzmn/f3172fc544b5d9158250b764ecef8699 to your computer and use it in GitHub Desktop.
require 'rrd'
require 'yaml'
require 'nokogiri'
dump_xml = File.join(__dir__, 'ixp.xml')
`rrdtool dump #{ARGV[0]} #{dump_xml}`
node = Nokogiri::XML::Node.new('ixp_dump', File.open(dump_xml))
# node = Nokogiri::XML::Node.new('ixp_dump', File.open(dump_xml))
node.document
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment