Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created January 1, 2011 14:59
Show Gist options
  • Select an option

  • Save KristianLyng/761798 to your computer and use it in GitHub Desktop.

Select an option

Save KristianLyng/761798 to your computer and use it in GitHub Desktop.
Munin-node tester
# Connect to a munin node, list all plugins, ask for config+fetch from all of them.
gawk 'function rtodot() { while (1) { S |& getline foo; print "R:",foo; if (foo == ".") { break; } } }; BEGIN { S="/inet/tcp/0/localhost/4949/"; S |& getline; print "list" |& S; S |& getline; for (i=1; i<NF; i++) { print "C:",$i; print "config "$i |& S; rtodot(); print "fetch "$i |& S; rtodot(); }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment