Created
January 1, 2011 14:59
-
-
Save KristianLyng/761798 to your computer and use it in GitHub Desktop.
Munin-node tester
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
| # 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