X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-munin-config.git/blobdiff_plain/c80754854c1ed11ac2400c5a20ac003283f28e3e..997c89a64b50507b6141176baf8482dd594e5318:/debian/xvm-munin-host-config.postinst diff --git a/debian/xvm-munin-host-config.postinst b/debian/xvm-munin-host-config.postinst index 890770a..227a982 100755 --- a/debian/xvm-munin-host-config.postinst +++ b/debian/xvm-munin-host-config.postinst @@ -26,13 +26,15 @@ case "$1" in # Install munin plugins that are now configured munin-node-configure --suggest --shell | sh + # Remove extraneous munin plugins (cd /etc/munin/plugins && for i in smart_*; do if smartctl -i "/dev/${i#smart_}" | grep Device | grep EQLOGIC; then rm -v "$i"; fi done) - + (shopt -s nullglob; rm -v /etc/munin/plugins/if*_tap* || :) + invoke-rc.d munin-node restart ;;