Created
January 9, 2020 10:27
-
-
Save ripienaar/1f1e7b780ed9c6d61c2bd9cb313cede0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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