Add xen_net munin plugin for monitoring network status.
[invirt/packages/xvm-munin-config.git] / debian / xvm-munin-host-config.postinst
index f8e86d6..b182729 100755 (executable)
@@ -30,12 +30,19 @@ case "$1" in
 ### BEGIN xvm-munin-config
 munin ALL=(postfix) SETENV: NOPASSWD: /etc/munin/plugins/postfix_mailqueue
 munin ALL=(munin) SETENV: NOPASSWD: ALL
-munin ALL=(root) SETENV: NOPASSWD: /etc/munin/plugins/hddtemp_smartctl , /etc/munin/plugins/smart_* , /etc/munin/plugins/xen_cpu
+munin ALL=(root) SETENV: NOPASSWD: /etc/munin/plugins/hddtemp_smartctl , /etc/munin/plugins/smart_* , /etc/munin/plugins/xen_*
 ### END xvm-munin-config
 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
     ;;