Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Created January 9, 2020 10:27
Show Gist options
  • Select an option

  • Save ripienaar/1f1e7b780ed9c6d61c2bd9cb313cede0 to your computer and use it in GitHub Desktop.

Select an option

Save ripienaar/1f1e7b780ed9c6d61c2bd9cb313cede0 to your computer and use it in GitHub Desktop.
#!/opt/puppetlabs/puppet/bin/ruby
require "mcollective"
include MCollective::RPC
c = rpcclient("your_agent")
printrpc(c.exporter(:url => "...", :metrics => [...,...,...]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment