X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-munin-config.git/blobdiff_plain/a8cfb93c06c30653b497c6bce80f6f0b1261aee2..c3d1fd5def1fb626668f876bf8ff455f997a70a2:/debian/xvm-munin-host-config.postinst diff --git a/debian/xvm-munin-host-config.postinst b/debian/xvm-munin-host-config.postinst index f8e86d6..fc2de88 100755 --- a/debian/xvm-munin-host-config.postinst +++ b/debian/xvm-munin-host-config.postinst @@ -36,6 +36,13 @@ EOF # Install munin plugins that are now configured munin-node-configure --suggest --shell | sh + + (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) invoke-rc.d munin-node restart ;;