Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created February 19, 2019 04:26
Show Gist options
  • Save marzdgzmn/bbc4f08d71611fe632a6c2f6c6220db6 to your computer and use it in GitHub Desktop.
Save marzdgzmn/bbc4f08d71611fe632a6c2f6c6220db6 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