Skip to content

Instantly share code, notes, and snippets.

@jan-matejka
Created October 1, 2012 15:48
Show Gist options
  • Select an option

  • Save jan-matejka/3812615 to your computer and use it in GitHub Desktop.

Select an option

Save jan-matejka/3812615 to your computer and use it in GitHub Desktop.
bundle agent munin {
vars:
"plugins_src" string => "/usr/share/munin/plugins";
"plugins_dst" string => "/etc/munin/plugins";
"plugins_wc[postgres_tuples_]" slist => { "postgres_tuples_ALL" };
"plugins_wc_idx" slist => getindices("plugins_wc");
files:
"${plugins_dst}/${plugins_wc[${plugins_wc_idx}]}"
link_from => ln_s("${plugins_src}/${plugins_wc_idx}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment